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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Evgeniy Berdnikov
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] discard mail from all local users except
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}}
--
Eugene Berdnikov