Re: [exim] interface and greylistning

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jeremy Harris
Datum:  
To: exim-users
Betreff: Re: [exim] interface and greylistning
On 21/11/2022 08:14, Laura Williamson via Exim-users wrote:
> 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?


Nothing built-in.

You'd have to craft something involving remembering what interface you last
tried, and preferring it after a defer. That probably requires using an
event to write a DB entry on defer.

Or set up a static mapping from destination (host or domain) to
interface.

Or, stop trying to be clever with these multiple interfaces.
--
Cheers,
Jeremy