Hi I have setup my first Postfix on Fedora Core 9. The installation was very simple and the MTA is working fine.
My MailServer is actually a "relay" server for all our group domains. I need to setup Postfix such that it will forward all emails to their respective hosts for delivery. For example: all emails recd from [EMAIL PROTECTED] must be forwarded to mail.domian-1.com all emails recd from [EMAIL PROTECTED] must be forwarded to mail.domian-2.com all emails recd from [EMAIL PROTECTED] must be forwarded to mail.domian-3.com Its is also required that Postfix authenticates against these mail server: mail.domian-1.com, mail.domian-2.com, mail.domian-3.com when delivering. I have added the following in my /etc/postfix/main.cf ---- relayhost = mail.domian-1.com relayhost = mail.domian-2.com relayhost = mail.domian-3.com smtp_use_tls = yes smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth smtp_sasl_security_options = noanonymous ---- & my smtp_auth is as follows which is hashed to smtp_auth.db ---- mail.domian-1.com [EMAIL PROTECTED]:my_passwd mail.domian-2.com [EMAIL PROTECTED]:my_passwd mail.domian-3.com [EMAIL PROTECTED]:my_passwd ---- When I send emails via Postix, it doesnot use the matching host to relay the emails. For example, when I send an email from [EMAIL PROTECTED], the email for relayed via mail.domian-3.com instead of mail.domain-1.com I am sure Postfix cannot get confused, I have set this up incorrectly. Please advice the correct process for my requirement. I look forward to help on this one. Thx Vai