OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Austad, Jay (austadmarketwatch.com)
Date: Thu Nov 01 2001 - 18:53:13 CST

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

    >> 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?
    Does each message get passed to a random smarthost, or does that single
    session get bound to one smarthost?

    Thanks for your help, this helps me a LOT. I have several very large lists
    (average 500,000 subscribers each) which are sent out daily, and are time
    sensitive (must go out within the hour). The current system will saturate a
    DS3 with outgoing mail, and I'd like to keep at least the same performance,
    but the lists are growing rapidly, and you can't set the concurrency on a
    host by host basis with qmail and it's not smart enough to back off if the
    remote server is slow. Qmail seems nice and fast, but I don't really want
    to keep using it without some sort of control over how fast it sends to
    individual hosts since I don't really want to get angry calls from mail
    admins when our lists get larger. It hasn't happened yet, but it's bound to
    unless I do something about it now. Plus, we are launching an "alerts"
    product soon where portfolio account holders can set certain criteria and
    they will be emailed when that criteria is met (like stocks hitting certain
    prices or news on specific companies), and this is going to generate even
    more mail.

    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:
    X-Queue-Lifetime: 86400
    to specify that it would be dumped out of the queue or bounced after 1 day.

    Jay Austad
    Network Administrator
    CBS MarketWatch
    -
    To unsubscribe, send mail to majordomopostfix.org with content
    (not subject): unsubscribe postfix-users