Problem receiving mail - postfix/dovecot
Essentially the problem is that I cannot receieve e-mails from people on other domains (@yahoo.com, @gmail.com, @hotmail.com etc), they are telling me that they get an e-mail notice back saying the domain name could not be found. They can receieve my emails that I send out to them but again, they can't reply back to me. (It also seems that I can receieve e-mail from other e-mail accounts that are on my domain).
Anyone know why this is going on? I don't know what config files you want, reply back what you information you want and I will give you it. (CentOS 6.5 postfix/dovecot and roundcubemail for web frontend) |
Hello Altiris,
Just a couple of quick questions: 1. Has this ever worked or has this just recently been setup? 2. Can you ping your domain internally / externally? i.e. ping www.YourDomainName? 3. I use sendmail rather than postfix so the log files may differ somewhat thus you may have to find your own equivalents. Check the log contents i.e. /var/log/maillog 4. Do you by chance use a spam filter embedded in your postfix file? I use a SpamHaus filter that performs an external spam lookup on all mail entering my domain - at one point there was an issue with the SpamHaus lookup service which resulted in all mail received by my domain mail server being marked as spam and thus rejected. Again, if you do then check the contents of /var/log/maillog 5. Can you receive external mail at all excluding gmail, Hotmail, yahoo...? Post the results of the above. Adios, Rawcous!! |
Quote:
1. This has never worked, I set it up back in September, ran into a problem with sending e-mail to people out of the domainname and I found that I needed to enable SASL which I did, it works and I know this because I can send emails out (but not receieve). 2. I can ping internally but I can not ping externally because I have a router (Sonicwall router from Dell) configured to block ping. I did an internal and external nslookup instead and here is what I got Internal Code:
054/0.061/0.076/0.011 ms Code:
nslookup mydomainhere.com 3. I tried sending a message to my email server by my gmail account and waited a bit for something to show in the log file viewer but nothing. I do have a log file of what happens when I send out emails (although that works fine however if you want the log I will post). 4. I do have some spam protection,I have the conjunection of the three programs ClamAV, SpamAssassin, and Amavisd. However before I installed and configured these I still was unable to receieve email from other people on different domains. 5. I can only receieve mail from within the same domain, I can not receive mail AT ALL from other domains. So essentially, could be Postfix/dovecot not configured correctly (although I can actually receieve things from the same domain so i dont think so), something wrong with DNS config (as that website for my ISP gave me an error), or SELinux or something. EDIT (READ FIRST): Its something with my DNS server, when I put in the IP address for my server that runs the dns server/postfix/dovecot on preferred DNS option (when configuring the network on linux) I do not get internet. If I go and put in the IP address of the DNS server that I talked about earlier (the one that is running windows) I get internet. So its something with my DNS. |
Quote:
Quote:
So if you set you the DNS to that of the Windows Server - internet connection works - does this then also allow your mail server to receive and process external mail? Also you mentioned you can perform both internal & external nslookups on your doman - thus your DNS A records have been setup, but perhaps your MX records have not been set up correctly with your DNS hoster - i.e. mail.YourDomainName - Can you perform an nslookup on your MX record i.e. nslookup mail.YourDomainName ? Regards, Rawcous! |
Quote:
Whenever I input the fully qualified domain name of the centos box in there, I get an error saying it could not be resolved, however if I enter the fully qualified domain name of the windows server computer then it seems to go fine and I do not get an error. This would mean something is wrong with the dns on the centos box. I will perform an nslookup once I can be near my computer (internal and external) Thank you for all of your help. |
Hi,
Quote:
Am in my assumptions that because you mention you have 2 different WAN addresses for your two different servers , thus 2 separate broadband connections / routers etc, if not then surely all that is required is that all of your records simply point towards the same WAN address with port forwarding set via the router.... Regards, Rawcous! |
Quote:
I did an external nslookup of mail.mydomainhere.com and I got Code:
Server cdns10.comcast.net An interal nslookup of mail.mydomainhere.com shows Code:
Server: 127.0.0.1 Code:
$ORIGIN mydomainhere.com. Code:
$ORIGIN 12.168.192.in-addr.arpa. |
I have to admit i'm stumped at the moment - I will re-read through the postings so far and have another think about this - the chances are it's something so obvious....
Rawcous... |
Quote:
|
Has anyone found anything yet?
|
Hi Altiris,
Been away for a few days - taking another look. Regards, Rawcous! |
Hello again,
Quote:
As a Sendmail user rather than Postfix i'm guessing here, Sendmail makes use of an \etc\mail\access file that can be used for determining rules such as hosts that can relay mail through the server, external domains that can send you mail, etc. I believe the Postfix equivalent is /etc/postfix/access see this sendmail link: http://www.sendmail.co.uk/sm/open_so...anti_spam.html (see the entry at the bottom of this link concerning building the db file if you make any amendments to it). A quick Google of "postfix /etc/mail/access" yields: https://www.google.co.uk/#q=postfix+...Fmail%2Faccess Also out of interest, in your /etc/postfix/main.cf file what do you have "mydestination set to....? (Again i'm stabbing in the dark here..) I'm still not convinced about the contents of the /var/log/maillog file - this file should contain all messages indicating successful /failed mail delivery attempts for both postfix and dovecot - try sending mail an external domain, make a note of the time and post on here the contents of the log file corresponding to around that time - bear in mind it may be a few minutes before the mail is rejected. Regards, Rawcous! |
For your first question, that is how I set it up since I first registered the domain. I can not add my dns server on that list (I get the weird error) so I just left it with the MX record pointing to my mail server in the rules it has.
There is indeed a /etc/postfix/access file but I believe it is documentation (everything is uncommented). On Postfix/dovecot in order to send mail to other domains you need to enable SASL which I have, which is why I can send out mails, remember that the problem is with people sending email to me/I can't receieve email from people on other domains. In /etc/postfix/main.cf mydestion is set to this below: mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain Here is the logfile when I sent an email to another domain, but remember that sending out emails isnt the issue, receiving them is the issue. PROCEDURE: I am doing this on the server/same computer and via roundcube page, I logged in ONCE (the log says I disconnect multiple times but I didnt hit any logout button) and composed a message to one of my other emails and then I just left it like that, I have not hit the logout button yet) Code:
Mar 11 20:48:45 n-data dovecot: imap(tom): Disconnected: Logged out bytes=196/736 |
Hello Altiris,
Have you made any progress with this at all...? You may have mentioned / tried this already but what happens if you disable / remove your DNS server entries via the Comcast site so that it only contains your Mail Server settings (i.e. A and MX records), and simultaneously temporarily disable the DNS service on your Centos server...? This definitely needs a fresh pair of eyes - surprised no networking Gurus did not latch onto this one when you originally posted this..... Regards, Rawcous... |
All times are GMT -5. The time now is 07:21 PM. |