Re: [exim] limiting simaltenous connections to certain hosts

Top Page
Delete this message
Reply to this message
Author: Stephen Gran
Date:  
To: exim-users
Subject: Re: [exim] limiting simaltenous connections to certain hosts
On Thu, Aug 31, 2006 at 08:22:31PM +0200, Zbigniew Szalbot said:
>
> Dean Brooks said the following:
> > On Thu, Aug 31, 2006 at 06:24:44PM +0100, Stephen Gran wrote:
>
> I did test it for a while. Here are some results. I need your help
> because I am not sure how to interpret them. I sent about 20 emails from
> MUA to exim on a single connection and exim protested deffering some of
> them (because of the limit in exim config). Anyway, I watched what would
> happen.
>
> 2006-08-31 20:08:14 J4VJH9-00020O-3X SMTP error from remote mail server
> after MAIL FROM:<EMAIL_ADDRESS> SIZE=9583: host mx8.go2.pl
> [193.17.41.48]: 421 mx8.go2.pl Error: too much mail from 83.19.156.210
> 2006-08-31 20:08:14 J4VJH9-00020O-3X == EMAIL_ADDRESS R=dnslookup
> T=remote_smtp defer (-45): SMTP error from remote mail server after MAIL
> FROM:<EMAIL_ADDRESS> SIZE=9583: host mx8.go2.pl [193.17.41.48]: 421
> mx8.go2.pl Error: too much mail from 83.19.156.210


This indicates that you are not doing the rate limiting on new messages
as well.

> So it looks as if they didn't care messages were being passed with exim
> -bd -qq option but then I noticed:
>
> 2006-08-31 20:08:22 J4VJHA-00020O-B7 => EMAIL_ADDRESS R=dnslookup
> T=remote_smtp H=mx6.go2.pl [193.17.41.46]
> 2006-08-31 20:08:22 J4VJHA-00020O-B7 Completed
> 2006-08-31 20:08:24 J4VJH9-00020O-3X => EMAIL_ADDRESS R=dnslookup
> T=remote_smtp H=mx6.go2.pl [193.17.41.46]*
> 2006-08-31 20:08:24 J4VJH9-00020O-3X Completed


The * indicates that the subsequent deliveries were made on a single
conenction, yes. That part is working.

By default, exim tries to immediately deliver a new message. You want
to queue messages for this provider to prevent this. The simplest is
probably an acl with control = queue based on some lookup (dnsdb for MX
matches some regex of their inbound MX'es is probably the simplest, but
TMTOWTDI)
--
--------------------------------------------------------------------------
|  Stephen Gran                  | Tact, n.:  The unsaid part of what      |
|  steve@???             | you're thinking.                        |
|  http://www.lobefin.net/~steve |                                         |

--------------------------------------------------------------------------