Information Security Stack Exchange is a question and answer site for information security professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Someone is using my Google Apps Email ID to send spam messages and I've received 2000+ undelivered and autorespond emails.

I have no idea how to block this because the spammer is also using my email as reply-to email.

If you have any previous experiences, can you tell me how to block this in an easy way?

Subjects are like "URGENT Pedophile Alert" and "Heres your $1OOO Walmart Gift Card"

My DNS has this as the TXT record: v=spf1 a mx ip4:X.X.XX.XX ~all

I have now added this: v=spf1 ~all

For reference, here's a sample reply to an email I received (I have added xxxx to hide some emails):

Received: by with SMTP id n9csp996482wlb;
        Sun, 24 Jan 2016 14:48:58 -0800 (PST)
X-Received: by with SMTP id w82mr17774512qka.52.1453675738222;
        Sun, 24 Jan 2016 14:48:58 -0800 (PST)
Return-Path: <>
Received: from ( [])
        by with ESMTPS id 7si20890653qgy.13.2016.
        for <>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
        Sun, 24 Jan 2016 14:48:58 -0800 (PST)
Received-SPF: pass ( best guess record for domain of designates as permitted sender) client-ip=;
       spf=pass ( best guess record for domain of designates as permitted sender) smtp.mailfrom=;
       dmarc=fail (p=NONE dis=NONE)
Received: from ([]) by over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008);
     Sun, 24 Jan 2016 14:48:57 -0800
Received: from ( by ( with Microsoft SMTP
 Server (TLS) id 15.1.390.13; Sun, 24 Jan 2016 22:48:56 +0000
Received: from ([]) by ([]) with Microsoft
 SMTP Server id 15.01.0390.013; Sun, 24 Jan 2016 22:48:56 +0000
To: Neighborhood Alert <>
Subject: Automatic reply: URGENT Pedophile Alert
Thread-Topic: URGENT Pedophile Alert
Thread-Index: AQHRVvlnYJlMVx0pu0eDEW+YO1CewZ8LRN0u
Date: Sun, 24 Jan 2016 22:48:56 +0000
Message-ID: <>
References: <>
In-Reply-To: <>
X-Auto-Response-Suppress: All
authentication-results:; dkim=none (message not signed)
 header.d=none;; dmarc=none action=none;
x-ms-exchange-parent-message-id: <>
auto-submitted: auto-generated
x-ms-exchange-generated-message-source: Mailbox Rules Agent
x-microsoft-exchange-diagnostics: 1;BN3PR17MB0625;23:szzPHpRWFWcejvo2dVr00t4AmKBuIQDpL3YmG6ZCC5F/mfnjUl/jlt55bZF/MtXSTFhp0/CX3A1b/sGFEV4zxkFoBjbtnJtEa6BKcTT8WTQ6Teef4aeLAfDtuizz7xnYvOABjb7ypohELRorJ+crqT4VC49sxoI0DL4/s/FBdgqQldhRcWIqGt03naEtuRpUyN/Fe92wH/fcA8NXyAg+Mg==;5:+c3FXL7JypOTqHvY8I3WIqTp7xEaq8cyZMuC77eHCAmKt2hVjmUtKB91eVkr7Qi7d6sVjae+uk9gbv2/uxkXrXpbQM/GoP8gwpN6hSb08y9SqQHh2BOVNMl+0YvIB57AcGMYQUXW2gvzanmG1GLPfA==;24:MRTsqWmPbTTdXzjvcnrNYmNjuiue/CXXsOT8meWUHPlRD+VBUVnIkamU4QgBZoVbx2+IOOUkNKcqkrXVQdN6m2Cmr7fSpQ04SBxi8vaQ3lA=
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR17MB0625;
x-ms-office365-filtering-correlation-id: 0afd3f36-0f70-4738-daf4-08d325108aa3
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(432015012)(82015046);SRVR:BN3PR17MB0625;BCL:0;PCL:0;RULEID:;SRVR:BN3PR17MB0625;
x-forefront-prvs: 0831C25939
x-forefront-antispam-report: SFV:NSPM;SFS:(7070004)(98900002);DIR:OUT;SFP:1901;SCL:1;SRVR:BN3PR17MB0625;;FPR:;SPF:None;LANG:en;
spamdiagnosticoutput: 1:23
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative;
MIME-Version: 1.0
X-OriginatorOrg: sct-15-1-318-15-msonline-outlook-9143d.templateTenant
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2016 22:48:56.4758
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR17MB0625
Return-Path: <>
X-OriginalArrivalTime: 24 Jan 2016 22:48:57.0752 (UTC) FILETIME=[68EAD180:01D156F9]

share|improve this question
As far as I know this is really hard to counter without controlling the mail server yourself. I would contact your mail provider definitely. – AdHominem Feb 4 at 18:19
Have you tried generating a new Apps ID in case the current one got accidentally leaked? If that works, the next step might be to see if you can identify how the ID got leaked - like through an infected computer that you've used recently. – Dom Feb 4 at 23:39
@Dom I didn't created any Apps ID, Just changed the DNS records to link to Google Apps. – Surjith S M Feb 5 at 7:06
@AdHominem Will try that too.. – Surjith S M Feb 5 at 7:07
If you want to Google more discussion about this, it is called a "joe job". – Ben Jackson Feb 5 at 7:41

I have now added this : v=spf1 ~all

The ~all at the end just causes a soft fail, that is that mail will still be delivered. If you want to have a permanent fail use -all. Of course this only affects mail server which check the SPF records, which are not all.

share|improve this answer
If I put -all, All mails will fail? Even the one I'm sending? I'm also using mailchimp to use the email. So that will also will not deliver? Sorry, I'm a newbie.. – Surjith S M Feb 5 at 7:08
@SurjithSM: From your question I would assume that you have no understaning of how SPF works but still try to configure it somehow. Basically it specifies which mail servers (IP address) can deliver mails to other mail servers which contain a specific sender domain as sender. For more details see – Steffen Ullrich Feb 5 at 8:50
In the Google Help, they says, If you used -all, you will get some mail delivery issues. So I'm confused (Indeed I have no knowledge in this tuff) – Surjith S M Feb 6 at 9:04
The mail delivery issues you might have are because servers checking SPF don't accept mail from this domain which is not sent through the specified mail servers. In case of misuse of your domain this is exactly what you want. Of course you need to follow your rules yourself, i.e. don't try to use your domain as sender when the delivery is not done through googles mail servers. – Steffen Ullrich Feb 6 at 9:10

From the mail it looks like they are sending from a google account, circumenting the SPF record.Misread the respective headers. It's not the case

My recommendation would be to roll out DMARC and DKIM. This allows you to ask the receiving servers to discard or quarantine mail if it wasn't sent and signed by your server. I don't know if DKIM is possible with Google Apps email.

share|improve this answer
Sorry, I'm a newbie, Can you explain what should I do? – Surjith S M Feb 5 at 7:05
DKIM & DMARC Can both be implemented in a google apps environment (GMAIL) - Having recently (And very painfully) configured in an enterprise environment. - google docs on adding DMARC - configuring DKIM DKIM will have no effect in this instance, as presumably your emails are not being intercepted and changed during transmission. – Aaron Dobbing Feb 5 at 12:04

If you're getting bounce messages back to you, that's known as backscatter. It's possible to filter out bogus bounce messages. See also for other ways to filter backscatter.

This does not stop the spammer from sending emails to victims, using your name in the From: line.

share|improve this answer
But does that stop the spammer to sending emails to victims? – Surjith S M Feb 5 at 7:10
@SurjithSM, see edited answer. – D.W. Feb 5 at 7:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.