Re: [exim] interface and greylistning

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Andy Bennett
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] interface and greylistning
Hi,

> Have a bit of an issue. When sending out emails out exim select
> an interface like this
>
> interface = ${lookup sqlite {SQLITE_Q_USERINTERFACE select ip
> from interface where active='Y' order by random() limit
> 1}{$value}}
> helo_data = ${lookup
> dnsdb{ptr=$sending_ip_address}{$value}{$primary_hostname}}
>
> Which works perfectly fine, however, if the server we send to
> has greylisting it will try again but every time it will select
> a new interface IP and therefore might get greylisted again (as
> the IP now is different), is there a way around this?


Depending on what goals you were trying to achieve with the
multiple-interfaces, one option might be to swap the "random()" for
something based on a consistent hash of message properties.

That way you could still get load balanced over the interfaces but a given
message would always select the same interface and you wouldn't have to
store any extra state.




Best wishes,
@ndy

--
andyjpb@???
http://www.ashurst.eu.org/
0x7EBA75FF