Postfix mails going to spam

5 posts / 0 new
Last post
#1 Fri, 04/29/2011 - 14:10
unsalkorkmaz

Postfix mails going to spam

well.. after long search.. i couldnt find solution on this. Let me explain with example:

wordpress@domain.com trying to send mail when i install wordpress for example
mymail@gmail.com is my real mail adress
root@hostname is server's root mail

root@hostname is alias to mymail@gmail.com

I disabled "Mail for domain" and wanted host my mails in domain.com on google apps. So there is only google apps's mx records in dns records. Domain's php applications will send mail from domain.com too like wordpress for example.

Basically my problem is if server send mail to outside mymail@gmail.com its directly going to spam. But if server send mail to root@hostname its successfully working and its not marking as spam in mymail@gmail.com as alias.

What should i do? I just want to prevent server's sent mails going to directly spam

Fri, 04/29/2011 - 16:03
unsalkorkmaz

i checked in http://www.openspf.org/Why this is result:

An SPF-enabled mail server rejected a message that claimed an envelope sender address of wordpress@domain.com.

An SPF-enabled mail server received a message from hostname (123.456.789.0) that claimed an envelope sender address of wordpress@domain.com.

The domain domain.com has authorized hostname (123.456.789.0) to send mail on its behalf, so the message should have been accepted. It is impossible for us to say why it was rejected.

Fri, 04/29/2011 - 19:44
unsalkorkmaz

Ok i think i am so close to fix this.

When i send mail from webmin as wordpress@domain.com its successfully sending: mailed-by: domain.com signed-by : domain.com Authentication-Results: mx.google.com; spf=pass (google.com: domain of wordpress@domain.com designates 123.456.789.0 as permitted sender) smtp.mail=wordpress@domain.com; dkim=pass (test mode) header.i=@domain.com

But when php trying to send mail its going spam: mailed-by: hostname.com signed-by : domain.com Authentication-Results: mx.google.com; spf=pass (google.com: domain of domain@hostname.com designates 123.456.789.0 as permitted sender) smtp.mail=domain@hostname.com; dkim=pass (test mode) header.i=@domain.com

So somehow i need to change mailed-by section.. when php trying to send mail its sending as smtp.mail=domain@hostname.com but it must be smtp.mail=wordpress@domain.com

How can i fix that?

Tue, 10/11/2011 - 02:01
nosco

Any news on this?

All mails sent from server goes to spam.

Tue, 12/06/2011 - 06:13
nosco

Solved as it could ...

Definitly you need SPF (as we know already), but in my case there was propagation time I needed to wait ...72 hours ! for full internet.

Still regarding google mails apps and gmail, they act strange. For example I have gmail account and two separate google apps accounts. i send mail to all three from virtualmin on my server on two gmail and 1st google app mail comes to inbox, on third to SPAM. All three accounts doesn't have incoming email address in contact list and all other settings are the same.

I presume that that regarding google mail services it depends on which server is your e-mail if incoming will go in SPAM or NOT.

Topic locked