Server compromised. Bounce message contains many email addresses message was not sent to

Posted by Tim Duncklee on Server Fault See other posts from Server Fault or by Tim Duncklee
Published on 2013-05-01T17:21:10Z Indexed on 2013/11/06 3:58 UTC
Read the original article Hit count: 666

Filed under:
|
|

This is not a dupe. Please read and understand the issue before marking this as a duplicate question that has been answered already.

Several customers are reporting bounce messages like the one below. At first I thought their computers had a virus but then I received one that was server generated so the problem is with the server.

I've inspected the logs and these email addresses do not appear in the logs. The only thing I see that I do not remember seeing in the past are entries like this:

Apr 30 13:34:49 psa86 qmail-queue-handlers[20994]: hook_dir = '/var/qmail//handlers/before-queue'
Apr 30 13:34:49 psa86 qmail-queue-handlers[20994]: recipient[3] = '[email protected]'
Apr 30 13:34:49 psa86 qmail-queue-handlers[20994]: handlers dir = '/var/qmail//handlers/before-queue/recipient/[email protected]'

I've searched here and the web and maybe I'm just not entering the right search terms but I find nothing on this issue.

Does anyone know how a hacker would attach additional email addresses to a message at the server and have them not appear in the logs?

CentOS release 5.4, Plesk 8.6, QMail 1.03

Hi. This is the qmail-send program at psa.aaaaaa.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<[email protected]>:
82.201.133.227 does not like recipient.
Remote host said: 550 #5.1.0 Address rejected.
Giving up on 82.201.133.227.

<[email protected]>:
64.18.7.10 does not like recipient.
Remote host said: 550 No such user - psmtp
Giving up on 64.18.7.10.

<[email protected]>:
173.194.68.27 does not like recipient.
Remote host said: 550-5.1.1 The email account that you tried to reach does not exist. Please try
550-5.1.1 double-checking the recipient's email address for typos or
550-5.1.1 unnecessary spaces. Learn more at
550 5.1.1 http://support.google.com/mail/bin/answer.py?answer=6596 w8si1903qag.18 - gsmtp
Giving up on 173.194.68.27.

<[email protected]>:
207.115.36.23 does not like recipient.
Remote host said: 550 5.2.1 <[email protected]>... Addressee unknown, relay=[174.142.62.210]
Giving up on 207.115.36.23.

<[email protected]>:
207.115.37.22 does not like recipient.
Remote host said: 550 5.2.1 <[email protected]>... Addressee unknown, relay=[174.142.62.210]
Giving up on 207.115.37.22.

<[email protected]>:
207.115.37.20 does not like recipient.
Remote host said: 550 5.2.1 <[email protected]>... Addressee unknown, relay=[174.142.62.210]
Giving up on 207.115.37.20.

<[email protected]>:
207.115.37.23 does not like recipient.
Remote host said: 550 5.2.1 <[email protected]>... Addressee unknown, relay=[174.142.62.210]
Giving up on 207.115.37.23.

<[email protected]>:
207.115.36.22 does not like recipient.
Remote host said: 550 5.2.1 <[email protected]>... Addressee unknown, relay=[174.142.62.210]
Giving up on 207.115.36.22.

<[email protected]>:
74.205.16.140 does not like recipient.
Remote host said: 553 sorry, that domain isn't in my list of allowed rcpthosts; no valid cert for gatewaying (#5.7.1)
Giving up on 74.205.16.140.

<[email protected]>:
207.115.36.20 does not like recipient.
Remote host said: 550 5.2.1 <[email protected]>... Addressee unknown, relay=[174.142.62.210]
Giving up on 207.115.36.20.

<[email protected]>:
207.115.37.21 does not like recipient.
Remote host said: 550 5.2.1 <[email protected]>... Addressee unknown, relay=[174.142.62.210]
Giving up on 207.115.37.21.

<[email protected]>:
192.169.41.23 failed after I sent the message.
Remote host said: 554 qq Sorry, no valid recipients (#5.1.3)

--- Below this line is a copy of the message.

Return-Path: <[email protected]>
Received: (qmail 15962 invoked from network); 1 May 2013 06:49:34 -0400
Received: from exprod6mo107.postini.com (64.18.1.18)
  by psa.aaaaaa.com with (DHE-RSA-AES256-SHA encrypted) SMTP; 1 May 2013 06:49:34 -0400
Received: from aaaaaa.com (exprod6lut001.postini.com [64.18.1.199])
    by exprod6mo107.postini.com (Postfix) with SMTP id 47F80B8CA4
    for <[email protected]>; Wed,  1 May 2013 03:49:33 -0700 (PDT)
From: "Support" <[email protected]>
To: [email protected]
Subject: Detected Potential Junk Mail
Date: Wed, 1 May 2013 03:49:33 -0700

Dear [email protected],

junk mail protection service has detected
suspicious email message(s) since your last visit and directed them
to your Message Center.

You can inspect your suspicious email at:

...

UPDATE: After not seeing this problem for a while, I personally sent a message and immediately got a bounce with several bad addresses that I know I did not send to. These are addresses that are not on my system or on the server. This problem happens with both Mac and Windows clients and with messages generated from Postini and sent to users on my system.

This is NOT backscatter. If it was backscatter it would not have the contents of my message in it.


UPDATE #2

Here is another bounce. This one was sent by me and the bounce came back immediately.

Hi. This is the qmail-send program at psa.aaaaaa.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<[email protected]>:
71.74.56.227 does not like recipient.
Remote host said: 550 5.1.1 <[email protected]>... User unknown
Giving up on 71.74.56.227.

<[email protected]>:
Connected to 208.34.236.3 but sender was rejected.
Remote host said: 550 5.7.1 This system is configured to reject mail from 174.142.62.210 [174.142.62.210] (Host blacklisted - Found on Realtime Black List server 'bl.mailspike.net')

<[email protected]>:
66.96.80.22 failed after I sent the message.
Remote host said: 552 sorry, mailbox [email protected] is over quota temporarily (#5.1.1)

<[email protected]>:
83.145.109.52 does not like recipient.
Remote host said: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox table
Giving up on 83.145.109.52.

<[email protected]>:
69.49.101.234 does not like recipient.
Remote host said: 550 5.7.1 <[email protected]>... H:M12 [174.142.62.210] Connection refused due to abuse. Please see http://mailspike.org/anubis/lookup.html or contact your E-mail provider.
Giving up on 69.49.101.234.

<[email protected]>:
212.55.154.36 does not like recipient.
Remote host said: 550-The account has been suspended for inactivity
550 A conta do destinatario encontra-se suspensa por inactividade (#5.2.1)
Giving up on 212.55.154.36.

<[email protected]>:
199.168.90.102 failed after I sent the message.
Remote host said: 552 Transaction [email protected] failed, remote said "550 No such user" (#5.1.1)

<[email protected]>:
98.136.217.192 failed after I sent the message.
Remote host said: 554 delivery error: dd Sorry your message to [email protected] cannot be delivered. This account has been disabled or discontinued [#102]. - mta1210.sbc.mail.gq1.yahoo.com

--- Below this line is a copy of the message.

Return-Path: <[email protected]>
Received: (qmail 2618 invoked from network); 2 Jun 2013 22:32:51 -0400
Received: from 75-138-254-239.dhcp.jcsn.tn.charter.com (HELO ?192.168.0.66?) (75.138.254.239)
  by psa.aaaaaa.com with SMTP; 2 Jun 2013 22:32:48 -0400
User-Agent: Microsoft-Entourage/12.34.0.120813
Date: Sun, 02 Jun 2013 21:32:39 -0500
Subject: Refinance
From: Tim Duncklee <[email protected]>
To: Scott jones <[email protected]>
Message-ID: <CDD16A79.67344%[email protected]>
Thread-Topic: Reference
Thread-Index: Ac5gAp2QmTs+LRv0SEOy7AJTX2DWzQ==
Mime-version: 1.0
Content-type: multipart/mixed;
    boundary="B_3453053568_12034440"

> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--B_3453053568_12034440
Content-type: multipart/related;
    boundary="B_3453053568_11982218"


--B_3453053568_11982218
Content-type: multipart/alternative;
    boundary="B_3453053568_12000660"


--B_3453053568_12000660
Content-type: text/plain;
    charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable

Scott,

... email body here ...

Here are the relevant log entries:

Jun  2 22:32:50 psa qmail-queue[2616]: mail: all addreses are uncheckable - need to skip scanning (by deny mode)
Jun  2 22:32:50 psa qmail-queue[2616]: scan: the message(drweb.tmp.i2SY0n) sent by [email protected] to [email protected] should be passed without checks, because contains uncheckable addresses
Jun  2 22:32:50 psa qmail-queue-handlers[2617]: Handlers Filter before-queue for qmail started ...
Jun  2 22:32:50 psa qmail-queue-handlers[2617]: [email protected]
Jun  2 22:32:50 psa qmail-queue-handlers[2617]: [email protected]
Jun  2 22:32:50 psa qmail-queue-handlers[2617]: hook_dir = '/var/qmail//handlers/before-queue'
Jun  2 22:32:50 psa qmail-queue-handlers[2617]: recipient[3] = '[email protected]'
Jun  2 22:32:50 psa qmail-queue-handlers[2617]: handlers dir = '/var/qmail//handlers/before-queue/recipient/[email protected]'
Jun  2 22:32:51 psa qmail: 1370226771.060211 starting delivery 57: msg 1540285 to remote [email protected]
Jun  2 22:32:51 psa qmail: 1370226771.060402 status: local 0/10 remote 1/20
Jun  2 22:32:51 psa qmail: 1370226771.060556 new msg 4915232
Jun  2 22:32:51 psa qmail: 1370226771.060671 info msg 4915232: bytes 687899 from <[email protected]> qp 2618 uid 2020
Jun  2 22:32:51 psa qmail-remote-handlers[2619]: Handlers Filter before-remote for qmail started ...
Jun  2 22:32:51 psa qmail-queue-handlers[2617]: starter: submitter[2618] exited normally
Jun  2 22:32:51 psa qmail-remote-handlers[2619]: from=
Jun  2 22:32:51 psa qmail-remote-handlers[2619]: [email protected]
Jun  2 22:32:51 psa qmail: 1370226771.078732 starting delivery 58: msg 4915232 to remote [email protected]
Jun  2 22:32:51 psa qmail: 1370226771.078825 status: local 0/10 remote 2/20
Jun  2 22:32:51 psa qmail-remote-handlers[2621]: Handlers Filter before-remote for qmail started ...
Jun  2 22:32:51 psa qmail-remote-handlers[2621]: [email protected]
Jun  2 22:32:51 psa qmail-remote-handlers[2621]: [email protected]

© Server Fault or respective owner

Related posts about linux

Related posts about spam