Mail application timing out

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Mail application timing out

Post by RobertGonzalez »

Ok, I thought I could handle my way around a Linux system somewhat well enough, but I am beginning to think otherwise at the moment.

I have a client on a dedicated server (yes, my infamous Fedora Core 2 dedicated server) and recently he told me that he is not getting any web mails in his mailbox. I did some testing, and sure enough, mail is not sending from the server. So I did a little searching around and found my mail log and reviewed them. Apparently on every attempt to send, the connection to the SMTP server is timing out. What does that mean and how do I begin to look for fixes? I am not mail wizard whatsoever so this is all new to me. All help as always is much appreciated.

Here is the last few lines of my mail log:

Code: Select all

Dec 18 06:29:57 everah-linux-ds master[20210]: about to exec /usr/lib/cyrus-imapd/ctl_cyrusdb
Dec 18 06:29:57 everah-linux-ds ctl_cyrusdb[20210]: checkpointing cyrus databases
Dec 18 06:29:57 everah-linux-ds ctl_cyrusdb[20210]: archiving database file: /var/lib/imap/annotations.db
Dec 18 06:29:57 everah-linux-ds ctl_cyrusdb[20210]: archiving log file: /var/lib/imap/db/log.0000000001
Dec 18 06:29:57 everah-linux-ds ctl_cyrusdb[20210]: archiving database file: /var/lib/imap/mailboxes.db
Dec 18 06:29:57 everah-linux-ds ctl_cyrusdb[20210]: archiving log file: /var/lib/imap/db/log.0000000001
Dec 18 06:29:57 everah-linux-ds ctl_cyrusdb[20210]: done checkpointing cyrus databases
Dec 18 06:29:57 everah-linux-ds master[11098]: process 20210 exited, status 0
Dec 18 06:38:42 everah-linux-ds postfix/nqmgr[9688]: 130FA658AC0: from=<root@everah-linux-ds.secureserver.net>, size=972, nrcpt=1 (queue active)
Dec 18 06:38:42 everah-linux-ds postfix/nqmgr[9688]: 01FB4658940: from=<>, size=4346, nrcpt=1 (queue active)
Dec 18 06:38:42 everah-linux-ds postfix/nqmgr[9688]: BACC6658A5F: from=<>, size=4229, nrcpt=1 (queue active)
Dec 18 06:38:42 everah-linux-ds postfix/nqmgr[9688]: 41212658A63: from=<>, size=4683, nrcpt=1 (queue active)
Dec 18 06:39:12 everah-linux-ds postfix/smtp[20221]: connect to smtp.secureserver.net[64.202.166.12]: Connection timed out (port 25)
Dec 18 06:39:12 everah-linux-ds postfix/smtp[20221]: 130FA658AC0: to=<tomd@secureserver.net>, relay=none, delay=41324, status=deferred (connect to smtp.secureserver.net[64.202.166.12]: Connection timed out)
Dec 18 06:39:12 everah-linux-ds postfix/smtp[20222]: connect to smtp.secureserver.net[64.202.166.12]: Connection timed out (port 25)
Dec 18 06:39:12 everah-linux-ds postfix/smtp[20224]: connect to smtp.secureserver.net[64.202.166.12]: Connection timed out (port 25)
Dec 18 06:39:12 everah-linux-ds postfix/smtp[20223]: connect to smtp.secureserver.net[64.202.166.12]: Connection timed out (port 25)
Dec 18 06:39:33 everah-linux-ds postfix/smtp[20222]: connect to mailstore1.secureserver.net[64.202.166.11]: No route to host (port 25)
Dec 18 06:39:33 everah-linux-ds postfix/smtp[20222]: 01FB4658940: to=<admin@everah.com>, orig_to=<sales@everahhosting.com>, relay=none, delay=334990, status=deferred (connect to mailstore1.secureserver.net[64.202.166.11]: No route to host)
Dec 18 06:39:42 everah-linux-ds postfix/smtp[20224]: connect to mailstore1.secureserver.net[64.202.166.11]: Connection timed out (port 25)
Dec 18 06:39:42 everah-linux-ds postfix/smtp[20223]: connect to mailstore1.secureserver.net[64.202.166.11]: Connection timed out (port 25)
Dec 18 06:39:42 everah-linux-ds postfix/smtp[20224]: 41212658A63: to=<admin@everah.com>, orig_to=<sales@everahhosting.com>, relay=none, delay=55000, status=deferred (connect to mailstore1.secureserver.net[64.202.166.11]: Connection timed out)
Dec 18 06:39:42 everah-linux-ds postfix/smtp[20223]: BACC6658A5F: to=<admin@everah.com>, orig_to=<info@everahhosting.com>, relay=none, delay=298005, status=deferred (connect to mailstore1.secureserver.net[64.202.166.11]: Connection timed out)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Can you SSH to your server and try:

telnet 64.202.166.12 25

Does it connect (if it does, type "quit") and say?

Code: Select all

d11wtq@w3style:~$ telnet 64.202.166.12 25
Trying 64.202.166.12...
Connected to 64.202.166.12.
Escape character is '^]'.
220 pre-smtp17-01.prod.mesa1.secureserver.net ESMTP 
quit
221 pre-smtp17-01.prod.mesa1.secureserver.net Goodbye.
Connection closed by foreign host.
d11wtq@w3style:~$
EDIT | That's where it's timing out and I'm just wondering if you have a routing issue (locally). Do "ifconfig" and "route -n"

Code: Select all

w3style:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 02:16:3E:A4:5E:75  
          inet addr:217.147.94.117  Bcast:217.147.94.255  Mask:255.255.255.0
          inet6 addr: fe80::16:3eff:fea4:5e75/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:635051 errors:0 dropped:0 overruns:0 frame:0
          TX packets:346502 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:66204937 (63.1 MiB)  TX bytes:189489359 (180.7 MiB)

eth0:0    Link encap:Ethernet  HWaddr 02:16:3E:A4:5E:75  
          inet addr:217.147.94.71  Bcast:217.147.94.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0:1    Link encap:Ethernet  HWaddr 02:16:3E:A4:5E:75  
          inet addr:217.147.94.70  Bcast:217.147.94.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0:2    Link encap:Ethernet  HWaddr 02:16:3E:A4:5E:75  
          inet addr:217.147.94.69  Bcast:217.147.94.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:10415 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10415 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:532676 (520.1 KiB)  TX bytes:532676 (520.1 KiB)

w3style:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
217.147.94.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         217.147.94.1    0.0.0.0         UG    0      0        0 eth0
0.0.0.0         217.147.94.1    0.0.0.0         UG    0      0        0 eth0
0.0.0.0         217.147.94.1    0.0.0.0         UG    0      0        0 eth0
0.0.0.0         217.147.94.1    0.0.0.0         UG    0      0        0 eth0
w3style:~#
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

d11wtq wrote:Can you SSH to your server and try:

telnet 64.202.166.12 25
This is what I got back from that:

Code: Select all

$ telnet 64.202.166.12 25
Trying 64.202.166.12...
telnet: connect to address 64.202.166.12: No route to host
$
d11wtq wrote:Do "ifconfig" and "route -n"

Code: Select all

[root@everah-linux-ds]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:30:1B:B9:C5:8D
          inet addr:68.178.207.138  Bcast:68.255.255.255  Mask:255.0.0.0
          inet6 addr: fe80::230:1bff:feb9:c58d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:70982393 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6713368 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2021888640 (1928.2 Mb)  TX bytes:1734777734 (1654.4 Mb)
          Interrupt:169 Base address:0xd000

eth0:0    Link encap:Ethernet  HWaddr 00:30:1B:B9:C5:8D
          inet addr:68.178.207.200  Bcast:68.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:169 Base address:0xd000

eth0:1    Link encap:Ethernet  HWaddr 00:30:1B:B9:C5:8D
          inet addr:68.178.207.209  Bcast:68.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:169 Base address:0xd000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:676509 errors:0 dropped:0 overruns:0 frame:0
          TX packets:676509 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:123236677 (117.5 Mb)  TX bytes:123236677 (117.5 Mb)

[root@everah-linux-ds]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
68.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 eth0
0.0.0.0         68.178.207.254  0.0.0.0         UG    0      0        0 eth0
EDIT | Forgot to do this as root. When trying to connect as root, it times out after hanging.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Can you ping 68.178.207.254 ?

Now I'm no expert but I would have thought your routing table should look like:

Code: Select all

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
68.178.207.0     0.0.0.0         255.255.255.0     U     0      0        0 eth0
0.0.0.0         68.178.207.254  0.0.0.0         UG    0      0        0 eth0 
0.0.0.0         68.178.207.254  0.0.0.0         UG    0      0        0 eth0 
0.0.0.0         68.178.207.254  0.0.0.0         UG    0      0        0 eth0
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Yes, I can ping that IP.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

That IP is supposed to be routing outgoing traffic for you since it's your default gateway address (apart from on 68.x.x.x addresses). Something's wrong there.

Has anybody tweaked any network settings lately?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Not that I am aware of. Hell, I don't even know how to change network settings yet.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Any luck?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I realized that a lot of my clients business operates during the daytime. I figured that if something went haywire on reboot, it would be best to happen at a time when it wouldn't impact their businesses too much, so I am going to wait until later tonight, my time.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Good luck :) I'm off to bed. It's 1am here ;)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

By the time I get around to screwing with this it will be 7 to 8 AM over there. So it's all good.
Post Reply