LinuxQuestions.org
Visit Jeremy's Blog.
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-31-2009, 08:16 AM   #1
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 690

Rep: Reputation: 34
Exim mailserver is stopped but keeps on sending


Code:
bash-3.2# tail -f /var/log/exim/main.log
2009-12-31 14:24:38 End queue run: pid=19996
2009-12-31 14:52:21 1NQLRM-0005HA-3p Frozen (delivery error message)
2009-12-31 14:55:31 1NQLUx-0005IT-Ft <= root@vps.hosting.net U=root P=local S=299855 id=Asterisk-4-1630712155-908001-1436@vps.hosting.net
2009-12-31 14:56:01 1NQLUx-0005IT-Ft => info@tld.be R=dnslookup T=remote_smtp H=mail.tld.be [XX.XX.XX.XX] X=TLSv1:DHE-RSA-AES256-SHA:256
2009-12-31 14:56:01 1NQLUx-0005IT-Ft Completed

bash-3.2# /sbin/service exim status
exim is stopped

bash-3.2# tail -f /var/log/exim/main.log
2009-12-31 15:02:14 1NQLbS-0005Ju-RI <= root@vps.hosting.net U=root P=local S=1203
2009-12-31 15:02:14 1NQLbS-0005Jx-SE <= root@vps.hosting.net U=root P=local S=667
2009-12-31 15:02:14 1NQLbS-0005K0-Tn <= root@vps.hosting.net U=root P=local S=772
2009-12-31 15:02:14 1NQLbS-0005K3-Ue <= root@vps.hosting.net U=root P=local S=699
2009-12-31 15:02:15 1NQLbT-0005K6-0p <= root@vps.hosting.net U=root P=local S=699
2009-12-31 15:02:15 1NQLbT-0005K9-2K <= root@vps.hosting.net U=root P=local S=829
2009-12-31 15:02:44 1NQLbS-0005Jm-Mm => vcserver@tld.be <root@vps.hosting.net> R=dnslookup T=remote_smtp H=mail.tld.be [XX.XX.XX.XX] X=TLSv1:DHE-RSA-AES256-SHA:256
2009-12-31 15:02:44 1NQLbS-0005Jm-Mm Completed
2009-12-31 15:02:44 1NQLbS-0005Jo-Og => vcserver@tld.be <root@vps.hosting.net> R=dnslookup T=remote_smtp H=mail.tld.be [XX.XX.XX.XX] X=TLSv1:DHE-RSA-AES256-SHA:256
2009-12-31 15:02:44 1NQLbS-0005Jo-Og Completed
The above log shows that the mailserver exim is still sending out mail through a relay server, while the mailserver is stopped.
Code:
bash-3.2# ls /var/run/ | grep exim
bash-3.2#
Also I have not defined this relay server in /etc/exim/exim.conf.
Code:
bash-3.2# grep -R "mail.tld.be" /etc/exim/exim.conf 
bash-3.2#
The only thing I did was add an entry for root in /etc/aliases "root: vcserver@tld.be".

With the command "system-switch-mail" I only see 'exim' mentioned. So this is my main mailserver. Sendmail has been removed.

Don't know what I did in the past but the Asterisk-server that is running on this server is also able to send out mail somehow, without me explicitly defining the "mailcmd".
So also Asterisk takes by default the mailserver that is running on the system.

I would like to document what I have done, only I can't find any traces of my mail-configuration.

Last edited by jonaskellens; 12-31-2009 at 09:14 AM.
 
Old 12-31-2009, 09:42 AM   #2
briealeida
Member
 
Registered: Jun 2007
Location: PA
Distribution: FreeBSD, Ubuntu, Knoppix,
Posts: 41

Rep: Reputation: 16
I'm not exim expert but is it possible that it's just finishing up the sending of mail that is already in the queue?

This should flush the queue (assuming the above is the case):

exim -qff
 
Old 01-01-2010, 05:24 AM   #3
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 690

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by briealeida View Post
I'm not exim expert but is it possible that it's just finishing up the sending of mail that is already in the queue?
With the above example I want to show that even when exim is shut down, a new mail is generated and sent.

I generate a new voicemail-message that is to be sent to a customer's mailaddress. I do this after exim has been shut down...

Also, this morning I wake up with +100 mails in my mailbox sent from my lfd firewall, which is active on this server.

I look at the server and :
Code:
bash-3.2# /sbin/service exim status
exim (pid 30771 30770 30766 30765) is running...
Who put exim back on ????

Code:
[snip]
2010-01-01 12:02:47 1NQfGO-0007xi-Nx => vcserver@domain.be <root@vps.hosting.net> R=dnslookup T=remote_smtp H=mail.domain.be [XX.XX.XX.XX] X=TLSv1:DHE-RSA-AES256-SHA:256
2010-01-01 12:02:47 1NQfGO-0007xi-Nx Completed
2010-01-01 12:21:11 1NQfYj-00080H-Vu => vcserver@domain.be <root@vps.hosting.net> R=dnslookup T=remote_smtp H=mail.domain.be [XX.XX.Xx.XX] X=TLSv1:DHE-RSA-AES256-SHA:256
2010-01-01 12:21:11 1NQfYj-00080H-Vu Completed
2010-01-01 12:21:11 1NQfYe-00080C-UK => vcserver@domain.be <root@vps.hosting.net> R=dnslookup T=remote_smtp H=mail.domain.be [XX.XX.XX.XX] X=TLSv1:DHE-RSA-AES256-SHA:256
2010-01-01 12:21:11 1NQfYe-00080C-UK Completed
[snip]
The above shows the mails sent...
 
  


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
exim not sending anymore alsharifhoussam Linux - Server 4 06-06-2009 04:45 AM
Mailserver sending but not sending mail from outside. simango Linux - Newbie 1 10-28-2008 08:51 AM
exim Sending not arriving xeross Linux - Server 1 09-15-2008 03:51 PM
Sending mail through exim snipersock Linux - Networking 4 08-27-2008 02:08 AM
Recovering Mails after OS Crash - Exim Mailserver wambugu Linux - Server 0 08-21-2008 07:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:00 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
Open Source Consulting | Domain Registration