Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-19-2003, 05:01 AM   #1
LQ Newbie
Registered: Jan 2003
Distribution: RedHat 8.0, Mandrake 9.0
Posts: 16

Rep: Reputation: 0
Flushing the Sendmail queue

Hi guys,

Ive got sendmail handling my mail fine on a dialup but i want to use it on my broadband connection and can't work out how to get the queue to flush. Cos on my dialup i just put an entry into the ip-up script.

Ive heard that sendmail automatically flushes the queue every hour is this true? if so ho can i make it do it say every 5 minutes?

Any help would be appreciated.
Old 02-19-2003, 07:34 AM   #2
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 457

Rep: Reputation: 41
The flag for flushing the queue is -q (issue sendmail -q). However, I presume you are having sendmail run as a daemon, therefore, you would want to start it as sendmail -bd -q5m. If RH8.0 is configured as RH7.3, the startup flags are in /etc/sysconfig/sendmail and should look as follows:


The script in /etc/init.d (sendmail) will read this file for the options.

-db starts sendmail as a daemon, -q5m says flush every five minutes. Note that most mail is sent and forwarded immediately, flushing is needed only if for some reason the route to intended recipient (and intended mail exchangers) is down (most usually for me, my own internet connection), or if you are acting as a MX for another mail server. In those cases, mailed is spooled in /var/spool/mqueue until it either timesout (usually about 5 days, depending on setup) or can be sent on.

Last edited by fsbooks; 02-19-2003 at 07:38 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail, command to flush queue? glock19 Linux - Software 10 11-18-2010 11:23 PM
sendmail: what does it mean if there is no queue file? Thinking Programming 2 11-04-2005 03:10 AM
SendMail Queue Problem dunmarie Linux - Software 0 06-28-2005 07:34 AM
sendmail - mail stays in queue... E-Rick Linux - Networking 1 10-21-2004 11:51 PM
sendmail queue visuelz Linux - Software 0 07-17-2003 11:39 AM > Forums > Linux Forums > Linux - Networking

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