rate limit outgoing mails with mailman

classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|

rate limit outgoing mails with mailman

Jason Welsh
hey folks.. Im running the latest postfix on an ubuntu server with
mailmain for mailing list management.. everything is pretty much working
fine except that Im trying to get some kind of rate-limiting or
throttling working for all outbound messages. Ive searched all over and
found the smtpd -D and debugger_command = sleep 8
but for some reason, this doesnt seem to work for mails sent out via a
mailing list with
mailman.. I see emails getting relayed to my isp's smtp server one right
after the other. Other settings I have been fooling with (in main.cf)
are
initial_destination_concurrency = 1
default_destination_recipient_limit = 1
default_destination_concurrency_limit = 1
smtp_destination_concurrency_limit = 1

I want only 1 smtp connection at a time to be made out from my server to
my ISP's server.. Can someone please help me with a config that will
accomplish this?

regards,
Jason

Reply | Threaded
Open this post in threaded view
|

Re: rate limit outgoing mails with mailman

Terry Carmen
[hidden email] wrote:
> I want only 1 smtp connection at a time to be made out from my server to
> my ISP's server.. Can someone please help me with a config that will
> accomplish this?
>  
If your ISP doesn't want to handle your list traffic, trying to get
around their restrictions isn't going to make them happy.

However if you really want to do this, you can set maxproc to 1 for smtp
in master.cf.

Terry

Reply | Threaded
Open this post in threaded view
|

Re: rate limit outgoing mails with mailman

Victor Duchovni
In reply to this post by Jason Welsh
On Thu, Jan 01, 2009 at 11:04:50PM -0500, [hidden email] wrote:

> hey folks.. Im running the latest postfix on an ubuntu server with
> mailmain for mailing list management.. everything is pretty much working
> fine except that Im trying to get some kind of rate-limiting or
> throttling working for all outbound messages. Ive searched all over and
> found the smtpd -D and debugger_command = sleep 8
> but for some reason, this doesnt seem to work for mails sent out via a
> mailing list with
> mailman.. I see emails getting relayed to my isp's smtp server one right
> after the other. Other settings I have been fooling with (in main.cf)
> are
> initial_destination_concurrency = 1
> default_destination_recipient_limit = 1
> default_destination_concurrency_limit = 1
> smtp_destination_concurrency_limit = 1

When you set the recipient limit to 1, concurrency is measured per
recipient, not per-nexthop. The solution is to not set the recipient
limit to 1. It is unlikely the ISP objects to say 10 (or even the
RFC required 100) recipients per delivery.

--
        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:[hidden email]?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.
Reply | Threaded
Open this post in threaded view
|

Re: rate limit outgoing mails with mailman

Wietse Venema
In reply to this post by Jason Welsh
[hidden email]:
> hey folks.. Im running the latest postfix on an ubuntu server with
> mailmain for mailing list management.. everything is pretty much working
> fine except that Im trying to get some kind of rate-limiting or
> throttling working for all outbound messages. Ive searched all over and

The following requires Postfix 2.5 or later:

/etc/postfix/main.cf:
    # Deliver all mail via the "smtp" transport in master.cf.
    # Use [] to suppress MX lookup.
    relayhost = [mail.example.com]
    default_transport = smtp
    smtp_destination_rate_delay = 30

This will deliver one message every 30 seconds.

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: rate limit outgoing mails with mailman

Jason Welsh
> The following requires Postfix 2.5 or later:
>
> /etc/postfix/main.cf:
>     # Deliver all mail via the "smtp" transport in master.cf.
>     # Use [] to suppress MX lookup.
>     relayhost = [mail.example.com]
>     default_transport = smtp
>     smtp_destination_rate_delay = 30
>
> This will deliver one message every 30 seconds.
>
> Wietse

aah heck, I lied to you..
I have  postfix 2.4.5-3ubuntu1.3 installed   :(

Is there a way to accomplish the same thing for this version or should I compile the new one?
I couldnt find postfix 2.5 for Ubuntu 7.10

thanks/regards,
Jason
Reply | Threaded
Open this post in threaded view
|

Re: rate limit outgoing mails with mailman

Wietse Venema
[hidden email]:

> > The following requires Postfix 2.5 or later:
> >
> > /etc/postfix/main.cf:
> >     # Deliver all mail via the "smtp" transport in master.cf.
> >     # Use [] to suppress MX lookup.
> >     relayhost = [mail.example.com]
> >     default_transport = smtp
> >     smtp_destination_rate_delay = 30
> >
> > This will deliver one message every 30 seconds.
> >
> > Wietse
>
> aah heck, I lied to you..
> I have  postfix 2.4.5-3ubuntu1.3 installed   :(
>
> Is there a way to accomplish the same thing for this version or should I compile the new one?
> I couldnt find postfix 2.5 for Ubuntu 7.10

For a collection of rate limiting examples, see the Postfix documentation at
http://www.postfix.org/QSHAPE_README.html#backlog

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: rate limit outgoing mails with mailman

Scott Kitterman-4
In reply to this post by Jason Welsh
On Fri, 2 Jan 2009 10:40:45 -0500 [hidden email] wrote:

>> The following requires Postfix 2.5 or later:
>>
>> /etc/postfix/main.cf:
>>     # Deliver all mail via the "smtp" transport in master.cf.
>>     # Use [] to suppress MX lookup.
>>     relayhost = [mail.example.com]
>>     default_transport = smtp
>>     smtp_destination_rate_delay = 30
>>
>> This will deliver one message every 30 seconds.
>>
>> Wietse
>
>aah heck, I lied to you..
>I have  postfix 2.4.5-3ubuntu1.3 installed   :(
>
>Is there a way to accomplish the same thing for this version or should I
compile the new one?
>I couldnt find postfix 2.5 for Ubuntu 7.10
>

Look in gutsy-backports or upgrade to 8.04.  Also note that the release you
are using will be unsupported in another 3 months, so upgrading is likely
your best bet.

Scott K
Reply | Threaded
Open this post in threaded view
|

Re: rate limit outgoing mails with mailman

Jason Welsh
> >
> >aah heck, I lied to you..
> >I have  postfix 2.4.5-3ubuntu1.3 installed   :(
> >
> >Is there a way to accomplish the same thing for this version or should I
> compile the new one?
> >I couldnt find postfix 2.5 for Ubuntu 7.10
> >
>
> Look in gutsy-backports or upgrade to 8.04.  Also note that the release you
> are using will be unsupported in another 3 months, so upgrading is likely
> your best bet.
>
> Scott K

excellent idea, so I did install the 2.5.4 version from the backport
and I now have
root@ohs:~# grep smtp_destination_rate_delay /etc/postfix/main.cf
smtp_destination_rate_delay = 10
root@ohs:~#

and I restarted postfix
Jan  2 08:03:56 ohs postfix/master[16208]: terminating on signal 15
Jan  2 08:03:58 ohs postfix/master[16312]: daemon started -- version 2.5.4, configuration /etc/postfix

and now when I send an email to my mailman mailing list, I still see it sending out emails with no delay..

Jan  2 08:04:52 ohs postfix/smtp[16349]: 72292189FF: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25,
delay=5.3, delays=0.12/0.51/0.36/4.3, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
Jan  2 08:04:52 ohs postfix/qmgr[16316]: 72292189FF: removed
Jan  2 08:04:52 ohs postfix/smtp[16347]: 950C118A00: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25,
delay=5.2, delays=0.13/0.39/0.37/4.3, dsn=2.5.0, status=sent (250 2.5.0 Ok.)

Jan  2 08:04:52 ohs postfix/smtp[16350]: 950C118A00: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25, delay=5.3,
delays=0.13/0.37/0.38/4.5, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
Jan  2 08:04:52 ohs postfix/qmgr[16316]: 950C118A00: removed

so it looks like all three of these went out with no delays inbetween each message, right?

regards,
Jason

Reply | Threaded
Open this post in threaded view
|

Re: rate limit outgoing mails with mailman

Victor Duchovni
On Fri, Jan 02, 2009 at 01:09:41PM -0500, [hidden email] wrote:

> Jan  2 08:03:56 ohs postfix/master[16208]: terminating on signal 15
> Jan  2 08:03:58 ohs postfix/master[16312]: daemon started -- version 2.5.4, configuration /etc/postfix
>
> and now when I send an email to my mailman mailing list, I still see it sending out emails with no delay..
>
> Jan  2 08:04:52 ohs postfix/smtp[16349]: 72292189FF: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25,
> delay=5.3, delays=0.12/0.51/0.36/4.3, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
> Jan  2 08:04:52 ohs postfix/smtp[16347]: 950C118A00: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25, delay=5.2, delays=0.13/0.39/0.37/4.3, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
> Jan  2 08:04:52 ohs postfix/smtp[16350]: 950C118A00: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25, delay=5.3, delays=0.13/0.37/0.38/4.5, dsn=2.5.0, status=sent (250 2.5.0 Ok.)

Have you fixed your recipient concurrency limit yet, or is it still 1.

--
        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:[hidden email]?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.
Reply | Threaded
Open this post in threaded view
|

Re: rate limit outgoing mails with mailman

Wietse Venema
In reply to this post by Jason Welsh
[hidden email]:
> excellent idea, so I did install the 2.5.4 version from the backport
> and I now have
> root@ohs:~# grep smtp_destination_rate_delay /etc/postfix/main.cf
> smtp_destination_rate_delay = 10
> root@ohs:~#

> and I restarted postfix
> Jan  2 08:03:56 ohs postfix/master[16208]: terminating on signal 15
> Jan  2 08:03:58 ohs postfix/master[16312]: daemon started -- version 2.5.4, configuration /etc/postfix
>
> and now when I send an email to my mailman mailing list, I still see it sending out emails with no delay..
>
> Jan  2 08:04:52 ohs postfix/smtp[16349]: 72292189FF: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25,
> delay=5.3, delays=0.12/0.51/0.36/4.3, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
> Jan  2 08:04:52 ohs postfix/qmgr[16316]: 72292189FF: removed
> Jan  2 08:04:52 ohs postfix/smtp[16347]: 950C118A00: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25,
> delay=5.2, delays=0.13/0.39/0.37/4.3, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
>
> Jan  2 08:04:52 ohs postfix/smtp[16350]: 950C118A00: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25, delay=5.3,
> delays=0.13/0.37/0.38/4.5, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
> Jan  2 08:04:52 ohs postfix/qmgr[16316]: 950C118A00: removed
>
> so it looks like all three of these went out with no delays inbetween each message, right?

Yes, so it is time that you follow instructions in the welcome message
and post "postconf -n" output instead of one-line fragments.

        Wietse

TO REPORT A PROBLEM see http://www.postfix.org/DEBUG_README.html#mail

TO (UN)SUBSCRIBE see http://www.postfix.org/lists.html

Thank you for using Postfix.
Reply | Threaded
Open this post in threaded view
|

Re: rate limit outgoing mails with mailman

Jason Welsh
my apologies.. here is the output of postconf -n


alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
default_destination_concurrency_limit = 1
default_destination_recipient_limit = 1
default_transport = smtp
home_mailbox = Maildir/
inet_interfaces = all
initial_destination_concurrency = 1
mailbox_size_limit = 0
mydestination = orientalhealthsolutions.com, ohs.com,
localhost.localdomain, localhost
myhostname = ohs
mynetworks = 127.0.0.0/8 192.168.1.5/32
myorigin = /etc/mailname
recipient_delimiter = +
relayhost = outgoing.verizon.net
smtp_destination_concurrency_limit = 1
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd
smtp_sasl_security_options =
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_limit = 1
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes


and yes Victor, I tied with and without the processes set to 1..
smtp      inet  n       -       -       -       1       smtpd -D
                                                       ^^^
in master.cf is the correct way, right?

regards,
Jason




Wietse Venema wrote:

> [hidden email]:
>  
>> excellent idea, so I did install the 2.5.4 version from the backport
>> and I now have
>> root@ohs:~# grep smtp_destination_rate_delay /etc/postfix/main.cf
>> smtp_destination_rate_delay = 10
>> root@ohs:~#
>>    
>
>  
>> and I restarted postfix
>> Jan  2 08:03:56 ohs postfix/master[16208]: terminating on signal 15
>> Jan  2 08:03:58 ohs postfix/master[16312]: daemon started -- version 2.5.4, configuration /etc/postfix
>>
>> and now when I send an email to my mailman mailing list, I still see it sending out emails with no delay..
>>
>> Jan  2 08:04:52 ohs postfix/smtp[16349]: 72292189FF: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25,
>> delay=5.3, delays=0.12/0.51/0.36/4.3, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
>> Jan  2 08:04:52 ohs postfix/qmgr[16316]: 72292189FF: removed
>> Jan  2 08:04:52 ohs postfix/smtp[16347]: 950C118A00: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25,
>> delay=5.2, delays=0.13/0.39/0.37/4.3, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
>>
>> Jan  2 08:04:52 ohs postfix/smtp[16350]: 950C118A00: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25, delay=5.3,
>> delays=0.13/0.37/0.38/4.5, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
>> Jan  2 08:04:52 ohs postfix/qmgr[16316]: 950C118A00: removed
>>
>> so it looks like all three of these went out with no delays inbetween each message, right?
>>    
>
> Yes, so it is time that you follow instructions in the welcome message
> and post "postconf -n" output instead of one-line fragments.
>
> Wietse
>
> TO REPORT A PROBLEM see http://www.postfix.org/DEBUG_README.html#mail
>
> TO (UN)SUBSCRIBE see http://www.postfix.org/lists.html
>
> Thank you for using Postfix.
>  

--
================================================
|    Jason Welsh   [hidden email]        |
| http://monsterjam.org    DSS PGP: 0x5E30CC98 |
|    gpg key: http://monsterjam.org/gpg/       |
================================================

Reply | Threaded
Open this post in threaded view
|

Re: rate limit outgoing mails with mailman

Victor Duchovni
On Fri, Jan 02, 2009 at 03:43:15PM -0500, Jason Welsh wrote:

> initial_destination_concurrency = 1
> default_destination_concurrency_limit = 1
> default_destination_recipient_limit = 1
> smtpd_recipient_limit = 1

Point shotgun away from foot.

--
        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:[hidden email]?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.
Reply | Threaded
Open this post in threaded view
|

Re: rate limit outgoing mails with mailman

Jason Welsh
yes, and I also realized I had commented out the item that Wietse had wanted me to put in..
Im just trying too many things at once.. Let me clean it up and try again.

Jason


On Fri, Jan 02, 2009 at 03:54:21PM -0500,
Victor Duchovni wrote:

> On Fri, Jan 02, 2009 at 03:43:15PM -0500, Jason Welsh wrote:
>
> > initial_destination_concurrency = 1
> > default_destination_concurrency_limit = 1
> > default_destination_recipient_limit = 1
> > smtpd_recipient_limit = 1
>
> Point shotgun away from foot.
>
> --
> 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:[hidden email]?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.

--
================================================
|    Jason Welsh   [hidden email]        |
| http://monsterjam.org    DSS PGP: 0x5E30CC98 |
|    gpg key: http://monsterjam.org/gpg/       |
================================================

Reply | Threaded
Open this post in threaded view
|

Re: rate limit outgoing mails with mailman

Wietse Venema
In reply to this post by Jason Welsh
Jason Welsh:
> my apologies.. here is the output of postconf -n

Did you notice that there is no smtp_destination_rate_delay

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: rate limit outgoing mails with mailman

Jason Welsh
In reply to this post by Victor Duchovni
On Fri, Jan 02, 2009 at 03:54:21PM -0500, Victor Duchovni wrote:

> On Fri, Jan 02, 2009 at 03:43:15PM -0500, Jason Welsh wrote:
>
> > initial_destination_concurrency = 1
> > default_destination_concurrency_limit = 1
> > default_destination_recipient_limit = 1
> > smtpd_recipient_limit = 1
>
> Point shotgun away from foot.
>
> --
> Viktor.

ok, here is my latest config..  

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
default_transport = smtp
home_mailbox = Maildir/
inet_interfaces = all
mailbox_size_limit = 0
mydestination = orientalhealthsolutions.com, ohs.com, localhost.localdomain, localhost
myhostname = ohs
mynetworks = 127.0.0.0/8 192.168.1.5/32
myorigin = /etc/mailname
recipient_delimiter = +
relay_destination_rate_delay = 10
relayhost = outgoing.verizon.net
smtp_destination_rate_delay = 10
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd
smtp_sasl_security_options =
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes


and heres my logs now

Jan  2 16:04:57 ohs postfix/smtp[18389]: B08B018A00: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25,
delay=0.89, delays=0.08/0.28/0.35/0.17, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
Jan  2 16:04:57 ohs postfix/qmgr[18371]: B08B018A00: removed
Jan  2 16:05:12 ohs postfix/smtp[18389]: E50B018A02: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25, delay=15,
delays=0.24/11/0.34/4.4, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
Jan  2 16:05:12 ohs postfix/smtp[18389]: E50B018A02: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25, delay=15,
delays=0.24/11/0.34/4.4, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
Jan  2 16:05:12 ohs postfix/qmgr[18371]: E50B018A02: removed

so there WAS a delay after the first one, but the second two seemed to go out together..
so we are making progress.. i think.. ;)

Jason

Reply | Threaded
Open this post in threaded view
|

Re: rate limit outgoing mails with mailman

Wietse Venema
> Jan  2 16:04:57 ohs postfix/smtp[18389]: B08B018A00: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25,
> delay=0.89, delays=0.08/0.28/0.35/0.17, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
> Jan  2 16:04:57 ohs postfix/qmgr[18371]: B08B018A00: removed
> Jan  2 16:05:12 ohs postfix/smtp[18389]: E50B018A02: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25, delay=15,
> delays=0.24/11/0.34/4.4, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
> Jan  2 16:05:12 ohs postfix/smtp[18389]: E50B018A02: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25, delay=15,
> delays=0.24/11/0.34/4.4, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
> Jan  2 16:05:12 ohs postfix/qmgr[18371]: E50B018A02: removed
>
> so there WAS a delay after the first one, but the second two seemed to go out together..
> so we are making progress.. i think.. ;)

The second message has TWO RECIPIENTS.

Postfix inserts 10s delay between MESSAGE deliveries not RECIPIENTS.

        Wieste
Reply | Threaded
Open this post in threaded view
|

Re: rate limit outgoing mails with mailman

Victor Duchovni
In reply to this post by Jason Welsh
On Fri, Jan 02, 2009 at 04:08:09PM -0500, [hidden email] wrote:

> and heres my logs now
>
> Jan  2 16:04:57 ohs postfix/smtp[18389]: B08B018A00: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25,
> delay=0.89, delays=0.08/0.28/0.35/0.17, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
> Jan  2 16:04:57 ohs postfix/qmgr[18371]: B08B018A00: removed
> Jan  2 16:05:12 ohs postfix/smtp[18389]: E50B018A02: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25, delay=15,
> delays=0.24/11/0.34/4.4, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
> Jan  2 16:05:12 ohs postfix/smtp[18389]: E50B018A02: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25, delay=15,
> delays=0.24/11/0.34/4.4, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
> Jan  2 16:05:12 ohs postfix/qmgr[18371]: E50B018A02: removed
>
> so there WAS a delay after the first one, but the second two seemed
> to go out together..  so we are making progress.. i think.. ;)

That's two recipients in a *single* delivery. Is there a problem with
that?  Postfix is correctly adding delays between message deliveries.

--
        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:[hidden email]?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.
Reply | Threaded
Open this post in threaded view
|

Re: rate limit outgoing mails with mailman

Jason Welsh
In reply to this post by Wietse Venema


Wietse Venema wrote:

>> Jan  2 16:04:57 ohs postfix/smtp[18389]: B08B018A00: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25,
>> delay=0.89, delays=0.08/0.28/0.35/0.17, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
>> Jan  2 16:04:57 ohs postfix/qmgr[18371]: B08B018A00: removed
>> Jan  2 16:05:12 ohs postfix/smtp[18389]: E50B018A02: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25, delay=15,
>> delays=0.24/11/0.34/4.4, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
>> Jan  2 16:05:12 ohs postfix/smtp[18389]: E50B018A02: to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25, delay=15,
>> delays=0.24/11/0.34/4.4, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
>> Jan  2 16:05:12 ohs postfix/qmgr[18371]: E50B018A02: removed
>>
>> so there WAS a delay after the first one, but the second two seemed to go out together..
>> so we are making progress.. i think.. ;)
>>    
>
> The second message has TWO RECIPIENTS.
>
> Postfix inserts 10s delay between MESSAGE deliveries not RECIPIENTS.
>
> Wieste
>  
well, right, like I said, this is from a mailman mailing list , and
there are 3 remote recipients in the list. But in the real list I want
to implement, there are hundreds at various addresses and I would like
to throttle ALL outgoing deliveries if I can. I guess best case scenario
now is to serialize the delivery process somehow.

thanks/regards,
Jason

--
================================================
|    Jason Welsh   [hidden email]        |
| http://monsterjam.org    DSS PGP: 0x5E30CC98 |
|    gpg key: http://monsterjam.org/gpg/       |
================================================

Reply | Threaded
Open this post in threaded view
|

Re: rate limit outgoing mails with mailman

Victor Duchovni
On Fri, Jan 02, 2009 at 04:16:26PM -0500, Jason Welsh wrote:

>
>
> Wietse Venema wrote:
> >>Jan  2 16:04:57 ohs postfix/smtp[18389]: B08B018A00:
> >>to=<[hidden email]>,
> >>relay=outgoing.verizon.net[206.46.232.12]:25, delay=0.89,
> >>delays=0.08/0.28/0.35/0.17, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
> >>Jan  2 16:04:57 ohs postfix/qmgr[18371]: B08B018A00: removed
> >>Jan  2 16:05:12 ohs postfix/smtp[18389]: E50B018A02:
> >>to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25,
> >>delay=15, delays=0.24/11/0.34/4.4, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
> >>Jan  2 16:05:12 ohs postfix/smtp[18389]: E50B018A02:
> >>to=<[hidden email]>, relay=outgoing.verizon.net[206.46.232.12]:25,
> >>delay=15, delays=0.24/11/0.34/4.4, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
> >>Jan  2 16:05:12 ohs postfix/qmgr[18371]: E50B018A02: removed
> >>
> >>so there WAS a delay after the first one, but the second two seemed to go
> >>out together..
> >>so we are making progress.. i think.. ;)
> >>    
> >
> >The second message has TWO RECIPIENTS.
> >
> >Postfix inserts 10s delay between MESSAGE deliveries not RECIPIENTS.
>
> well, right, like I said, this is from a mailman mailing list , and
> there are 3 remote recipients in the list. But in the real list I want
> to implement, there are hundreds at various addresses and I would like
> to throttle ALL outgoing deliveries if I can. I guess best case scenario
> now is to serialize the delivery process somehow.

Postfix will send 50 recipients at a time by default. Does the ISP
mandate a lower number of recipients per message? Sending more messages
with fewer recipients each is certainly not helpful to the ISP. Whatever
you set the smtp_destination_recipient_limit to, don't make it 1.

If you really want to get one recipient per message, consider using VERP,
a good idea with lists anyway.

--
        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:[hidden email]?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.
Reply | Threaded
Open this post in threaded view
|

Re: rate limit outgoing mails with mailman

Jason Welsh

>> well, right, like I said, this is from a mailman mailing list , and
>> there are 3 remote recipients in the list. But in the real list I want
>> to implement, there are hundreds at various addresses and I would like
>> to throttle ALL outgoing deliveries if I can. I guess best case scenario
>> now is to serialize the delivery process somehow.
>>    
>
> Postfix will send 50 recipients at a time by default. Does the ISP
> mandate a lower number of recipients per message? Sending more messages
> with fewer recipients each is certainly not helpful to the ISP. Whatever
> you set the smtp_destination_recipient_limit to, don't make it 1.
>
> If you really want to get one recipient per message, consider using VERP,
> a good idea with lists anyway.
>
>  
I looked it up and here is the real scoop.. ;)

*You may not include more than 100 recipients in a single email. Messages will not
be sent to any recipients in excess of 100.
*You may not exceed 500 recipients in 1 hour. Exceeding 500 recipients in 1 hour
will result in the suspension of your ability to send email for 24 hours.

so If I use the following:
smtp_destination_recipient_limit = 8
smtp_destination_rate_delay = 60

this means that only 480 messages will get relayed in one hour, right?


thanks/regards,

Jason



12