On Mon, May 31, 2021 at 02:46:40PM +0700, Victor Sudakov via Exim-users wrote: > Evgeniy Berdnikov via Exim-users wrote: > > On Mon, May 31, 2021 at 01:57:26PM +0700, Victor Sudakov via Exim-users > > wrote: > > > Here is -d+lookup: https://termbin.com/08fv > > > > Lookup failed. Have you string "r...@http1.hiddendomain.com" in this file? > > Check it by hands: exim -be '${lookup {r...@http1.hiddendomain.com} ...}'. > > root@http1:~ # exim -C /usr/local/etc/exim/configure.nolocalmail -be > '${lookup{r...@http1.hiddendomain.com}lsearch{/etc/mail/whitelist.local}}' > > root@http1:~ # grep r...@http1.hiddendomain.com /etc/mail/whitelist.local > r...@http1.hiddendomain.com > root@http1:~ #
All works as programmed: Lookup for "r...@http1.hiddendomain.com" gives empty string, bool{} converted it to "false", so ${if...} fails and condition is wrong. You have to change this logic. Say, add value to lookup key. -- Eugene Berdnikov -- ## 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/