RSCL Mumbai wrote:
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
Please use example.(com|net|org) or anything.invalid instead of making
up your own domains.
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
Please post 'postconf -n' instead of snippets of main.cf.
----
relayhost = mail.domian-1.com
relayhost = mail.domian-2.com
relayhost = mail.domian-3.com
You want to list these in relay_domains. Relayhost is where to send
ALL mail and, if you looked at 'postconf -n', you would see that the
last one is always chosen.
You also want to try to obtain a listing of all valid addresses from
EACH of those domains to list in relay_recipient_maps.
If this is not possible, you need a check_recipient_access restriction
to a map that contains:
example.com reject_unverified_recipient
example.net reject_unverified_recipient
example.org reject_unverified_recipient
Do NOT set reject_unverified_recipient globally and only do so if you
cannot get a valid list of addresses.
This step considerably reduces Backscatter.
Brian