Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


LinkBack Search this Thread
Old 11-10-2007, 01:20 AM   #1
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 353

Rep: Reputation: 38
Question Flushing emails in queue

I am going to trash my old SMTP server. But before I stop the SMTP service and disconnect it from the network, I want to make sure all incoming and outgoing emails in queue are flushed (sent to their destinations). What is the recommended way to accomplish this?

I am using Sendmail 8.13

Thanks in advance.

Last edited by the_gripmaster; 11-10-2007 at 01:23 AM.
Old 11-10-2007, 08:14 AM   #2
Senior Member
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,614

Rep: Reputation: 164Reputation: 164
There should be a queue runner that flushes the queue periodically, but if you want to do it now:
sendmail -qf
Old 11-10-2007, 09:48 AM   #3
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 353

Original Poster
Rep: Reputation: 38
Thanks Berhanie.

I think it would be better to stop listening for incoming connections on port 25 in the file before doing a
sendmail -qf
so that no new further incoming or outgoing email arrives while the emails in queue are being flushed.

Last edited by the_gripmaster; 11-10-2007 at 11:42 AM.


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Make sendmail queue emails to a domain timyaukey Linux - Software 0 09-24-2007 02:25 PM
mail queue filling up with mailma-bounces@mailman emails rustyz82 Linux - General 0 06-02-2006 09:28 PM
Ide Flushing Colinux_Tlinux_noob Linux - Newbie 2 10-14-2005 12:25 AM
convert html emails to plain text emails andredude Linux - General 6 03-20-2005 12:33 PM
Flushing the Sendmail queue DarkSTech Linux - Networking 1 02-19-2003 07:34 AM

All times are GMT -5. The time now is 10:56 PM.

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