Debian – exim4 seem to stop listening

debianeximportsmtp

Hey, I have a strange problem with my exim4 configuration. I have a dedicated server running debian for quite a long time now, but I'm not really using it actively recently, so everything just worked due to lack of changes 😉

However, recently, my exim4 smtp stopped answering on port 25. It does not respond through localhost, as well – even though it's set to listen on any interface available.

Some things I've checked:

  • ks:/home/trakos/Maildir/new# netstat -ap | grep exim
    tcp 0 0 *:smtp : LISTEN 12521/exim4

  • ks:/home/trakos/Maildir/new# exiwhat

  • 12521 daemon: -q30s, listening for SMTP on port 25 (IPv4)

  • ks:/home/trakos/Maildir/new# cat /var/log/exim4/rejectlog

  • ks:/home/trakos/Maildir/new# cat /var/log/exim4/paniclog

The queue is set for 30s only because I was running it in a non-daemon mode to see any output. Strangely enough, no suspicious output is given, netstat even shows it is listening on port 25, but still trying to telnet to it times out.

The only things that may have changed recently are:

  • I've got second IP for my server

  • I remember that few days ago my spamassasin crashed, and I've started it up again

So yeah, I'm really clueless about this one now 😛 I mean, I don't even know what could be failing here. Could someone give me some ideas what should I check next?

PS: it has uptime of 442 days, so I haven't really tried rebooting it yet ^^

Best Answer

You have tried restarting exim? "sudo service exim4 restart" should do it, or "sudo invoke-rc.d exim4 restart" depending on release (not sure when "service" was added, am running unstable everywhere)

Though before that... have you tried sending mail on localhost and looked if it arrives? Have you checked /var/log/exim/mainlog? Done these two together, as in, send mail and then check mainlog if something shows up?

Oh, and you haven't told us how you tested this "stopped answering on port 25" and what the error was. What does exim say in mainlog when you try telnetting to port 25 (which I presume you've tried)?