Link to home
Start Free TrialLog in
Avatar of computerlarry
computerlarryFlag for United States of America

asked on

How to stop gmail from marking mail from my server as spam?

I had a spam problem about a month ago, which I fixed on my end.  I notice now that email I send to recipients at gmail are automatically being marked as spam.

My mail server is Unix - Communigate Pro running on an old PowerMac. Outbound mail goes to my SMTP server, which is a Dell SonicWall ES-3300    I changed the IP address after the spam got past the SonicWall, and put the new address into my DNS, which is hosted by DYN.com

I looked at the header of a message I sent to my gmail account.  I see something wrong with the SPF record  

X-Mlf-Uniqueid: o201708020314430029673
Arc-Seal: i=1; a=rsa-sha256; t=1501643684; cv=none; d=google.com; s=arc-20160816; b=fxKfyh5i6PzjoNNZkIMPSigH31cy4YQ3IwPn/XLlJekZPjdgLTVrCmwlzwGh2orLVN GAg7JYp8zmTIKmoj2fOo5/v5m9m+aMH16VJDa7PKxY2H5qYRt9OHehY+o6UqP95Il9lz 3/cqc1G6Fo+j3t0oCCa8H/JW4+03+o3X9nlX+ioY6gOoFGy7GtWzW4OJpxiJZUjxhtxp FgenvR03ekg/ZHQv7j3P/FIoDPhoQK/EzgofSx6a7qKwl0D4jY8YzBVvcQjfHYaJV96j porICVs9nghyv8bE7Oy34UxkqG3ZLJznTB4WqAmYzkC8Nw3duZRcC8G0B+ZXQXz1s7mi Jz0A==
X-Received: by 10.55.197.88 with SMTP id p85mr27288566qki.281.1501643684625; Tue, 01 Aug 2017 20:14:44 -0700 (PDT)
X-Mlf-Version: 8.3.2.6531
Return-Path: <prvs=138714c1e1=larry@computerlarry.com>
Arc-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning prvs=138714c1e1=larry@computerlarry.com does not designate 24.89.176.52 as permitted sender) smtp.mailfrom=prvs=138714c1e1=larry@computerlarry.com
X-Mailbutler-Tracking-Uuid: 69382BB2-E533-4689-85A1-2A2DB99D8811
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning prvs=138714c1e1=larry@computerlarry.com does not designate 24.89.176.52 as permitted sender) smtp.mailfrom=prvs=138714c1e1=larry@computerlarry.com

Yet when I check my domain with mxtoolbox, I see that the SPF is OK

What setting do I have that's causing this?  Thanks.

User generated image
Avatar of Mal Osborne
Mal Osborne
Flag of Australia image

That diagnostic just checks that you have a valid SPF record. It does not check that it is correct.

The SPF record needs to cover whatever IP address you send email from that domain out through.

If it is 24.89.176.52, then the SPF has to cover that. Simplest fix would be to modify your SPF by adding IP4:24.89.176.52
ASKER CERTIFIED SOLUTION
Avatar of Mal Osborne
Mal Osborne
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The ~all could be problematic as well. This is interpreted as a "softfail", meaning some sort of testing is being done, and it is not a pass or a fail. Gmail might interpret this as suspicious, you really want a pass.

More here:

https://en.wikipedia.org/wiki/Sender_Policy_Framework
Avatar of computerlarry

ASKER

Adding the IP to the SPF record worked!   The ~all is necessary for my backup email service, Intermedia.  They have a lot of machines that the ~all applies to.

Thanks!
Modifying the SPF record with the IP address solved the problem!   Thanks SO much for the recommendation of mail-tester.