php - SPF DKIM PTR seem good, but still marked as spam -


tl;dr spf ad dkim pass, prt record complete, no blacklisted ip, not spammy message, still go spam.

gmail (and other mail hosts) marking messages spam. they're not spam, they're purchase receipts, upcoming class reminders , thank notes attending class. sent bespoke database driven system, looks upcoming classes, , pulls message , email addresses (and first names) database , sends message.

it's been working fine couple of years, noticed few months ago customers started complaining weren't getting mail expected. it's @ point no gmail user receive messages inbox. other servers flag spam.

so signed vps, away possible bad server neighbors. read lot on spf , dkim, , believe have them set correctly. ptr seems resolve right domain.

the email not spammy @ all, no content changes have effect (including simple plain text messages). html few linked images, including 1 open tracking pixel (src of spacer.phpid=12345). include unsub link. think follow guidelines sending mail set out google. there few html links, simple text linkafied gmail.

i'd happy provide information need might help, may need told how provide, ie you. i'm not total noob, new vps.

personal details (domains, email addresses , ips) have been obfuscated, message original headers can help. link addresses have been broken (changes example.com intentionally).

dmik enabled through cpanel spf record set host

v=spf1 +a +mx +ip4:123.456.7.20 +ip4:123.456.7.207 -all 

here's original message headers received message in spam folder

delivered-to: sentotaddress@gmail.com received: 10.36.120.193 smtp id p184csp1956256itc;         tue, 19 apr 2016 11:25:11 -0700 (pdt) x-received: 10.50.167.2 smtp id zk2mr5499232igb.2.1461090311026;         tue, 19 apr 2016 11:25:11 -0700 (pdt) return-path: <info@example.com> received: vps.example.com (vps.example.com. [123.456.7.20])         mx.google.com esmtps id lo2si6108912igb.89.2016.04.19.11.25.10         <sentotaddress@gmail.com>         (version=tls1_2 cipher=ecdhe-rsa-aes128-gcm-sha256 bits=128/128);         tue, 19 apr 2016 11:25:10 -0700 (pdt) received-spf: pass (google.com: domain of info@example.com designates 123.456.7.20 permitted sender) client-ip=123.456.7.20; authentication-results: mx.google.com;        dkim=pass header.i=@example.com;        spf=pass (google.com: domain of info@example.com designates 123.456.7.20 permitted sender) smtp.mailfrom=info@example.com dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;     d=example.com; s=default; h=content-transfer-encoding:     content-type:mime-version:message-id:reply-to:from:date:subject:to;     bh=l630t1o7h48yzm8wbx3ylsohh9n09reeszj7fdmufos=; b=vfinwlzajpr4w9n4fjoelk5oqy     vcpuohmf2vz4dwruzysmzv7mca2kuhdf8bd81ojf6+aiopsgnfnt9dzhbouwc1yttc1ldiytity2m     +fvacp5n+/qgubmhdc5godo0godzapxz2quztgbedqtc7j9zbkdtjey8/ux/mttmqjr6utyb/5k3t     wg3zck+p+rm9zxg8z2e41bheqm/rag8mfqp3t558zzgovruzjl+gq8dzs0vpqwqimfeut2q1bcxq8     akcd15+2zwocfxepuymclttqcn3+zzj5vrrvmspecrwxe4nz0klex4g4t4cmqzpse4av7mc6mghuo     +0qhigaa==; received: hostaccountname vps.example.com local (exim 4.86_1)     (envelope-from <info@example.com>)     id 1asakc-0002yd-ns     sentotaddress@gmail.com; tue, 19 apr 2016 12:25:02 -0600 to: sentotaddress@gmail.com subject: test 409 x-php-script: example.com/cron_mass_mailer.php 123.456.7.207 date: tue, 19 apr 2016 12:25:02 -0600 from: simon lastname <info@example.com> reply-to: simon lastname <info@example.com> message-id: <dcdd902d9d1e0ff42ee195a8e17b2562@example.com> x-mailer: phpmailer 5.2.14 (https://github.com/phpmailer/phpmailer) mime-version: 1.0 content-type: multipart/alternative;     boundary="b1_dcdd902d9d1e0ff42ee195a8e17b2562" content-transfer-encoding: 8bit x-antiabuse: header added track abuse, please include abuse report x-antiabuse: primary hostname - vps.example.com x-antiabuse: original domain - gmail.com x-antiabuse: originator/caller uid/gid - [501 512] / [47 12] x-antiabuse: sender address domain - example.com x-get-message-sender-via: vps.example.com: authenticated_id: hostaccountname/from_h x-authenticated-sender: vps.example.com: info@example.com  multi-part message in mime format.  --b1_dcdd902d9d1e0ff42ee195a8e17b2562 content-type: text/plain; charset=us-ascii  14 address, city, sa 12345   hi simon,  great see last night, enjoy catching guys. , letting me test out. hope makes inbox!  if doesn't, copy , paste , results spam filter, or headers, see if there's clues see issues are.  thanks! me    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ me tel/sms: (123) 123-1231 https://example.com     connect online unsubscribe newsletter here https://example.com/unsubscribe   --b1_dcdd902d9d1e0ff42ee195a8e17b2562 content-type: text/html; charset=us-ascii   <!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width"> </head> <body style="font:12px arial, helvetica, sans-serif;"> <table style="width:580px;">     <tr>         <td>             <p style="text-align:center;font-size:18px;padding-bottom:12px;margin-bottom:18px;border-bottom:1px solid #cccccc;"><img src="https://example.com/images/htmlemail/logo120.png" alt="logo png" align="center" style="margin:auto;width:100px;"><br><br/><span style="text-align:center;font-size:12px;">007 st. colo spgs, co 80903</span></p>   <p>hi simon,<br /> <br /> great see last night, enjoy catching guys. , letting me test out. hope makes inbox!<br /> <br /> if doesn't, copy , paste , results spam filter, or headers, see if there's clues see issues are.<br /> <br /> thanks!<br /> me<br /> <br /> <br/><img src="https://example.com/images/htmlemail/spacer.php?spacer=13654"></p>             <p  style="font-size:12px;"> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br/> me<br/> tel/sms: (123) 123-1231<br/> https://example.com<br/> <br/>  <a href="https://twitter.com/mytwitter"><img src="https://example.com/images/htmlemail/twitter25.png" alt="follow me on twitter" style="margin:0 10px 0 0;"></a> <a href="https://www.facebook.com/mydomain"><img src="https://example.com/images/htmlemail/facebook25.png" alt="like on facebook" style="margin:0 10px 0 0;"></a> <br/>connect online</p> <p style="font-size:11px;">unsubscribe newsletter here https://example.com/unsubscribe</p>         </td>     </td> </table> </body> </html>    --b1_dcdd902d9d1e0ff42ee195a8e17b2562-- 


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -