Spam relayed using mail forwarding loop

This is a problem that many of us are facing, because Postfix
installations are by default vulnerable to this. I don't know about other
mail servers.

I recently noticed when checking mailq that that my system has bounces
from MAILER-DAEMON going out to unusual addresses. The messages are a
standard delivery service notification but what concerned me is they
didn't originate on my system, and because of the junk in the body
contents I am the one sending out this spam!

That's the kind of thing that can get you blacklisted if you hit a
spamtrap. Time to check if you're relaying junk. I certainly receive a
lot of it from other mail servers!

Search your postfix logs for "mail forwarding loop" and see if your
outgoing queue has strange DSNs. Here's what the spammers are doing: they
send mail containing a Delivered-To: field, which causes Postfix to
detect what it thinks is a forwarding loop. A new error DSN is
constructed and sent back to the "originator" (which is a forged address
of course). So you have sent an annoying, spammy error back to the
victim.

I skimmed through the postfix mailing list and there is no fix on the
Postfix side so you'll have to modify your configuration somehow to
prevent these attacks. Since I use renattach as a filtering module, I
added a new switch (--loop) which tells renattach to drop the Delivered-
To field on incoming mail. Since locally delivered mail doesn't go
through the filter service, this preserves normal loop detection locally.

If you want to grab this new version, it's at
http://www.pc-tools.net/unix/renattach/

See the INSTALL file to integrate with Postfix as a filter.

--
Jem Berkes
Software design for Windows and Linux/Unix-like systems
http://www.sysdesign.ca/
Jem Berkes [ Mi, 25 Oktober 2006 06:08 ] [ ID #1513814 ]

Re: Spam relayed using mail forwarding loop

Jem Berkes <jb [at] users.pc9.org> wrote in
news:Xns986717ECDA41jbuserspc9org [at] 216.196.97.131:

> This is a problem that many of us are facing, because Postfix
> installations are by default vulnerable to this. I don't know about
> other mail servers.

It turns out that many other mail servers are vulnerable to the same
problem. Since I posted this, these attacks have become more common and now
some mail servers are finding themselves blacklisted because of the spam
they are sending. I think admins still haven't caught on that they can be a
source of spam even if they are not an "open relay" in the typical sense.

Please check your mail servers and make sure you are not a source of spam!

I've heard the problem referred to as "backscatter" (mailer-generated
automatic messages that are directed to entirely the wrong address, a
victim of a forgery).
Jem Berkes [ Mi, 20 Dezember 2006 10:46 ] [ ID #1574213 ]
Miscellaneous » comp.mail.misc » Spam relayed using mail forwarding loop

Vorheriges Thema: using .procmail to compare "To" addresses.
Nächstes Thema: Free Mail Server Hosting or Start up Homepage.