On 4/7/2010 8:13 PM, postfix-us...@tja-server.de wrote:
Hello,
i would like to create the following setup for two postfix servers.
The setup:
Server A is the smtp(s) server and the MX record for some domains.
He accepts mail from clients over sasl/tls for delivery to the internet
or to the domains.
He does forward all external mail to Server B
He works as a mail-gateway
For a mail gateway, all domains you're responsible for should
be listed as relay_domains, with recipients should be listed
in relay_recipient_maps.
Use transport_maps entries to tell this box where to deliver
each domain. (or use split-horizon DNS.)
It gets a little more complicated if you must use this box for
client submission. The SASL software on the gateway will need
access to usernames and credentials from the internal mailstore.
Server B has no MX record, but takes all mails from Server A, stores
them locally (for access via IMAP) or delivers them to hosts from the
domains.
All outbound mail will NOT be delivered directly, but transported to the
mail-gateway Server A, which in turn delivers to the internet. This may,
the MX server will the the source of such mail ...
OK, typical mailstore setup with "relayhost =
gateway.example.com". Each domain handled locally will be
listed in mydestination OR virtual_alias_domains OR
virtual_mailbox_domains depending on how mail is stored on
this box, your choice of IMAP/POP software, and how many users
you expect.
So, all external input or output will be done by Server A.
Internal delivery will be done by Server B, while all other domains will
be forwared to Server A again ...
This sound like a possible loop :-/
Only if you don't follow directions.
I have some ideas about mydestinaton, relay_domains, mynetworks and a
transport map, but i feel that there may be a easy and RECOMMENED way to
create such a setup ...
Can anybody give me a hint about the best direction to go?
Thank you!
Start with the links under "General Configuration"
http://www.postfix.org/documentation.html
Then come back when you have more specific questions.
-- Noel Jones