Re: [Exim] System wide filter question

Página Inicial
Delete this message
Reply to this message
Autor: Dave C.
Data:  
Para: Gururajan Ramachandran
CC: exim-users
Assunto: Re: [Exim] System wide filter question
The system filter is NOT the place to do this.

Use an aliasfile instead, with :fail: for the addresses that you no
longer want mail for. (or /dev/null if you cant or dont want to generate
bounces)


On Thu, 7 Feb 2002, Gururajan Ramachandran wrote:

> Hello,
>
> I have a system wide filter that I am using to throw away spam and other email
> still being sent to former employees' email addresses. It works quite well and the
> junk email cluttering up the queue has been reduced. However, I notice from the
> logs that some of this email is still getting through. I chose $message_headers
> rather than something specific like $h_To: because I figured it should be able to
> get all of the junk. What am I missing and what can I do to completely prevent
> these unnecessary emails from getting through?
>
> Here is the message filter file with changed addresses:
>
> -----------------------Begin filter file----------------
> # Exim filter
> #
>
> if error_message then finish endif
>
> if $message_headers contains user1@??? or
>    $message_headers contains user2@??? or
>    $message_headers contains user3@??? or
>    $message_headers contains user4@??? or
>    $message_headers contains user5@??? or
>    $message_headers contains user6@??? or
>    $message_headers contains user7@??? or
>    $message_headers contains user8@??? or
>    $message_headers contains user9@??? or
>    $message_headers contains user10@??? or
>    $message_headers contains user11@??? or
>    $message_headers contains user12@??? or
>    $message_headers contains user13@??? or
>    $message_headers contains user14@??? or
>    $message_headers contains user15@??? or
>    $message_headers contains user16@??? or
>    $message_headers contains user17@??? or
>    $message_headers contains user18@???
> then
>   seen finish
> endif
> --------------------End filter file-------------------

>
> I left the error stuff in there because the documentation recommended it.
>
> Thanks,
>
> Guru
>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>
>


--