Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th September 2007, 12:12
Ralle Ralle is offline
Junior Member
 
Join Date: Sep 2007
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default Sendmail Trouble, Emails don't turn up in most inboxes

Hello guys!
I have been browsing this site a lot and I am very happy with it.

I have a problem with the mail server.

I installed CentOS which came with sendmail I guess.
I then compiled Lighttpd, APC and MySQL and installed it all.

Then I set some MX records for my domain (http://www.hiveworkshop.com)

But after having set up a server my own (this one), only emails to @gmail.com and some other systems are properly sent.

I tried to look at pingability.com, check it here:
http://pingability.com/zoneinfo.jsp?...veworkshop.com

And I realized that it cannot connect to my mail server.

I have tried:
Code:
$ service xinetd start
But that didn't help.

Then I searched on google and didn't find much help.

What do you suggest I try?

Ralle
Reply With Quote
Sponsored Links
  #2  
Old 5th September 2007, 13:39
chuckl chuckl is offline
Senior Member
 
Join Date: May 2007
Location: Uxbridge, Middlesex, UK
Posts: 166
Thanks: 1
Thanked 20 Times in 20 Posts
Default

A good starting point is to go to www.dnsstuff.com and do a DNS Report on your domain. Check the mail section, and fix any errors they flag.
Reply With Quote
  #3  
Old 5th September 2007, 13:59
Ralle Ralle is offline
Junior Member
 
Join Date: Sep 2007
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Code:
Mail
FAIL
Connect to mail servers
ERROR:  I could not complete a connection to any of your mailservers!

mail.hiveworkshop.com: Timed out [Last data sent: [Did not connect]]

If this is a timeout problem, note that the DNSreport only waits about 40 seconds for responses, so your mail *may* work fine in this case but you will need to use testing tools specifically designed for such situations to be certain.
OK, so this is my exact problem. But what could be wrong?
I went to the "system-config-securitylevel-tui" menu and enabled SMTP.
Sendmail is running on default config of CentOS.
I read something about sendmail normally is internal. Not connectable from outside.

What do you think?

Last edited by Ralle; 5th September 2007 at 14:10.
Reply With Quote
  #4  
Old 5th September 2007, 14:23
chuckl chuckl is offline
Senior Member
 
Join Date: May 2007
Location: Uxbridge, Middlesex, UK
Posts: 166
Thanks: 1
Thanked 20 Times in 20 Posts
Default

Sendmail is an aspect of mail, it can be a complete package - i.e. sendmail, or it can be another mail server e.g. exim, postfix, qmail etc masquerading as sendmail for backwards compatibilty. Mail servers usually use SMTP to transfer mail between domains
Did you follow one of the Perfect Setup guides? If so, you have probably Postfix installed.
Secondly, is your machine called mail.yourdomain.com? When setting up an MX record, it has to contain the true fully qualified domain name of the mailserver, or be correctly aliased.
In order for dnsstuuf or pingability or any other service to be able to check your domain, the DNS records must be correct, so thats the place for you to start.
Reply With Quote
  #5  
Old 5th September 2007, 15:21
chuckl chuckl is offline
Senior Member
 
Join Date: May 2007
Location: Uxbridge, Middlesex, UK
Posts: 166
Thanks: 1
Thanked 20 Times in 20 Posts
Default

Just to clarify that a bit, if you create a DNS entry for mail.mydomain.com, it would look like this:

mail.mydomain.com. MX 10

N.B. the final '.' on the name is important.

meaning that the mail server has a priority of 10. The server to which mail is ultimately delivered, i.e. that one, should have the lowest numbered priority.

Matching that should be a DNS entry for that machine e.g.

mail.mydomain.com A 111.111.111.111

which tells the world where to find that machine. SImilarly, at some stage you should probably add an SPF record for the domain, defining the sending mail servers, or very little will get through.

Hope that helps,
Reply With Quote
  #6  
Old 5th September 2007, 16:51
Ralle Ralle is offline
Junior Member
 
Join Date: Sep 2007
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by chuckl
Did you follow one of the Perfect Setup guides? If so, you have probably Postfix installed.
No I did not. I will look at the guides now.
Quote:
Originally Posted by chuckl
Secondly, is your machine called mail.yourdomain.com? When setting up an MX record, it has to contain the true fully qualified domain name of the mailserver, or be correctly aliased.
I have a subdomain: mail.hiveworkshop.com which is an A record linking to the same servers IP.
Quote:
Originally Posted by chuckl
In order for dnsstuuf or pingability or any other service to be able to check your domain, the DNS records must be correct, so thats the place for you to start.
They cannot check my mail server.

I might want to tell you my main problem.
My problem is that emails sent from my server are not received by hotmail and many others.
I have only succeeded to actually receive an email using gmail.
I have an SPF record and it fixed it so mails are not spam for gmail. But it's all still blocked from hotmail.

I have hosting with Layeredtech. The ReverseDNS should be set up correctly, I have SPF record, MX record. So the only thing that comes to my mind is that hotmail tries to contact my mail server to check if my server is valid.
Reply With Quote
  #7  
Old 5th September 2007, 18:00
chuckl chuckl is offline
Senior Member
 
Join Date: May 2007
Location: Uxbridge, Middlesex, UK
Posts: 166
Thanks: 1
Thanked 20 Times in 20 Posts
Default

That is almost certainly your problem. Normally in hosted environments, the hosting co mail servers do all the mail sending, and all you do is pass the mail to their servers. MX records are set up accordingly. In fact many places actively block the SMTP ports to prevent mail being sent directly.

While you may have an A record pointing at your server, does your server respond to mail connections as mail.hiveworkshop.com?

I'm sure hotmail et al are receiving the mail, but they are fairly well known for deleting any mail they feel is 'suspicious'.
Reply With Quote
  #8  
Old 5th September 2007, 18:10
Ralle Ralle is offline
Junior Member
 
Join Date: Sep 2007
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by chuckl
While you may have an A record pointing at your server, does your server respond to mail connections as mail.hiveworkshop.com?
Well I guess not. Else pingability would notice it.

Anyway, I am going to post a layeredtech support ticket about email sending.

Thanks!

EDIT:
Okay, I have had contact with LayeredTech. They say I am 100% managed. So they aren't blocking anything.

Last edited by Ralle; 5th September 2007 at 18:39.
Reply With Quote
  #9  
Old 6th September 2007, 23:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Take a look here: http://www.howtoforge.com/forums/sho...hlight=hotmail
http://www.howtoforge.com/forums/sho...hlight=hotmail
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 7th September 2007, 00:41
Ralle Ralle is offline
Junior Member
 
Join Date: Sep 2007
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

I got it working!
It was my MX record. I linked to mail.hiveworkshop.com but should link to sawyer.hiveworkshop.com

Thanks for your help all!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
emails disappear¡¡FC4 and sendmail troubles pandora Server Operation 3 20th July 2006 14:32
sendmail 8.13.6 on FC2 server with SASL/STARTTLS Anne H Server Operation 5 4th April 2006 22:19


All times are GMT +2. The time now is 06:41.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.