Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: sendmail smtp timeout
PostPosted: Thu May 20, 2004 10:39 am 
Offline
Senior Newbie

Joined: Wed Dec 03, 2003 6:51 am
Posts: 14
I'm hoping that someone can give me some advice on this. I'm using a Gentoo distro on host11 with a sendmail/qpopper/dracd setup. Recently (over the last couple of days) I've found that I cannot send mail from any host other than localhost. This doesn't seem to be an auth problem, tho.

POP3: works, no problems.
dracd auth: works (successful addition noted in the logs, sendmail -bt, /map drac xx.xx.xx.xx from a ssh session returns a successful match)
SMTP from PHP: works, no problems.

I'm not getting any errors in the logs, and I'm not getting any messages about auth errors or refused connections. The SMTP connections simply time out. All other connections work fine so I'm guessing that this isn't a network issue.

Any suggestions? Any relevant configs that I should post?

TIA.


Top
   
 Post subject:
PostPosted: Thu May 20, 2004 3:41 pm 
Offline
Junior Member

Joined: Wed Aug 20, 2003 2:13 pm
Posts: 38
Website: http://www.kotalampi.com/
AOL: r1sto
Location: Hayward, CA
Here are two things that would help us getting started on determining the problem (if I understood the problem correctly):

From remote host "telnet problemhost 25": what happens?

What's the destination address for the email? Does that address have MX record associated or how do you determine where the email should be relayed?

Risto


Top
   
 Post subject:
PostPosted: Thu May 20, 2004 6:43 pm 
Offline
Senior Newbie

Joined: Wed Dec 03, 2003 6:51 am
Posts: 14
Attempting a telnet connection to port 25 results in a timeout.

The destination e-mail addresses have MX records set up (ActivePerl discussion list, etc.) or are local.

I should add that the mail service was tested and working properly, including smtp from drac-authorized remote hosts, until the last couple of days. There have been no configuration changes to any of the scripts in /etc/init.d, /etc/conf.d or /etc/mail, and revdep-rebuild does not detect any broken packages.

Edit: To clarify one thing that I wrote initially, I have two forums running on the server, one in Perl (Ikonboard) and one in PHP (Invision). I have both of them set to use SMTP for outgoing e-mail, and I've tested them by sending PMs to my own account. Both boards are able to send the notification e-mails out properly and without any noticable delay.

I'm not an expert in any of this... is there something that I'm missing that would allow smtp connections from localhost but not from remote ones, and wouldn't give a connection refused or auth error? (When I've had config problems in the past, connection attempts have always resulted in one of those two errors.)


Top
   
 Post subject:
PostPosted: Thu May 20, 2004 8:17 pm 
Offline
Junior Member

Joined: Wed Aug 20, 2003 2:13 pm
Posts: 38
Website: http://www.kotalampi.com/
AOL: r1sto
Location: Hayward, CA
Sounds to me like a networking problem, iptables firewall or some other low level issue.

Can you ping the system?
Can you telnet to port 22?

Risto


Top
   
 Post subject:
PostPosted: Thu May 20, 2004 8:39 pm 
Offline
Senior Newbie

Joined: Wed Dec 03, 2003 6:51 am
Posts: 14
Yep. I can ping the server (avg 95ms) and connect to all of the other services I have running (ftp, pop3, http, svnserve, ssh).

I'm running the 2.4 latest kernel, if that helps. uname -a gives "Linux omni 2.4.26-linode28-1um #1 Tue May 18 16:32:46 EDT 2004 i686 UML User Mode Linux GNU/Linux".


Top
   
 Post subject:
PostPosted: Thu May 20, 2004 8:44 pm 
Offline
Junior Member

Joined: Wed Aug 20, 2003 2:13 pm
Posts: 38
Website: http://www.kotalampi.com/
AOL: r1sto
Location: Hayward, CA
You must have some sort of firewall on preventing the connections. I don't know how that works in Gentoo.


Top
   
 Post subject:
PostPosted: Thu May 20, 2004 8:58 pm 
Offline
Senior Newbie

Joined: Wed Dec 03, 2003 6:51 am
Posts: 14
Hmmm. I know that I haven't installed anything like that manually, and I went through the full list of net-firewall portage packages. None of them are emerged. I did notice that there are some references to an ip_filter kernel module being loaded, tho (/var/log/messages).

Could this be a UML kernel issue? I'm not sure exactly when it started, but the timing of when I first noticed it would place it around the time of the host11 powercycle that caker mentioned in the announcements forum.

IIRC, that thread suggested a possible problem with ebtables....


Top
   
 Post subject:
PostPosted: Thu May 20, 2004 9:05 pm 
Offline
Junior Member

Joined: Wed Aug 20, 2003 2:13 pm
Posts: 38
Website: http://www.kotalampi.com/
AOL: r1sto
Location: Hayward, CA
What's your IP?


Top
   
 Post subject:
PostPosted: Thu May 20, 2004 9:20 pm 
Offline
Senior Newbie

Joined: Wed Dec 03, 2003 6:51 am
Posts: 14
My Linode's IP is 64.62.190.186.


Top
   
 Post subject:
PostPosted: Thu May 20, 2004 9:23 pm 
Offline
Junior Member

Joined: Wed Aug 20, 2003 2:13 pm
Posts: 38
Website: http://www.kotalampi.com/
AOL: r1sto
Location: Hayward, CA
Looks good to me... doesn't time out:

# telnet 64.62.190.186 25
Trying 64.62.190.186...
Connected to 64.62.190.186.
Escape character is '^]'.
220 mail.terica.net ESMTP Sendmail 8.12.10/8.12.10; Thu, 20 May 2004 21:19:08 -0400


Top
   
 Post subject:
PostPosted: Thu May 20, 2004 9:26 pm 
Offline
Senior Newbie

Joined: Wed Dec 03, 2003 6:51 am
Posts: 14
Thanks. I'll check with my ISP and see if they have any idea what could be causing the problem.


Top
   
 Post subject:
PostPosted: Thu May 20, 2004 9:28 pm 
Offline
Junior Member

Joined: Wed Aug 20, 2003 2:13 pm
Posts: 38
Website: http://www.kotalampi.com/
AOL: r1sto
Location: Hayward, CA
Ooooh.... some ISPs blocks outbound 25 to prevent spamming from their customers. You might be able to use their own mailrelays to send emails out instead of directly to your linode. The other choice is tunnel it through ssh:

ssh -L25:localhost:25 user@remotehost

Risto


Top
   
 Post subject:
PostPosted: Thu May 20, 2004 10:08 pm 
Offline
Senior Newbie

Joined: Wed Dec 03, 2003 6:51 am
Posts: 14
Aargh. Looks like that's what happened. My ISP decided to block port 25 across the board due to virus/spam problems and didn't bother to post a notice.

Looks like I'll be making my first foray into port forwarding. :wink:

Thanks again for the help and advice.


Top
   
 Post subject:
PostPosted: Fri May 21, 2004 7:15 pm 
Offline
Senior Member
User avatar

Joined: Fri Aug 15, 2003 2:15 pm
Posts: 111
Website: http://fubegra.net/
sbstudios wrote:
Aargh. Looks like that's what happened. My ISP decided to block port 25 across the board due to virus/spam problems and didn't bother to post a notice.


The best way around that is to enable the use of SSL/TLS and SMTP AUTH for your SMTP connection. This eliminates the port 25 blockage issue, and also eliminates the need for ugly hacks like POP-before-SMTP.

I'm using Fedora Core 1 on a Linode that I'm running for my employer, and on an FC1 system there is a makefile that can easily generate a key pair in /usr/share/ssl (or you could use a certificate from a CA such as Verisign, Thawte, etc.).

_________________
Bus error (passengers dumped)


Top
   
 Post subject:
PostPosted: Fri May 21, 2004 8:35 pm 
Offline
Junior Member

Joined: Tue Nov 18, 2003 2:02 am
Posts: 30
Quote:
The best way around that is to enable the use of SSL/TLS and SMTP AUTH for your SMTP connection. This eliminates the port 25 blockage issue [...]


TLS and authentication all take place after making the initial connection. If TCP to port 25 is blocked by the ISP, there's nothing any server configuration change can do about it.


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


Who is online

Users browsing this forum: No registered users and 3 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