I have small server hosting with few domains. I am useing ispconfig with postfix. When I send mail from my server (nevermind from which domain) to gmail message is marked as spam. Domain: coolschool[dot]com[dot]pl or flyot[dot]com Address IP: 195.191.180.155 DNS server: dns1.zuostczew.pl and dns2.zuostczew.pl (there is my dns servers) OS: Debian As you can see, my mail server is set up with the following: The server has DKIM (could you check?) SPF(TXT) is set correctly (it is?) The server's PTR (reverse DNS) points correctly to my mail server (could you check?) IP is not on blacklists When I test this domain on mxtoolbox.com I have warn: smtp: Reverse DNS is not a valid Hostname - what's that mean? Another tools says is all good. Postfix use only IPv4 (inet_protocols = ipv4) I made all what I found on this and other sites. Here is mail header (sent by SquirrelMail webmail client): Here is postfix main.cf
Haven't check your SPF yet but if I do reverse DNS lookup I receive different domains ... this is bad. You set myhostname = flyot.com in your postfix config, therefore it greets other servers with HELO flyot.com If they check the IP and get coolschool.com as answert HELO differs and therefore is a missmatch. Make sure you use one hostname and configure your reverse dns to always return the domain you used there. Also if you want to use virtual domains you may also want to use something like server.flyot.com since you shoudn't / can't have it in mydestination AND in virtual listings therefore you have hard times to setup mail accounts for that domain.
I don't think is very bad, I added two PTR records (coolschool.com.pl and flyot.com) becouse before it was same situation. I mean when I had only one PTR to flyot.com. However I will change it. So how to correctly setup bind zone for each domain when I have on one IP ten domains? You sugest about change... For example: @ IN MX 1 coolschool.com.pl. Change to @ IN MX 1 flyot.com. in coolschool.com.pl bind zone? I think it is same record.
You don't need RDNS to show all of your domains. Postfix uses a greeting "HELO somedomain" and is connecting from one IP, the HELO and RDNS of the used IP have to match. You developed SPF as "soft fail" try using "-all" instead of "~all" ( https://www.howtoforge.com/community/threads/configure-mail-to-to-not-end-in-the-bin.72183/#post-339645 )
Yes, before write this post I trired to test spf record with -all and ~all - still nothing. I removed PTR record, and now nslookup 195.191.180.155 show name only as flyot.com - still nothing 155.180.191.195.in-addr.arpa is an alias for rev155.zuostczew.pl. rev155.zuostczew.pl domain name pointer flyot.com. It could be? Thank you ztk.me, but do you have any more idea? This is mail sent to gmail, marked as a spam:
basically I don't see any issues here - I could imagine there are still some mechanisms remembering that IP was marked spam previously - shouldn't take too long that is going to reset, I'd assume something between a few and max. 48 hours - but can't say that for sure. There should be no issue with your alias setup - which I've not seen very often. Google for example also uses mx12.gmail.com, mx13.gmail.com and so on as hostnames / rdns for their instances. Typically you pick something like "machinename.domainname.tld" - but yeah, I don't really see the issue here why your mail is still sorted as spam. I'd probably just wait a few hours and try again. Maybe someone else has some more suggestions?
Still nothing... Really, someone else has more suggestions? All who read this post don't know how to resolve this problem?
Thank you Nap! But I don't see any problem in my mail. Ok, I see: DomainKeys check: neutral, but I think is not issue. zkt.me what do You think?
Another thing I noticed, with regards to Outlook 2007 is that if you don't set your email address correctly in the Internet E-mail Settings dialog (E-mail Address field), gmail will mark your mail as spam. This is in the Account Settings area for adding/editing accounts. I'm not sure if this is a problem with other mail clients.
Google does some analyzing of the mails content to make sure it's legit. It does not, or at least didn't in the past, really needed DKIM, not even showing the results to users. The only difference between usual setups I know and yours is, you use somehost.tld as servername instead of machinename.domain.tld which shouldn't be an issue. Also your IP has no bad, in fact no reputation at all. What if you don't use webmail but some proper mail client for sending mails ( not having some of their advertisments in its header fields like "sent using phpmailer xyz" "sent by webmail on foo version bar". Maybe google likes something like Thunderbird headers better - I don't know. Maybe you just need to send more mails, also to other users, who mark them as "no spam" - this could help.