Problems with Postfix accepting outside mail.
CentOS 5.6 fresh install of Virtualmin for web hosting virtual sites. You can email out just find. You can also use a pop3/IMAP client and the server can accept email. If you telnet to port 25, you can send email to. But if you just open up a new email using gmail for example and send an email to a valid receipt on the server. It never appears and so far nothing even has come back. I have made sure in postfix that it is listening on all interfaces and that $mydestination is set. Any ideas why it isn't accepting email from external sources? My ISP isn't blocking, iptables is disabled. When using pingability.com it says
Error There was a problem while talking with the mail server. Got 'ConnectException: Connection refused' You can telnet to is like I said and send email to a user on the server that way. |
I work for an ISP and we just blocked port 25 due to machines being exploited with trojans/viruses and they turn into spambots.
You may want to double check to be sure. You are running Postfix/dovecot correct? www.mxtoolbox.com has tools to check as well Do you have mx records for your domain, if not you need to setup MX records (mail exchanger) if it is your server in bind. Once set up you should be able to issue the commands like dig. dig mx yourdomain.com ;; ANSWER SECTION: youdomain.com 1800 IN MX 10 name.yourmailserver.com nslookup -q=mx yourdomain.com yourdomain mail exchanger = 10 name.yourmailserver.com 10 is the weight if you are just running your 1 server you only need one entry if you need help with a zone file I can assist with bind. do you have your dns setup? can you telnet name.yourmailserver.com 25 helo servername.com ect.. telnet name.yourmailserver.com 143 (imap) 01 login username password 02 list 03 select inbox 04 logout |
Quote:
Code:
|
what are your results from www.mxtoolbox.com ?
does it give back the correct responses? also there is a diag tab as well post the results thanks |
Quote:
OK - xxx.xxx.xxx.xxx resolves to host3.xxx.xxx.xxx.xxx.net OK - Reverse DNS matches SMTP Banner 0 seconds - Good on Connection time Not an open relay. 0.234 seconds - Good on Transaction time Session Transcript: HELO please-read-policy.mxtoolbox.com 250 host3.xxx.xxx.xxx.xx.net [16 ms] MAIL FROM: <supertool@mxtoolbox.com> 250 2.1.0 Ok [31 ms] RCPT TO: <test@example.com> 554 5.7.1 <test@example.com>: Relay access denied [16 ms] QUIT 221 2.0.0 Bye [31 ms] dns lookup ns lookup mx lookup whois lookup Reported by mxtoolbox.com on Friday, May 20, 2011 at 9:18:34 PM (GMT-5) (History) It must be somewhere else. |
That looks perfect to me, dns/rnds response time is great.
Not an open-relay all great. What do your logs say, open up a console and send some test emails to google/yahoo and other domains. I would be curious to see the transaction leaving the server. Your isp is not blocking 25, going out from your server or do you have a static ip? Do you have wireshark installed on your server, it may not be a bad idea to see the traffic. If you have X windows installed, you can install gnome-wireshark for the graphical frontend. Log in with -X @ server |
Quote:
|
I would recommend install the yum -y groupinstall "X Window System" and then running and installing wireshark & gnome-wireshark.
It will bring the tool and click on interface and it will show all of the traffic. Tons of options, but this will help shed some light I think. Wireshark has saved a lot of time at work on things that were blamed on a 'server' and it was related to a network problem. |
Quote:
|
Quote:
Code:
tail -f /var/log/maillog |
Checking the logs as ComputerErik suggests will tell you the next steps to take. If it says that your messages are getting delivered, but you are not seeing them appear you need to investigate the delivery means. Postfix has a pretty complex delivery system, governed by the daemons in master.cf. It supports both mailbox and maildir formats, along with delivery to shell account holders and virtual users. It's default behavior is to deliver to account holders in the their account mailbox, in which case mail would probably not (unless you specifically told it to look there) appear in your POP/IMAP system.
|
Quote:
|
I would be curious to know what you find, diagnosing email is complicated and with email it is always something.
|
Quote:
|
All times are GMT -5. The time now is 02:34 AM. |