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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Evgeniy Berdnikov
Date:  
À: exim-users
Sujet: 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