LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 11-10-2007, 02:20 AM   #1
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 362

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 02:23 AM.
 
Old 11-10-2007, 09:14 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

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

Original Poster
Rep: Reputation: 38
Thanks Berhanie.

I think it would be better to stop listening for incoming connections on port 25 in the sendmail.mc file before doing a
Code:
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 12:42 PM.
 
  


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
Make sendmail queue emails to a domain timyaukey Linux - Software 0 09-24-2007 03:25 PM
mail queue filling up with mailma-bounces@mailman emails rustyz82 Linux - General 0 06-02-2006 10:28 PM
Ide Flushing Colinux_Tlinux_noob Linux - Newbie 2 10-14-2005 01:25 AM
convert html emails to plain text emails andredude Linux - General 6 03-20-2005 01:33 PM
Flushing the Sendmail queue DarkSTech Linux - Networking 1 02-19-2003 08:34 AM


All times are GMT -5. The time now is 07:19 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration