Re: Throttle Outgoing mail based on DOMAIN

From: Victor Duchovni (no email)
Date: Thu Feb 15 2007 - 09:14:15 EST

  • Next message: Rocco Scappatura: "vacation on Postfix/MySQL/Courier-IMAP platform"

    On Thu, Feb 15, 2007 at 10:44:49AM +0100, Sandy Drobic wrote:

    > Matt wrote:
    > > Hello Postfix Fans,
    > >
    > > I need a way to config Postfix to Throttle down delivery concurrency OUT GOING
    > > based on DOMAIN.
    > >
    > > I Am not a spammer I run many mailing lists and sometimes the receiving
    > > mailserver dislikes all the conncurrent connections all at once.
    > >
    > > So, if I could throttle the delivery attempts PER DOMAIN that would rock.
    > >
    > > If not, I am willing to perhaps fund a small PATCH for accomplishing this. Or
    > > point me in an area where I do modify the code ...
    >
    > If you want to limit outgoing connections for a domain you need to define
    > a transport for that domain with these limitations.
    >
    > http://www.postfix.org/postconf.5.html#smtp_destination_concurrency_limit
    >
    > /etc/postfix/master.cf:
    > smtp-slow unix - - n - - smtp
    > -o smtp_destination_concurrency_limit=5

    This "-o ..." option won't work, because concurrency limits are enforced
    by the queue manager not the delivery agent.

    > Then set a transport for the domain:
    >
    > /etc/postfix/transport:
    > slow.example.com smtp-slow:slow.example.com
    >

    This is fine, but then in main.cf (not master.cf):

        smtp-slow_destination_concurrency_limit = 5

    Provided that the OP has correctly characterized the problem as too many
    paralle connections, and did not shoot himself in the foot, by setting
    "default_destination_concurrency_limit = <some large number>" or ditto
    for smtp_destination_concurrency_limit. The default limit is 20, which
    most if not all receiving systems should not find objectionable.

    -- 
    	Viktor.
    Disclaimer: off-list followups get on-list replies or get ignored.
    Please do not ignore the "Reply-To" header.
    To unsubscribe from the postfix-users list, visit
    http://www.postfix.org/lists.html or click the link below:
    <mailto:?body=unsubscribe%20postfix-users>
    If my response solves your problem, the best way to thank me is to not
    send an "it worked, thanks" follow-up. If you must respond, please put
    "It worked, thanks" in the "Subject" so I can delete these quickly.
    

  • Next message: Rocco Scappatura: "vacation on Postfix/MySQL/Courier-IMAP platform"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD