Flushing Sendmail Queue

Flushing Sendmail Queue

Post by Bruce Gre » Fri, 19 Feb 1999 04:00:00



Can anyone enlighten me on how to force sendmail to flush the mail queue
when it is already running as a deamon?

I have a script on a linux box that does the following:
1. Create a PPP connection to my ISP.
2. Do stuff on the net.
3. Mail results to a mail address (not the local linux box).
4. Shutdown the PPP connection.

Then Sendmail deamon is currently set to flush the queue every hour.
What happens in the above sequence of events is that the PPP
connection shuts down before sendmail hits its hour interval.
The above script is run once a day, so sendmail sends the message
when the PPP connection is made the following day.

What I would like to do is force sendmail to flush its queue before
I shutdown the PPP connection. I figure it must be something simple,
but can't quite figure it out.

BruceG.

 
 
 

Flushing Sendmail Queue

Post by Matt Kresse » Fri, 19 Feb 1999 04:00:00



> Can anyone enlighten me on how to force sendmail to flush the mail queue
> when it is already running as a deamon?

> I have a script on a linux box that does the following:
> 1. Create a PPP connection to my ISP.
> 2. Do stuff on the net.
> 3. Mail results to a mail address (not the local linux box).
> 4. Shutdown the PPP connection.

> Then Sendmail deamon is currently set to flush the queue every hour.
> What happens in the above sequence of events is that the PPP
> connection shuts down before sendmail hits its hour interval.
> The above script is run once a day, so sendmail sends the message
> when the PPP connection is made the following day.

> What I would like to do is force sendmail to flush its queue before
> I shutdown the PPP connection. I figure it must be something simple,
> but can't quite figure it out.

I think its "sendmail -q"

-Matt

--

+---------  Northrop Grumman Corporation, Bethpage, NY ---------+
+---------  TEL: (516) 346-9101 FAX: (516) 346-9740 ------------+

 
 
 

1. HELP : Sendmail flushing queue setup

Hi All,

I've been trying to setup a little dialup offline mail server, I'm using
fetchmail and sendmail together.

I've setup a dial up script to connect to my isp, it then runs "sendmail -q"
to flush my mail, at this point it promptly forks off into the background
and starts sending mail.  Whilst this is happening fetchmail grabs all my
mail off another server.  The script will then disconnect me from my isp.

My problem is that even if sendmail is still sending mail, once fetchmail
has finished retrieving mail, the next step in my script is to disconnect
from the ISP.  As a result I can't be guaranteed to have all my mail sent.
What can I do to ensure that I won't be disconnected from my ISP until all
my mail is sent.  Is there a way to make sendmail send mail in the
foreground, ie it won't start fetchmail until the sendmail -q has finished?

Thanks

Paul

2. HUGE wait when telnetting, ftping, etc to my linux box

3. sendmail won't flush queue

4. pppconfig

5. sendmail queue delays (Sun sendmail, Solaris2.3, SS10)

6. choosing freebsd

7. print queue directory doesn't flush

8. Xconfig/PQ-VGA4 vga card

9. Flush the UDP receive queue

10. IOCTL flushing input buffer queues

11. print queue flush

12. How do I flush the mail queue?

13. [ATM] empty tx queue in lane client when flush completes