fetchmail-friends
[Top] [All Lists]

[fetchmail] Garbage in Return-Path causes 501 in MTA

2003-07-09 03:41:28
Is it possible to force some fixed "MAIL FROM:" address instead of
extracting garbage from Return-Path? My problem is that spam frequently
contains garbage in Return-Path and local Exchange contributes a lot to
mess it up even more. When such garbage gets to local MTA (MasqMail), it
chokes on it with 501 error. Such messages then hang on mail server.

My spam filter is fourth part in the chain (Exchange -> fetchmail ->
MasqMail -> procmail) and I need to get whatever garbage through first
three parts of the chain. Actually I am executing procmail with
parameter "-f fake-fetchmail" which rewrites From_ line anyway so there
is no reason to preserve it in fetchmail.

I have there example of such mail[1] and corresponding error message[2].
Note that in this case it isn't wrong address, it's Exchange screwing
Return-Path, so it isn't necessarily problem with spam. I deleted
original message, but I have there three more that I keep in mailbox in
case somebody might wish to debug it.

MasqMail maintainer claims this would be easier to fix in fetchmail than
MasqMail, so please don't tell me that MasqMail should be fixed instead.

[1] <http://www.privateweb.sk/robertvazan/logs/masqmail-message.txt>
[2] <http://www.privateweb.sk/robertvazan/logs/masqmail-error.txt>