On 2026-02-04 10:40, Jeremy Harris via Exim-users wrote:
On 2026/02/04 9:16 AM, MRob via Exim-users wrote:
I guess it cant be put in one file with host and sender address. Hmm. Is the only solution to use MYSQL?

One file could work. Slightly more work than a DB, IF you need to handle a list of allowable hosts per sender address. But the basic place to start
is "lsearch" in the Exim docs.

Thank for the tip! It can work like:

set acl_m_hosts_list = ${lookup{$acl_m_from_addr}lsearch{/etc/exim/host_wl.txt}}

Then test remote hostname against the lookd up host list. Format of file is:

[email protected]:*.test.com:*.google.com:*.example.net
[email protected]:*.google.com

But I have question if there is some way to iterate lookup results instead (lsearch stops first match, instead what if there are two matching lines like this:

[email protected]:*.test.com
[email protected]:*.example.net

Is there way to collect/compile multple lookup data values together?

--
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   [email protected]
## Exim details at https://www.exim.org/
## Please use the Wiki with this list - https://code.exim.org/exim/wiki/wiki

Reply via email to