Discussion Locked

Configuring SENDMAIL

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am hosting multiple virtual domains on RH Linux 6.2 with DNS and Apache all running on the 1 box. I would like to accept email for the virtual domains under several aliases (info,webmaster,help, etc.)@somevirtdomain.com and point that email to a linux user account. Then be able to connect from an MS Outlook client and pop the mail from the linux user accounts. So If Virt Domains are tektrekcs.com, soluprobe.com,soluprobe.net, I would like to accept mail for info@tektrekcs.com or webmaster@soluprobe.com and point it to the tektrek or soluprob linux accounts. Then connect from MS Outlook to mail.soluprobe.net as linux user tektrek and pop the mail. Each virt domain has its own DNS zone db file with MX records pointing to mail.soluprobe.net. mail.soluprobe.net has an A record in the soluprobe.net zone db file. SENDMAIL is not really configured beyond the original installation. Right now I get a "user unknown". What should I be configuring in SENDMAIL to make this work? Am I on the right track with the DNS config?

5 replies

by step_off71

If all the MX records in the DNS is pointing to one point. You have to install and configure the sendmail and the POP deamon. After doing so just change the /etc/aliases file to point to which account the aliases must redirect to.
Also make sure that sendmail is listing on the right adress and port.

by servermonkey

I host several virtual mail domains with sendmail, and I do exactly that. You need to add each account the sendmail will accept mail for in /etc/mail/virtusertable and which unix account the messages will be forwarded to:
webmaster@domain.com root

and in the file /etc/mail/local-host-names add all the aliases of the servers:
mail.domain.com

in the file /etc/mail/relay-domains add all the domains you are hosting:
domain.com

You should be set after that. Make sure /etc/mail/accesshas all of the networks/hosts that will be sending mail from it. Make sure the to turn off the open relay that sendmail is set to by default in 6.2.

Good Luck

Jeff Falgout
RHCE 807302635705828

by gmichaels

This was very helpful. I ended up upgrading SENDMAIL as a result as your suggestions were tailored more toward the newer version. Also I needeed to install/load a POP3 Deamon which was part of the imap rpm. Also needed to change inetd.config so ipop3d was not commented out.

This discussion is closed to new replies.