Slashdot Mirror


Bounced Email - Dealing w/ the Latest Type of Spam?

heretic108 asks: "For 3 years, I've been running a home office EXIM mailserver to handle mails on my 3 personal domains. All had been fine - I'd fastidiously configured EXIM to guard against relaying, and even now receive a clean bill of health from the various relay-checker sites. Spam levels were moderate, and mostly arrested by SpamAssassin and Thunderbird's inbuilt filters, until today. I got up this morning to find 3500+ e-mails in my inbox. All were bounces - spoofed and genuine, and came from a vast variety of IP addresses (eg lots of AOL users' IPs), which indicates they're being sent largely via compromised windows boxen, as well as from inadequately-configured corporate/ISP mailservers which don't bother to check the purported 'from' addresses against the originating domains. This hurricane continues, with 10-30 new incoming spams every minute! I've re-enabled Active Spam Killer, but this is next to useless, since ASK passes all 'bounce' messages, real or otherwise, to the mbox without challenge. I'm hoping to hear from anyone who can share success stories in dealing with such a menace, without undue complication or loss of legitimate mail. Thanks in advance for all your constructive and positive suggestions." It seems that dealing with regular Spam is almost easy in comparison to dealing with its consequences: bounced emails. Does anyone have suggestions, or filters on how to handle bounced e-mail that has resulted from someone using your e-mail address to spam someone else?

11 of 96 comments (clear)

  1. Baysian Spam Filter by Marxist+Hacker+42 · · Score: 3, Informative

    This is how I do it anyway- there are several out there but I use SpamBayes because I've got my mailserver on a Windows box.

    A baysian spam filter can learn to filter ANYTHING!

    --
    SJW: a person who perceives an injustice, and while correcting it, commits a greater injustice.
  2. Did you piss anyone off lately? by HotNeedleOfInquiry · · Score: 4, Informative

    Getting hit with a "joe job" is sometimes used as an act of revenge for a protest or flamewar. Best to keep your home email address out of the limelight for that reason.

    --
    "Eve of Destruction", it's not just for old hippies anymore...
    1. Re:Did you piss anyone off lately? by nocomment · · Score: 4, Informative

      mod parent up, that's exactly what happened to him. Just be patient the wave will subside in about a week. Most mail servers are set to bounce mail after 7 days for domains that don't exist. IT will slow down some over the next days with the last bounce happening in a few days.

      I too was joe-jobbed once and it is not pleasant.

      --
      /* oops I accidentally made a comment, sorry */
      /* http://allyourbasearebelongto.us */
    2. Re:Did you piss anyone off lately? by noahm · · Score: 4, Informative
      mod parent up, that's exactly what happened to him. Just be patient the wave will subside in about a week. Most mail servers are set to bounce mail after 7 days for domains that don't exist. IT will slow down some over the next days with the last bounce happening in a few days.

      Sadly, it may not subside so quickly. A couple of years ago I was really strict about reporting open relays and proxies and other spam-resenders to the ISPs responsible for the netblock on which they reside. Unfortunately, I think I sent a report to the abuse contact for some netblock that was actually controlled directly by spammers, or something like that. Ever since then, I've been under an almost constant joe-job. I don't have my mailer configured to copy postmaster on every bounce, but I see all sorts of bounce delivery attempts every day to accounts that have never existed.

      All I can think of is that it's an ongoing attempt to discredit my domain. I'm sure they're not targetting me specifically at this point, but have simply added my domain to a list of domains from which they send their forged mail.

      noah

  3. Bounces are a problem by AndroidCat · · Score: 3, Informative

    Back in the old days, a bounce email to the "sender" of the email was the proper way to do things. Now, a straight 5xx rejection response should be given as much as possible.

    --
    One line blog. I hear that they're called Twitters now.
  4. How to fix (Postfix) by fsck! · · Score: 5, Informative
    Can't say how to do this with exim because I've been using Postfix for as long as I can remember. Here's how I get around this:
    show_user_unknown_table_name = no

    smtpd_helo_required = yes

    smtpd_recipient_restrictions =
    permit_mynetworks,
    permit_sasl_authenticated,
    reject_invalid_hostname,
    reject_non_fqdn_sender,
    reject_non_fqdn_recipient,
    reject_unlisted_recipient,
    reject_unauth_destination,
    reject_unknown_sender_domain,
    reject_rbl_client relays.ordb.org,
    reject_rbl_client sbl.spamhaus.org,
    reject_rbl_client list.dsbl.org,
    check_policy_service inet:127.0.0.1:60000,
    permit

    smtpd_data_restrictions = reject_unauth_pipelining permit

    content_filter = lmtp-amavis:[127.0.0.1]:10024
    This enables greylisting, antivirus via amavis, rejecting unknown users at the SMTP stage, and I also publish SPF records. These together mean I see about 6 junk messages a month to my account. There are about 100 mailboxes on this server, and I they all report about the same level of noise.
    1. Re:How to fix (Postfix) by Matt+Perry · · Score: 2, Informative

      Maybe you should roll out a new MTA first. Treating temporary failure codes as permanent failures means your current MTA is broken.

      --
      Slashdot: Failed Car Analogies. Amateur Lawyering. Anecdote Battles.
  5. Bounce Keys by Anonymous Coward · · Score: 5, Informative

    Basically, you add an encrypted header to all outgoing emails which says "Yes, this email came from this server." Then, when you receive a bounce message, you check for the key. If it has it, it gets through, and if it doesn't, it gets rejected.

    Here's the Exim howto http://psg.com/~brian/software/authbounce/configur e-authbounce.txt

  6. Procmail recipe by Matt+Perry · · Score: 4, Informative
    This procmail recipe will at least get them out of your inbox. I got this from someone here on slashdot and I forgot to write down who it was from. Thanks anonymous slashdot procmail guru.
    # This recipe catches most DSNs
    :0HB
    * -1^0
    * 1^0 ^FROM_MAILER
    * 1^0 ^Status: 4.2.0
    * 1^0 ^Status: 4.4.1
    * 1^0 ^Status: 4.4.2
    * 1^0 ^Status: 4.4.6
    * 1^0 ^Status: 4.4.7
    * 1^0 ^Status: 5.0.0
    * 1^0 ^Status: 5.1.1
    * 1^0 ^Status: 5.1.2
    * 1^0 ^Status: 5.1.6
    * 1^0 ^Status: 5.2.1
    * 1^0 ^Status: 5.2.2
    * 1^0 ^Status: 5.2.3
    * 1^0 ^Status: 5.3.5
    * 1^0 ^Status: 5.4.7
    * 1^0 ^Status: 5.5.0
    * 1^0 ^Status: 5.7.1
    * 1^0 ^554 5.0.0 Service unavailable .*
    * 1^0 ^Remote host said: 550.*User unknown
    * 1^0 ^Remote host said: 554.*doesn't have a yahoo.com account.*
    * 1^0 ^User.*not listed in public Name & Address Book
    * 1^0 ^Sorry, no mailbox here by that name.
    * 1^0 ^<.*>: Unkown user:
    * 1^0 ^User mailbox exceeds allowed size:
    * 1^0 ^.*No matches to nameserver query
    * 1^0 ^A message that you sent could not be delivered
    * 1^0 ^.*550 unknown user
    * 1^0 ^This is a permanent error; I've given up.
    * 1^0 ^The user(s) account is temporarily over quota.
    * 1^0 ^Receiver not found:.*
    * 1^0 ^Requested action not taken: mailbox unavailable.
    * 1^0 ^--AOL Postmaster
    * 1^0 ^I'm sorry to have to inform you that the message returned
    * 1^0 ^550 5.1.1 <.*>... User unknown
    * 1^0 ^550 <.*>\.\.\. User unknown
    * 1^0 ^Subject:.*failure notice
    * 1^0 ^did not reach the following recipient\(s\):
    * 1^0 ^The following recipient(s) could not be reached:
    * 1^0 ^.*550 Mailbox quota exceeded
    * 1^0 ^.*550 Access Denied
    * 1^0 ^550 5.0.0.*Can't create output
    * 1^0 ^.*There is no such addressee as
    * 1^0 ^Mail Delivery Failed... User unknown
    daemon-msgs
    --
    Slashdot: Failed Car Analogies. Amateur Lawyering. Anecdote Battles.
  7. Backscatter by bob@dB.org · · Score: 4, Informative

    Spam lingo for this phenomenon is "backscatter" or "outscatter" (I prefer the last one, as the bounces are not actually sent "back", but to an innocent third party). Spam Links as a link collection to get you up to date at:

    http://spamlinks.net/filter-bounce.htm

    A nice solution is Bounce Address Tag Validation (BATV), described at:

    http://www.ietf.org/internet-drafts/draft-levine-m ass-batv-00.txt

    Abstract:

    The envelope of Internet mail contains an RFC2821.MailFrom command, which may supply an address to be used as the recipient of transmission and delivery notices about the original message. Existing Internet mail permits unauthorized use of addresses in the MailFrom command, causing notices to be sent to unwitting and unwilling recipients. Bounce Address Tag Validation (BATV) defines an extensible mechanism for validating the MailFrom address. It also defines an initial use of that mechanism which requires no administrative overhead and no global implementation.
    --
    Acts@core.mailboks.com Acrux@core.mailboks.com Adam@core.mailboks.com Adar@core.mailboks.com Ada@core.mailboks.com
  8. Re:Send all bounce msgs to /dev/null/ by Dark+Nexus · · Score: 2, Informative

    Months ago, and barely months.

    Legitimate bounces DO still happen. Not often for most people, but they are still a reality.

    --
    Dark Nexus
    "Sanity is calming, but madness is more interesting."