Postfix Issue mails goes to spam. Have A, MX and rDNS record
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Postfix Issue mails goes to spam. Have A, MX and rDNS record
Hello
I have a issue with my mailserver, when I sent mails to hotmail and probely other servers, the mail is going to spam.
I have set A record, MX record and rDNS.
My setup is Debian as server and Postfix with dovecot to handle mails.
There are 2 domains on the server and that is mail.casoe84.org there handle mails for both because of A record and rDNS.
Here is my main.cf file (stripped for database and passwords)
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
I did a little bit of investigation and confirmed that your DNS, both forward and reverse as well as your MX record seem fine. I also ran your domain against a black list check. To be honest, it looks like you have done everything right. One thing that I can think of you may want to add is an SPF record. There is another, newer, type of validation method but I can't recall the name of it off hand (it shouldn't cause you problems to not have it).
I am wondering if there is something in your content that could be triggering the spam flag. For a first step, I would see if you can get a full header from one of these mails to see if there is any spam filter analysis. Also check the headers and make sure that there isn't a mis-match of some form where it appears to be coming from a different system.
Lastly, check your domain at the mxtoolbox site. It has a lot of tools that will do an thorough check against your domain and report anything that could cause you to appear as spam.
Is that the PTR Record you are thinking at?
About SPF record I can't find it in my dns manager and my vps hoster said that the only thing they could do for me was the rDNS.
About the header there I can make one right away because I have an gmail and hotmail for testing pupose.
The headers from that mail look clean as far as I can tell. There is some information towards the top that is hotmail diagnostic code, such as X-SID-PRA, but it doesn't seem to be an error. I did find one link that has some usefull information: here. They recommend a site called port25.com and suggest sending an email requesting a report but note that it takes a while to get it back. The other thing that is mentioned is that MSN, Yahoo, Gmail, etc often times use internal black lists that could be banning you.
As far as the SPF record goes, it is just a TXT record that goes in the forward DNS entry. This would be something you can set up with your DNS provider, which is usually your registrar. Your ISP can change the rDNS to match your domain rather than something like a.b.c.d-provider-name. The link about mentions things like DKIM and domain keys, which I haven't looked into. A link is here. It seems to be another form of email authentication and apparently some providers make use of this.
The only thing that is remotely questionable in your email header is this entry (emphasis mine):
Quote:
Received: from mail.casoe84.org ([81.7.189.48]) by snt0-mc2-f24.Snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675);
Mon, 22 Nov 2010 16:18:21 -0800 Received: from [10.0.3.14] (unknown [95.166.163.54])
by mail.casoe84.org (Postfix) with ESMTPA id 264CF2841CA;
The 95.166.163.54 resolves to fullrate.dk, which I assume is your provider. This appears as the origin entry of the email and it is possible that hotmail is triggering on this. The domain and the IP both check clean for RBLs, though. Are you using some form of relay to send your mail?
I will try to look at the links but have never success full added a txt to the DNS
Quote:
Originally Posted by Noway2
The only thing that is remotely questionable in your email header is this entry (emphasis mine):
The 95.166.163.54 resolves to fullrate.dk, which I assume is your provider. This appears as the origin entry of the email and it is possible that hotmail is triggering on this. The domain and the IP both check clean for RBLs, though. Are you using some form of relay to send your mail?
No I don't use a relay server I'm calling my smtp directly in my mailprogram.
10.0.3.4 Is my internal IP on my network here at home
And yes fullrate Is my ISP
Quote:
Originally Posted by jamrock
you using a fixed i.p. address from your ISP? Some sites will treat mail coming from dynamic i.p. addresses as spam.
I'm using fixed IP both at my VPS and at home, but why should that be some issue It should only see are the IP in any spamlist's and that is no, then the mail is okay.
I am really sorry that you are having such trouble. It really looks like you are doing everything right, including the rDNS, which is often times overlooked.
I have a few more suggestions for you:
1 - in your hotmail, make sure that your spam filter is not set to restrictive (no higher than standard). This causes anyone who is not explicitly marked as safe to automatically go to your junk mail.
2 - With hotmail, it does appear that X-AUTH-Result: NONE and X-SID-Result not being pass are the indications that they think the mail is junk. Hotmail supposedly has a Sender ID list that you will need to contact them regarding. You appear to be getting neutral results, which is a lot better than being classified as SPAM.
3 - Domain Keys and SPF records also appear to be the ticket with them according to other posts I read. From my own experience, this was the difference with Yahoo for me.
4 - As an experiment, try to relay your mail through your ISP's smtp server instead of directly. If this resolves the problem of being classified as junk, it will tell you that your problem is one of server identification. If still goes to the junk folder then it is an indication that there is something in the content, such as HTML only, or wrong keywords, etc. As with the sender ID, contact Hotmail may be the answer.
One tip for creating an SPF record, there are wizards on line that will do that for you. Since your domain is set up well with respect to the DNS, this should be an almost automatic process. Search for 'create spf record' and you should get results for these wizards. Believe it or not, the Microsoft wizard is quite good. It will give you the text, which is a little cryptic, that you simply add to your zone. This is just like adding an A or MX record but the type is TXT instead.
Lastly, here and here are a couple of links that I found that I referenced in this reply in case it helps. I searched on the X-Auth-Result to find them.
I'm using fixed IP both at my VPS and at home, but why should that be some issue It should only see are the IP in any spamlist's and that is no, then the mail is okay.
A significant portion of spam is generated by infected home machines. Most home internet connections use dynamic i.p. addresses. For this reason, some ISP's reject mail originating from mail servers on dynamic i.p. addresses.
If someone wants to host a mail server on a dynamic ip. address, it is best to forward the mail through his ISP's mail server.
3 - Domain Keys and SPF records also appear to be the ticket with them according to other posts I read. From my own experience, this was the difference with Yahoo for me.
4 - As an experiment, try to relay your mail through your ISP's smtp server instead of directly. If this resolves the problem of being classified as junk, it will tell you that your problem is one of server identification. If still goes to the junk folder then it is an indication that there is something in the content, such as HTML only, or wrong keywords, etc. As with the sender ID, contact Hotmail may be the answer.
4. Allso I won't go it to the Sender ID project still because of my english. There can easy be made som failures when that is on such a high level when I don't understand everything perfect
The port25 report looks clean. The DKIM and Sender ID are neutral, but that is to be expected given that you haven't implemented them. As far as I can tell, everything looks good on your end and you have taken the proper steps to run a valid email server. I think your next step will be to send an email to the administrators of the domains that are giving you trouble (yahoo, hotmail, gmail) and ask them to put you on the accepted list. A lot of times, you will receive an automated response and if you reply to it correctly, you will automatically get removed from the Spam list. The sad fact is that spam is such a problem that the big mail providers have had to resort to an "unless I know you, I assume your spam" policy and people like you are paying the price.
I wouldn't let English be a barrier to keeping you from contacting them, your English seems pretty good to me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.