Re: [exim] Restricting sending/receipt

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Jakob Hirsch
日付:  
To: exim-users
題目: Re: [exim] Restricting sending/receipt
Cole Tuininga wrote:

>     ! domains =
> ${lookup{$authenticated_id}lsearch{/etc/exim4/restricted_accounts}{$value}{*}}

...
>     data = ${lookup{$local_part}lsearch*{/etc/exim4/aliases/$domain}}


So /etc/exim4/aliases/example.com contains "bob example-bob" and
/etc/exim4/restricted_accounts contains "example-bob
example.com:example.org"?
Looks a little strange, but this should work (unless my logic is broken):

deny ! sender_domains = ${lookup {\
${lookup {$local_part} lsearch* {/etc/exim4/aliases/$domain}}\
} lsearch {/etc/exim4/restricted_accounts} {$value}{*}}


You should probably verify the sender before this ACL rule, so the inner
lookup returns always a result.