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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Victor Sudakov
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] discard mail from all local users except
Evgeniy Berdnikov via Exim-users wrote:
> On Mon, May 31, 2021 at 03:59:57PM +0700, Victor Sudakov via Exim-users wrote:
> > PS in olden times, I think I could write something like
> >
> > acl_not_smtp:
> >      accept condition           = ${lookup{$authenticated_sender}lsearch{/etc/mail/whitelist.local}}
> >      discard message

> >
> > and it used to work.
>
> It's very simple and does not require boolean convertions:
>
> condition = ${lookup {<key>} lsearch {<file>}{yes}{no}}


Oh. Was it just "{yes}{no}" I was missing from the "old school" condition above?

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