Re: [exim] discard mail from all local users except

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Victor Sudakov
Datum:  
To: exim-users
Betreff: Re: [exim] discard mail from all local users except
Jeremy Harris via Exim-users wrote:
> On 31/05/2021 08:46, Victor Sudakov via Exim-users wrote:
> > root@http1:~ # exim -C /usr/local/etc/exim/configure.nolocalmail -be '${lookup{root@???}lsearch{/etc/mail/whitelist.local}}'
> >
> > root@http1:~ # grep root@??? /etc/mail/whitelist.local
> > root@???
> > root@http1:~ #
>
> Those two don't seem to match. Because you're obfuscating we
> can't be certain, but it's most likely that one of the strings
> involved is incorrect.
>
> Obfuscation makes it harder for us to help you.


Already solved by Evgeniy, thank you!

Quoting Evgeniy (and his solution is correct):

All works as programmed: Lookup for "root@???" 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.

--
Victor Sudakov VAS4-RIPE
http://vas.tomsk.ru/
2:5005/49@fidonet