McDonald, Dan:
> On 4/21/14, 11:26 AM, "Robert Schetterer" <r...@sys4.de> wrote:
> >Am 21.04.2014 18:17, schrieb McDonald, Dan:
> >> Is there a simple was to create a transport map that will allow mail to
> >> be delivered round-robin to two servers?  I can?t publish an externally
> >> visible MX record for the two locations, and the connections are using
> >> port-mapped nat on the same address (e.g. 2025/tcp is one host, and
> >> 2026/tcp is another host).
> >> 
> >> I?ve tried adding two entries into a transport map, but the second one
> >> is ignored when postmap is run.
> >> -- 
> >> Daniel J McDonald, CISSP #78281
> >> Austin Energy
> >
> >not exact what you looking for , but perhaps it helps
> >
> >http://marinovl.blogspot.de/2012/09/postfix-how-to-balance-outgoing-emails
> >.html
> 
> Yes, I had considered this possibility.  Unfortunately my version of
> postfix is a bit old and doesn?t support the tcp database style.  I think
> I?ll set up a cron-job to re-write the transport table every x minutes.

You may be able to do the same with MySQL (using their RAND() function)
though this would burn a few more CPU cycles.

If you plan to update a BerkeleyDB transport map frequently, try
to use the "safe update" approach based on rename:

    echo '* smtp0' > transport.in && \
        postmap transport.in && \
        mv transport.in.db transport.db

See also: http://www.postfix.org/DATABASE_README.html#safe_db

        Wietse

Reply via email to