Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Sep 09, 2009 10:17 pm 
Offline
Newbie

Joined: Wed Sep 09, 2009 10:09 pm
Posts: 3
Location: Montreal, Canada
Hey guys,

I'm new here on Linode but so far I really like it.

I'm having a problem with my server though regarding receiving emails.

I have DirectAdmin installed along with exim and dovecot and I can send emails to external and internal addresses successfully but I cannot seem to receive emails from external addresses. I can send emails internally to another internal email address. That works fine but if I send an email from say a hotmail account to my server I get a message a few hours later saying delivery failed because it could not connect to the mail server.

I'm not sure what I'm doing wrong. I am running CentOS 5.3.

From what I understand, exim is my MTA, I'm not sure if I need to install an MDA as well? I'm kinda confused on the subject because I can still send internal mail.

If anyone can help I would really appreciate it. If more details are necessary, please ask.

Thanks.


Top
   
PostPosted: Wed Sep 09, 2009 10:34 pm 
Offline
Senior Member

Joined: Mon Jun 16, 2008 6:33 pm
Posts: 151
Lightning_Rider wrote:
I can send emails to external and internal addresses successfully but I cannot seem to receive emails from external addresses.

1) Do you have MX records set up correctly (and propogated) for your domain ?

2) What do your exim and syslog logs say when you try and send an email to yourself from outside ?

3) Can you initiate a manual smtp session to your server (e.g. telnet mx.example.com 25) ?


Top
   
 Post subject:
PostPosted: Wed Sep 09, 2009 11:15 pm 
Offline
Newbie

Joined: Wed Sep 09, 2009 10:09 pm
Posts: 3
Location: Montreal, Canada
Thanks for your reply. I really appreciate the help with this...

I believe the MX records are okay and propagated. I used the Linode DNS manager to set it up. In the DNS Manager under MX I have:

mail.mydomain.com 10 Default

I can connect to my server through telnet and I get a confirmation message from exim after I connect. However, I changed the port to connect on port 26 instead of 25, could this be affecting anything? Would I have to specify to use port 26 instead of 25 somewhere in the MX to let the world know that you must connect on 26 instead of 25?

I'm not an expert at reading logs but I didn't see anything unusual in them that would point to a problem. At least from what I could tell.


Top
   
 Post subject:
PostPosted: Wed Sep 09, 2009 11:30 pm 
Offline
Newbie

Joined: Wed Sep 09, 2009 10:09 pm
Posts: 3
Location: Montreal, Canada
Hmm...

I changed the port back to 25 and it seems to work no problem!

I'm still curious though, if I wanted to use a different port, would I have to specify something in the MX record?

Thanks for your help, the telnet idea gave me the clue to try looking at the ports.


Top
   
 Post subject:
PostPosted: Wed Sep 09, 2009 11:31 pm 
Offline
Senior Member

Joined: Mon Jun 16, 2008 6:33 pm
Posts: 151
Lightning_Rider wrote:
However, I changed the port to connect on port 26 instead of 25, could this be affecting anything?

Yes. Most other mail servers will still want to send mail to you via port 25.

You can give your users another port or two, either via setting Exim to also listen on a few other ports, or redirecting from 26 -> 25 via Iptables (or some frontend), but this is normally for sending from behind dastardly network firewalls, where someone has brightly decided that if anyone is attempting to send mail via a different mail server, they must either be out of their mind and stopped at once, or have clicked on the latest piece of rubbish in their Outlook Express 97(tm) inbox, etc.


Last edited by mjrich on Wed Sep 09, 2009 11:37 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Wed Sep 09, 2009 11:36 pm 
Offline
Senior Member

Joined: Mon Jun 16, 2008 6:33 pm
Posts: 151
Lightning_Rider wrote:
I'm still curious though, if I wanted to use a different port, would I have to specify something in the MX record.

DNS doesn't normally handle ports.

If you want mail to also be accepted via another port, these can be set via iptables and/or at the application level (exim).


Top
   
 Post subject:
PostPosted: Thu Sep 10, 2009 9:20 am 
Offline
Senior Member
User avatar

Joined: Mon Dec 10, 2007 4:30 pm
Posts: 341
Website: http://markwalling.org
mjrich wrote:
DNS doesn't normally handle ports.


SRV records handle ports. MX records do not.


Top
   
 Post subject:
PostPosted: Thu Sep 10, 2009 6:08 pm 
Offline
Senior Member

Joined: Mon Jun 16, 2008 6:33 pm
Posts: 151
Exim by default doesn't check srv records (though they can be enabled via the check_srv option for the dnslookup router), so there are probably a fair few mail servers out there that would have to rely on a failover.

No idea about Postfix et al. though...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group