Re: [exim] Rate Limit Message Relaying

Top Page
Delete this message
Reply to this message
Author: Stephen Gran
Date:  
To: exim-users
Subject: Re: [exim] Rate Limit Message Relaying
On Sun, Dec 19, 2004 at 08:14:24PM +0100, Marcin Owsiany said:
> On Sun, Dec 19, 2004 at 06:12:49PM +0100, Kirill Miazine wrote:
> > * Marc Perkel [2004-12-18 13:53]:
> > > >>I'd like Exim to be able to rate limit outgoing messages from certian IP
> > > >>addresses who I would otherwise relay for.
>
> [...]
>
> > Fire up this daemon and you can use following in your ACL:
> >
> >     condition = ${readsocket{/tmp/relay.sock}{$sender_host_address\n}{5s}{}{no}}

> >
> > ${readsocket} in the above line will give "yes" if the relay access
> > should be denied and "no" if it should be allowed. Think that the daemon
> > answers the question: Should I deny access to client $sender_host_address?
>
> I guess what you described provides a way to rate-limit incoming
> messages, and as far as I can tell, he wanted to rate-limit outgoing
> messages.


Is there really a difference? The only difference between 'incoming'
and 'outgoing' has to do with routing and acls - all messages come from
somewhere, and go somewhere. So his method would work equally well with
incoming and outgoing, it just depends on conditions, domains, etc.
--
--------------------------------------------------------------------------
|  Stephen Gran                  | The odds are a million to one against   |
|  steve@???             | your being one in a million.            |
|  http://www.lobefin.net/~steve |                                         |

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