Re: [Exim] RBL

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Andrey Novikov
Dátum:  
Címzett: exim-users
Tárgy: Re: [Exim] RBL
Hello James,

JD> Is there a way I can have the RBL list pass e-mail and send a
JD> notification to poatmaster@offending address?


Here's what I wrote a couple of days below. Be prepared to
get a lot of phone calls :)

# TRANSPORTS

rbl_warning_autoreply:
driver = autoreply
file = /etc/mail/rbl_warning.msg
file_expand
from = postmaster@$domain
to = $sender_address
cc = postmaster@$sender_address_domain
# next line needed only in Russia
headers = "Content-Type: text/plain; charset=koi8-r\nContent-Transfer-Encoding: 8bit"
reply_to = postmaster@$domain
subject = "AutoReply Re: $header_subject:"

# DIRECTORS

# must be the first

rbl_warning_handler:
driver = localuser
transport = rbl_warning_autoreply
condition = "${if def:h_x-rbl-warning: {yes}{no}}"
senders = *:!postmaster:!listmaster:!mailer-daemon:*"
no_verify
unseen

The file /etc/mail/rbl_warning.msg is in russian so I'll put
the template here:
---- cut here ----
Hello.

Your letter for $local_part@$domain ${if def:h_subject: {with subject:\n$h_subject:}{}}
WAS accepted for delivery but:

Bla-bla-bla  text  about  how bad is to have open relay with
some links to sourses of information:
ANTISPAM.RU     - http://www.antispam.ru/


Bla-bla-bla text about what to do and how to kill the
postmaster...

Here is what the mail server returned in the error message:
$header_x-rbl-warning:

Best regards,
postmaster of domain $domain,
Andrey Novikov
---- cut here ----

Best regards,
 Andrey                            mailto:scriber@webclub.ru