OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Wietse Venema (wietseporcupine.org)
Date: Thu Nov 01 2001 - 19:44:50 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Austad, Jay:
    [ Charset ISO-8859-1 unsupported, converting... ]
    > >> 1. Say I have 4 smarthosts, can I specify all of these smarthosts in the
    > >> postfix config and have it relay messages to them randomly to load
    > balance
    > >> between them? I'd like to dump the qmail stuff completely, but right
    > now, I
    > >> can pipeline messages into my splitter box, and it will randomly
    > distribute
    > >> them nicely to all of the qmqp servers.
    > >
    > >If you provide one DNS record with 4 addresses, then Postfix will
    > >randomize the connections. Code from Elias Levy of Securityfocus :-)
    >
    > So if I have a server at mail.mydomain.com, and it's set to forward all
    > outgoing mail to smarthost.mydomain.com which has 4 different A records
    > assigned to it, what happens when I pipeline mail into mail.mydomain.com?

    Pipelining mail into mail.mydomain.com? You speak mysteries.

    > Does each message get passed to a random smarthost, or does that single
    > session get bound to one smarthost?

    Each message is queued separately inside Postfix. Postfix then sends
    each message to a randomly chosen smarthost.mydomain.com machine.
    Each delivery gets no more than a configurable number of recipient.

        default_destination_recipient_limit = 50
        smtp_destination_recipient_limit = $default_destination_recipient_limit

    > I do need to figure out how to set the queue lifetime though. The messages
    > are useless after a day or so, so I might as well not send them if they
    > can't be sent for that long. How hard would it be to make postfix
    > understand an entry in the header which specified how long the message
    > should be in the queue? Something like:

    This is configurable in main.cf. The default is:

        maximal_queue_lifetime = 5d

    You may also benefit form configuring a fallback_relay that catches
    the mail that Postfix can't deliver right away.

    All this stuff is described in the sample-*.cf files.

            Wietse
    -
    To unsubscribe, send mail to majordomopostfix.org with content
    (not subject): unsubscribe postfix-users