Re: [exim] How can I blocking users e-mail within a local do…

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Tim Wilde
Data:  
Para: exim users
Assunto: Re: [exim] How can I blocking users e-mail within a local domain.
W B Hacker wrote:
> IF the $local_part is not used in any of your other domains, how about adding it
> to the system aliases file and pointing it to bit-bucket (/dev/null)?
>
> Cheap and cheerful, though it leaves senders in the dark.


Or better yet, alias it to :fail: if you have allow_fail set for that
redirect router, then the senders aren't in the dark. But I got the
impression from the OP that the $local_part in question is still
receiving valid mail to other domains. In that case, you could set up a
virtusertable-equivalent, as described for example at:

http://www.exim.org/pipermail/exim-users/Week-of-Mon-20030127/049071.html

virtual_user:
driver = redirect
allow_fail
data = ${lookup{$local_part\@$domain}lsearch{/etc/exim/virtusertable}}
file_transport = address_file
pipe_transport = address_pipe

Then in your /etc/exim/virtusertable (or whatever file you choose to
use), make an entry like:

him@???: :fail:

And viola, you should be all set. This would need to go before your
local delivery router, and possibly before your system aliases router if
there are aliases for "him" in there. You also don't need the file and
pipe transports defined if you don't plan to use files or pipes in your
virtusertable.

Regards,
Tim Wilde