LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-13-2008, 03:13 PM   #1
kevinyeandel
Member
 
Registered: Jun 2008
Posts: 49

Rep: Reputation: 16
mail problems and question


Hello

I had a perfectly fine setup and I can send/receive mail if I use something like mail2web.com.

However, working bits of PHP/Perl no longer works.

Logs tell me, e.g. stat=Deferred: mx2.hotmail.com.: No route to host

Traceroute works, e.g. traceroute -p 25 googe.com
Shows me the hops

telnet myserver.com 25
Perfectly fine

I've cleared the spool/mqueue

I've checked my ip is not on a blacklist, e.g. http://www.mxtoolbox.com/blacklists.aspx

I've done
# service restart sendmail
starts ok.

Here's a snip of log.

Dec 13 21:48:41 19385_1_6666_39032 sendmail[3110]: mBE4prHs031000: to=<auseraccount@hotmail.com>, ctladdr=<root@mail.myserver.com> (0/0), delay=00:56:48, xdelay=00:01:10, mailer=esmtp, pri=211558, relay=mx2.hotmail.com. [65.54.244.168], dsn=4.0.0, stat=Deferred: mx2.hotmail.com.: No route to host


I've googled for answers but ran out of ideas. Any help will be most appreciated.
Thanks
Kevin
 
Old 12-13-2008, 05:36 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,643

Rep: Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539
No route to host means that for some reason you cannot reach destination. Maybe your ISP does not let you send emails using your mailserver.
Try using telnet from command line to see if you can send email directly to mx2.hotmail.com (i.e telnet mx2.hotmail.com 25). Use this guide to see the commands sequence to send an email.

Regards

Last edited by bathory; 12-14-2008 at 11:18 AM.
 
Old 12-13-2008, 06:06 PM   #3
kevinyeandel
Member
 
Registered: Jun 2008
Posts: 49

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by bathory View Post
No route to host means that for some reason you cannot reach destination. Maybe your ISP does not let you send emails using your mailserver.
Try from using telnet from command line to see if you can send email directly to mx2.hotmail.com (i.e telnet mx2.hotmail.com 25). Use this guide to see the commands sequence to send an email.

Regards
Thanks
I just discovered that it is acting as an open relay which is a problem.
I just made this test:

HELO example.com
MAIL From: TheBoss@example.com
RCPT To: sysadmin@example.com <-- Change this to your own email to see results.
DATA
Subject: Think we're insecure...
I have a feeling our mail server is being abused...
.
QUIT


Unfortunately I can send an email remotely from my own server and now have to find out how to lock this down - clearly its a big problem.
If I used the example above to send a mail to gmail or hotmail I get the route to host problem. If I send it to my domain I receive a mail.

Hmm..
 
Old 12-14-2008, 11:28 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,643

Rep: Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539
If you think that your mailserver acts as an open relay, you can test it here.
The fact that you can send mail to your own domain is normal. If you cannot send to others then most probably your isp has closed outgoing port 25, in order to use his mailserver. You can set the smarthost of sendmail to the mailserver of your isp and see if it works.

Regards
 
Old 12-15-2008, 12:52 AM   #5
kevinyeandel
Member
 
Registered: Jun 2008
Posts: 49

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by bathory View Post
If you think that your mailserver acts as an open relay, you can test it here.
The fact that you can send mail to your own domain is normal. If you cannot send to others then most probably your isp has closed outgoing port 25, in order to use his mailserver. You can set the smarthost of sendmail to the mailserver of your isp and see if it works.

Regards
Thanks
Thats actually very good to know. I could see from the logs that other relay attempts had failed.

But then I discovered that gogrid (the cloud co.) does indeed lock down SMTP so what you tell me ties up exactly.
They will unlock it if you fill out a form. What is strange now is 2 things.
1 Seems that it did work.
2. I can send/receive mails from the domain using a pop/web tool - this is absolutely fine but it baffles me that it is.

Its that second one which is the strangest to me.

Kevin
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail question yanik Debian 2 07-07-2006 01:55 PM
Mail Question ]SK[ Linux - Software 0 07-16-2004 08:20 AM
E-Mail Question lambmt Linux - Networking 6 11-13-2003 01:31 PM
Question re: Mail phil1076 Linux - Software 2 07-18-2003 11:22 AM
Mail question drjimstuckinwin Linux - Networking 3 06-29-2001 06:31 PM


All times are GMT -5. The time now is 07:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration