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

Pàgina inicial
Delete this message
Reply to this message
Autor: Evgeniy Berdnikov
Data:  
A: exim-users
Assumpte: 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