| Linode Forum https://forum.linode.com/ |
|
| Cannot access mail from iPhone or Mac Mail https://forum.linode.com/viewtopic.php?f=11&t=8937 |
Page 1 of 2 |
| Author: | pacothelovetaco [ Fri Jun 01, 2012 1:48 pm ] |
| Post subject: | Cannot access mail from iPhone or Mac Mail |
I just moved my site from a previous host to Linode, and while I'm not shy when it comes to Linux, I am a newbie when it comes to setting up web servers. I have my site hosted fine and running beautifully. I also wanted to host my email account for that domain. I followed these instruction for my Debian 6 setup. All the tests they suggest showed everything is working. I figured then after that, I could setup Mac Mail to check my mail at mail.website.com. but I receive an error stating mail.website.com is not responding. I know there must be more for me to do, but I don't know what. Can anyone help? Also, can someone suggest a good guide for setting up webmail on Linode with my setup? |
|
| Author: | obs [ Fri Jun 01, 2012 1:59 pm ] |
| Post subject: | |
There's so many things that can cause email servers not to work, if you provide your domain and linode ip it'll help diagnosis. What's the output of Code: netstat -lpnt |
|
| Author: | pacothelovetaco [ Fri Jun 01, 2012 2:20 pm ] |
| Post subject: | |
Yes, thank you. I sent you a PM with the domain and IP. Here are the outputs you requested. Code: Active Internet connections (only servers) Code: Chain INPUT (policy ACCEPT 0 packets, 0 bytes) |
|
| Author: | obs [ Fri Jun 01, 2012 2:39 pm ] |
| Post subject: | |
ok postfix isn't running, try running /etc/init.d/postfix start also you're firewall isn't allowing dovecot or postfix, open ports 993 and 25 with whatever firewall you use. Your dns records are fine |
|
| Author: | pacothelovetaco [ Fri Jun 01, 2012 3:25 pm ] |
| Post subject: | |
Okay, I started postfix with the script you supplied Code: Starting Postfix Mail Transport Agent: postfix. Then I opened the ports, the firewall seems to be iptables. I didn't install anything else yet. I opened them with this command: Code: iptables -A INPUT -p tcp --dport 25 -j ACCEPT Code: Chain INPUT (policy ACCEPT 0 packets, 0 bytes) And they seem to be opened but I'm still getting an error saying the IMAP server is not responding. Now what am I doing wrong |
|
| Author: | obs [ Fri Jun 01, 2012 4:30 pm ] |
| Post subject: | |
How did you set up your firewall in the first place? The rules you added are after the reject rule so will be ignored see Code: 17 1088 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable Ideally you should remove the reject rule and set the INPUT policy to REJECT or DROP. That should fix your problem. |
|
| Author: | Azathoth [ Fri Jun 01, 2012 4:47 pm ] |
| Post subject: | |
POP3 is 110 (plaintext and STARTTLS) and 995 for SSL. SMTP is 25 for inbound and should use 465 for SSL. |
|
| Author: | pacothelovetaco [ Fri Jun 01, 2012 11:52 pm ] |
| Post subject: | |
obs, The firewall configuration is the default one that's installed with the Debian image. I didn't configurate it. But with the help of this article, I think I got it working slightly. My incoming is now working. However, my outgoing isn't. Mac Mail keeps saying the SMTP server is not responding. I assume my outgoing server is mail.website.com. What should I test for next? Thanks guys for your help! Code: Chain INPUT (policy ACCEPT 0 packets, 0 bytes) |
|
| Author: | pacothelovetaco [ Sat Jun 02, 2012 12:45 am ] |
| Post subject: | |
Also, I should add that the outgoing doesn't work whether I use SSL or not. Oddly, even though port 465 is open in iptables, it doesn't show listening in netstat. Also http://www.yougetsignal.com/tools/open-ports/ says the port is closed. |
|
| Author: | obs [ Sat Jun 02, 2012 5:56 am ] |
| Post subject: | |
Use port 25 for ssl, the guides here end up with SSL running on port 25. If you still can't connect via SSL try connecting without SSL it could be your ssl config is broken. Your firewall config works now and your smpt and imap servers are running (I can connect) |
|
| Author: | Azathoth [ Sat Jun 02, 2012 8:03 am ] |
| Post subject: | |
Some ISPs are blocking any traffic to port 25, forcing clients to use their SMTP servers. In those cases I always recommend 465. Also, enable smtps in master.cf, eg: Code: smtps inet n - - - - smtpd |
|
| Author: | Dweeber [ Sat Jun 02, 2012 11:39 am ] |
| Post subject: | |
I've listened on 2025 as well as 25 for a very long time on servers that are for client access. It is easier for them to remember.. ISP blocking of port 25 is a good thing IMHO. Via mobile.. |
|
| Author: | vonskippy [ Sat Jun 02, 2012 1:56 pm ] |
| Post subject: | |
Dweeber wrote: I've listened on 2025 as well as 25 for a very long time on servers that are for client access. It is easier for them to remember.
You have very weird (and stupid) clients if that is true. Doh, I can't remember a two digit number "25", but I can remember a four digit number that ends in the same two digits that I can't remember. |
|
| Author: | pacothelovetaco [ Sat Jun 02, 2012 2:47 pm ] |
| Post subject: | |
Ugg. I know port 25 is blocked by my ISP. What I found odd was that the SMTP failed whether or not SSL was turned on. I did edit my master.cf by Azathoth's suggestion. As soon as I did, netstat shows port 465 is listening, and it was officially opened. However, Mac Mail kept saying the SMTP is not responding. Then I began to realize that it might not be the server's fault. I began testing the mail on my iPhone, both on wifi and on 3G. Emails were sending without any problems. It seems the problem is with Mac Mail or with the OS. I'll have to poke around because I have no clue what would be blocking outgoing mail traffic. I'm hoping it's just a corrupt preference file. Do you guys know of anything I should try? |
|
| Author: | pclissold [ Sat Jun 02, 2012 3:11 pm ] |
| Post subject: | |
Default SMTP setting for Mac Mail tries 25, 465, 587, in that order. Since it never receives a reply from your server saying that 25 is unavailable, it is probably timing out. Set its SMTP conf to use 465 instead of trying to figure out which port is available. |
|
| Page 1 of 2 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|