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


--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to