Page 1 of 2

Sending mail problems, detected as spam

Posted: Sat Dec 21, 2013 1:13 pm
by Kaurer
Hello,

I have a problem sending mail. All mail I send reaches tray Gmail spam.

I have reviewed the SPF record for the domain and it seems correct, this is what I have:

@ TXT "v=spf1 a mx ip4:xx.xx.xx.xx ?all"

Thanks for your help, greetings.

Re: Sending mail problems, detected as spam

Posted: Sat Dec 21, 2013 2:17 pm
by skid
Hi Kaurer,

most probably server hostname doesn't match FQDN. You can setup it using "hostname my.domain.ltd" command. There is also one important thing. Server IP should have pingable PTR (reverse record).

Re: Sending mail problems, detected as spam

Posted: Sat Dec 21, 2013 3:49 pm
by Kaurer
Hi skid,

This is what I have set up right now:

# cat /etc/hostname
srv1.mydomain.com

#cat /etc/hosts
127.0.0.1 localhost srv1.mydomain.com

On DigitalOcan pane for PTR I have:
ip: xx.xx.xx.xx
PTR record: srv1.mydomain.com.

Is this correct?

Thank you very much for your help.

Re: Sending mail problems, detected as spam

Posted: Tue Dec 24, 2013 1:46 pm
by skid
Kaurer, everything looks right. Google is also love DKIM signatures I suggest you to make it as well.

Re: Sending mail problems, detected as spam

Posted: Tue Dec 24, 2013 5:16 pm
by Kaurer
Hi skid,

The IP of the server is very new and has never been used to send emails, perhaps that could be the cause.

I'll try to add a DKIM signature and see what happens.

Thanks for your help. Greetings.

Re: Sending mail problems, detected as spam

Posted: Tue Jan 14, 2014 6:55 am
by nightstryke
Hey my setup is a bit different, but i'm getting the same issue.

Here's my settings:

# cat /etc/hostname
server1

#cat /etc/hosts
127.0.0.1 localhost
x.x.x.x server1.mydomain.com server1


I don't have digital ocean, i'm hosting it off of a vps on my dedicated server and my domain registrar is godaddy.

Any help would be much appreciated!

Re: Sending mail problems, detected as spam

Posted: Sun Jan 19, 2014 1:01 pm
by misak35
Here is mine # cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
# Auto-generated hostname. Please do not remove this comment.
xxx.xxx.xxx.xxx server1.mydomain.tld server1
::1 localhost.localdomain localhost

How to setup a valid PTR? I check my domain on https://www.whatsmydns.net/#PTR/ and get me Error: Invalid IP address :S :S

Re: Sending mail problems, detected as spam

Posted: Mon Jan 20, 2014 5:07 am
by nightstryke
misak35 wrote:Here is mine # cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
# Auto-generated hostname. Please do not remove this comment.
xxx.xxx.xxx.xxx server1.mydomain.tld server1
::1 localhost.localdomain localhost

How to setup a valid PTR? I check my domain on https://www.whatsmydns.net/#PTR/ and get me Error: Invalid IP address :S :S
I'm looking at this as I"m trying to get it setup properly and it looks like we may have to edit one or all of the templates manually.

Code: Select all

/usr/local/vesta/data/templates/dns/child-ns.tpl
/usr/local/vesta/data/templates/dns/default.tpl
/usr/local/vesta/data/templates/dns/gmail.tpl
Looking at it more closely, the default and child should probably be edited to add a PTR/RDNS setting. - I'm not sure on this as I haven't tried it yet.

Re: Sending mail problems, detected as spam

Posted: Mon Jan 20, 2014 9:36 am
by misak35

Re: Sending mail problems, detected as spam

Posted: Thu Jan 29, 2015 9:08 am
by Muczkowski
Hello, I'll refresh the subject.

Problem is the same. Mails go without any problem but only gmail throws them to spam.
My settings are:

hostname:
mail.circusmosaic.pl

PTR:
mail.circusmosaic.pl

DKiM is on,

SPF set like:
TXT "v=spf1 a mx ip4:xx.xx.xx.xx ~all"

lets go with some screenshot:
http://circusmosaic.pl/2.png
http://circusmosaic.pl/3.png

..so what's wrong with that?
Thaank you!