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

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

--
## 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