Re: [Exim] Whitelist of users for LARTed domains

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Scott M. Nolde
Fecha:  
A: exim-users
Asunto: Re: [Exim] Whitelist of users for LARTed domains
Scott M. Nolde(scott@???)@2002.06.03 21:16:38 +0000:
> Greetings,
>
> I have the following director in my configuration which blocks hosts from
> certain domains:
> bounce_spam_master:
> driver = smartuser
> require_files = /etc/exim/spammers
> senders = /etc/exim/spammers
> new_address = :fail: "unknown local-part \"$local_part\" in domain
> \"$domain\""
>
> My ultimate goal is to have hotmail senders blocked except for a specific
> set of $sender_address in a file.
>
> Can anyone think of a good way to do this by adding a conditon?
>
> Thanks,
> scott
> --


With enough monkeys at the typewriter, I found this to work:
bounce_spam_master:
driver = smartuser
require_files = /etc/exim/spammers
senders = /etc/exim/spammers
new_address = :fail: "unknown local-part \"$local_part\" in domain
\"$domain\""
condition = "${if {!eq {$sender_address}{lsearch;/etc/exim/whitelist}}{0}{1}}"
This is handy if a user has friends on hotmail or yahoo which need to
send mail, yet I deny other unlisted users from delivery.

--
Scott Nolde
GPG Key 0xD869AB48