[Exim] filtering 'MAILER-DAEMON' stuff (try again)

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Dirk Koopman
Dátum:  
Címzett: EXIM users list
Tárgy: [Exim] filtering 'MAILER-DAEMON' stuff (try again)
It appears that my email address is now in regular use as a 'From:'
address in spam and I am starting to get significant clots of bounces as
a result. My filter doesn't seem to do anything...

I have an exim filter in place for the email account and the relevant
section looks like this:

# Exim filter
if error_message then finish endif
#

if $h_x-spam-flag: is "YES" then
    save spam
    finish
endif


if $h_from: contains "mailer-daemon" and
    $message_body does not contain "post.tobit.co.uk" then
    save spam
    finish
endif


# mailbox folder filtering happens below

----------------------------

When tested with the (no longer) attached example it gives:-

/usr/sbin/exim -v -bf .forward < /tmp/msg.4
Sender taken from "From " line
Return-path taken from "Return-path:" header line
Return-path = <>
Sender      = postmaster@???
Recipient   = djk@???
Testing Exim filter file ".forward"


Condition is false: error_message
Condition is true: $h_x-spam-flag: is YES
Save message to: spam
Finish
Filtering set up at least one significant delivery or other action.
No other deliveries will occur.

-------------------------------

The log entry for the example below is:

2004-01-21 10:58:01 1AjG3W-0008JG-7Y <= <> H=mail-4.tiscali.it [195.130.225.150] P=esmtp S=44748 id=400CE0E10010F81D@???
2004-01-21 10:58:01 1AjG3W-0008JG-7Y => djk <djk@???> R=localuser T=local_mbx
2004-01-21 10:58:01 1AjG3W-0008JG-7Y Completed

-------------------------------

The headers are for a standard bounce with 'no recipient'.

The problem is that it doesn't work when used in anger on real,
incoming, mail as you can see from the log.

Dirk
--
Please Note: Some Quantum Physics Theories Suggest That When the
Consumer Is Not Directly Observing This Message, It May Cease to
Exist or Will Exist Only in a Vague and Undetermined State.