LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-01-2003, 07:58 AM   #1
bigdogg
Member
 
Registered: Oct 2003
Distribution: Fedora Core 1
Posts: 80

Rep: Reputation: 15
Questions about PostFix?


I have mail coming into my server but for my domain only. But I want to include mutiple domains. I host three websites and I want the owners of their domain to be able to get mail via squirrel mail. I'm able to get my mail with these settings:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
queue_directory = /var/spool/postfix
mydomain = mail
myhostname = MYDOMAINNAME.com
myorigin = $myhostname
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain
alias_maps = hash:/etc/postfix/aliases
message_size_limit = 20480000
debug_peer_level = 2
debugger_command =
PATH=/usr/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
manpage_directory = /usr/share/man
readme_directory = /usr/share/doc/postfix-1.1.12/README_FILES
alias_database = hash:/etc/postfix/aliases

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Now what would I need to include to send and receive mail from mutiple domains? Is there another file I need to alter too besides the main.cf? Will I need to make any entrys in my host file for these two different domains. All the external MX records point to MAIL.DOMAINNAME.com.

Thanks in Advanced,

BiG
 
Old 12-01-2003, 03:13 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
For me, it was easiest (on my small network) to simply add accounts for the users who needed to check email from my box (meaning, I didn't go 'virtual'). Using the useradd command:
useradd masterc -s /bin/bash -G users,mail
And then of course, because I'm a huge fan of maildir over mbox:
su - masterc
maildirmake Maildir
exit
And now there is the necessary Maildir directory in the new users home dir . As for relaying for multiple domains, you simply edit the "mydestination" line:
Code:
mydestination = $myhostname, localhost.$mydomain, irule.com, linuxisthebest.com, howardtheduck.com
I also (however, it's been a while, so I cannot be certain) have a file in my /etc/postfix directory called relay-domains. Within that file I have placed the domains I am relaying for, and refer to that on the line:
relay_domains
And now to unveil the curtain, here's my postconf so you can see what I mean:
Code:
cooler root # postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
home_mailbox = Maildir/
local_destination_concurrency_limit = 2
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain $mydomain, masterc.no-ip.org, cherokeegods.com, babeecakes.com
mydomain = curvins.com
myhostname = cooler.curvins.com
mynetworks = 192.168.1.0/24
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.0.11
relay_domains = $mydestination, /etc/postfix/relay-domains
sample_directory = /etc/postfix/sample
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
unknown_local_recipient_reject_code = 450
HTH

Cool
 
Old 12-01-2003, 03:42 PM   #3
bigdogg
Member
 
Registered: Oct 2003
Distribution: Fedora Core 1
Posts: 80

Original Poster
Rep: Reputation: 15
OK I got mail coming into my user home folder /home/user. I was unable to run:

"And then of course, because I'm a huge fan of maildir over mbox:
su - masterc
maildirmake Maildir"

But placing the domain in the mydestination worked great. Now the only problem is when they sign in with squirrelmail and they send a mail out it has my domain as where it's coming from instead of their domain? I'm I missing a entry? Sorry I'm a Newbieeeeeeeeee

Thanks
BiG

PS

I do not have a Relay-Domains file? Do I need to create one? And what exactly would I place in this file?

Last edited by bigdogg; 12-01-2003 at 03:53 PM.
 
Old 12-01-2003, 04:19 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
No need to do anything if it's all working good now You just have to adjust the settings in squirrelmail (or they do rather) to send it from their domain instead of yours.

Cool
 
Old 12-01-2003, 04:32 PM   #5
bigdogg
Member
 
Registered: Oct 2003
Distribution: Fedora Core 1
Posts: 80

Original Poster
Rep: Reputation: 15
I guess I need to start a squirrel mail post question now

Thanks for your help..
 
Old 12-01-2003, 04:48 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You're welcome

Cool
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
basic questions on hostname and domain name + related postfix questions Moebius Linux - Newbie 7 09-04-2007 11:50 AM
Postfix Setup Questions? frankd99 Linux - Newbie 1 01-24-2004 08:04 PM
Postfix errors, questions Phaethar Linux - Software 0 12-15-2003 08:38 AM
Postfix setup questions Phaethar Linux - Networking 1 10-15-2003 03:29 PM
postfix questions! fowlerlfc Linux - Networking 1 07-08-2002 10:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration