|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: 2 MTAs with different users for the same domain
From: Ralf Hildebrandt (Ralf.Hildebrandt
charite.de)
Date: Mon Jun 09 2003 - 05:43:32 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
* Roman Medina <roman
optenet.com>:
>
> Hi,
>
> I'd like to know whether or not (and where) is documented the way of
> configuring Postfix for a simple scenario such as:
> - 1 mail domain: "mydomain.com"
> - 2 MTAs: "smtp1.mydomain.com" and "smtp2.mydomain.com"
> - The first machine contains mailboxes for a group of users containing
> accounts like a
mydomain.com and b
mydomain.com
> - The second one contains the other group (containing c
mydomain.com and
> d
mydomain.com). Please note that the same domain is used in both
> machines.
> - The idea is to optimize Internet bandwidth, so when user with account
> a
mydomain.com sends email to b
mydomain.com, it is not passed to smtp2
> (user "a", "b" and smtp1 are all in the same LAN: "Lan1"). Obviusly,
> users "a" and "b" have smtp1 as their default SMTP server. In a similar
> way, users "c" and "d" have configured smtp2 as their SMTP server and
> all of them are in the same LAN ("lan2") (Note that Lan1 and Lan2 are
> separated through Internet).
Use fallback_relay for that
# The fallback_transport specifies the optional transport in master.cf
# to use for recipients that are not found in the UNIX passwd database.
# This parameter has precedence over the luser_relay parameter.
#
# Specify a string of the form transport:nexthop, where transport is
# the name of a mail delivery transport defined in master.cf. The
# :nexthop part is optional. For more details see the sample transport
# configuration file.
#
# NOTE: if you use this feature for accounts not in the UNIX password
# file, then you must update the "local_recipient_maps" setting in
# the main.cf file, otherwise the SMTP server will reject mail for
# non-UNIX accounts with "User unknown in local recipient table".
#
#fallback_transport = lmtp:unix:/file/name
#fallback_transport = cyrus
On smtp1.mydomain.com:
fallback_transport = smtp:[smtp2.mydomain.com]
and on smtp2.mydomain.com:
fallback_transport = smtp:[smtp1.mydomain.com]
--
Ralf Hildebrandt Ralf.Hildebrandt
charite.de
my current spamtrap spamtrap
charite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
Microsoft has argued that open source is bad for business, but you
have to ask, "Whose business? Theirs, or yours?" --Tim O'Reilly
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]