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

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Evgeniy Berdnikov
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] discard mail from all local users except
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 "root@???" in this file?
> > Check it by hands: exim -be '${lookup {root@???} ...}'.
>
> 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:~ #


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.
--
Eugene Berdnikov