Re: [Exim] acl to reject clients

Startseite
Nachricht löschen
Nachricht beantworten
Autor: John W. Baxter
Datum:  
To: exim-users
Betreff: Re: [Exim] acl to reject clients
On 6/9/2004 5:47, "Odhiambo G. Washington" <wash@???> wrote:

> In the Exim system filter (isn't Exim so flexible?) craft the evil rule
> like so (I hope you make the sense out of this):
>
> !!Beware line wraps!!!
>
> # This evil rule should only run if the mail is from their domain and
> # the sending host is within their subnet
>
> if $sender_address_domain is their-domain.com and
> ${mask:$sender_host_address/XX} is a.b.c.d/XX
>  and $header_X-Mailer does not match "Microsoft Outlook Express
> X.XX.XXXX.XXXX" then
>  logfile /var/log/exim/banned-mailers.log
>  logwrite "$tod_log Reason: (EVIL_MAILER_RULE was Matched)\n\Message-id:
> $message_id (Banned Mailer)\n\
>            BANNED Mailer Agent: $header_X-Mailer\n\Subject:
> $header_subject\n\Recipients: $recipients\n\
>            Return path: $return_path\n\

>

------------------------------------------------------------------------------>
"
> fail text "You are using a mailer program, $header_X-Mailer BANNED by ORG
> Policy 123."
> endif


There may be mail programs aside from Macintosh Eudora (and old Windows
Eudora versions I think) which do not put out an X-Mailer: header. So the
above substitution really should do something about empty $header_X-Mailer.

--John