Sendmail deferred email?

2004-03-23 Thread JJB
I see in mail log some deferred email being held.
Is there a way to clear this email from sendmail?

Maybe so sendmail sub command?

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sendmail deferred email?

2004-03-23 Thread Danny Howard
JJB wrote:

I see in mail log some deferred email being held.
Is there a way to clear this email from sendmail?
Maybe so sendmail sub command?
 

sendmail -q

--
Danny Howard[EMAIL PROTECTED]
Technical Support Manager  (312)829- x235
Server Central Network   http://www.servercentral.net
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sendmail deferred email?

2004-03-23 Thread Dan Nelson
In the last episode (Mar 23), JJB said:
 I see in mail log some deferred email being held.
 Is there a way to clear this email from sendmail?

Sendmail will by default process the mail queue every 30 minutes, I
think, but you can also do it manually with sendmail -v -q.  queued
mail will expire and be bounced back to the sender after 5 days of
delivery attempts.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sendmail deferred email?

2004-03-23 Thread Matthew Seaman
On Tue, Mar 23, 2004 at 12:46:32PM -0500, JJB wrote:
 I see in mail log some deferred email being held.
 Is there a way to clear this email from sendmail?

You can process the mail queue manually by:

# /usr/sbin/sendmail -q -v

or

# /usr/sbin/sendmail -Ac -q -v 

for the clientmqueue stuff.

(-v means verbose -- you can omit that, but it's kind of amusing to
watch)
 
 Maybe so sendmail sub command?

If your mail system is set up correctly, there should be a process
that runs regularly (every 30min is usual) to flush the queue.  If you:

# cat /var/run/sendmail.pid

or

# cat /var/spool/clientmqueue/sm-client.pid

the second line shows the arguments used to startup sendmail.  There
should be something like '-q30m' in there.

Messages can get stuck in the mail queue for valid reasons --
destination site is down, DNS fubarred, loss of network connectivity
etc.  Use:

# mailq -v

or

# mailq -Ac -v

to see the status of all messages in the mail queue or the client mail
queue.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


RE: Sendmail deferred email?

2004-03-23 Thread JJB
Did sendmail -q -v  and mailq
The 15 deferred emails are still there deferred.

So let me change my question from
Is there a way to clear this email from sendmail?
To
Is there a way to FORCE  DELETE this deferred email from sendmail?

-Original Message-
From: Matthew Seaman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 12:58 PM
To: JJB
Cc: [EMAIL PROTECTED] ORG
Subject: Re: Sendmail deferred email?

On Tue, Mar 23, 2004 at 12:46:32PM -0500, JJB wrote:
 I see in mail log some deferred email being held.
 Is there a way to clear this email from sendmail?

You can process the mail queue manually by:

# /usr/sbin/sendmail -q -v

or

# /usr/sbin/sendmail -Ac -q -v

for the clientmqueue stuff.

(-v means verbose -- you can omit that, but it's kind of amusing to
watch)

 Maybe so sendmail sub command?

If your mail system is set up correctly, there should be a process
that runs regularly (every 30min is usual) to flush the queue.  If
you:

# cat /var/run/sendmail.pid

or

# cat /var/spool/clientmqueue/sm-client.pid

the second line shows the arguments used to startup sendmail.  There
should be something like '-q30m' in there.

Messages can get stuck in the mail queue for valid reasons --
destination site is down, DNS fubarred, loss of network connectivity
etc.  Use:

# mailq -v

or

# mailq -Ac -v

to see the status of all messages in the mail queue or the client
mail
queue.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   26 The
Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7
1TH UK

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Sendmail deferred email?

2004-03-23 Thread Jamie


  You're top posting. I'll follow suit on your answer, but some people
find it really confusing.

  Check the man page on sendmail. There are a lot of options you can use
to process files in the queue. If you have some specific jobs you'd like
to process in the queue, you can skip the rest of the queue processing and
handle just those.

   sendmail -v -qI {queue id substring}

   or

   sendmail -v -qS {sender address substring}

   or

   sendmail -v -qR {recipient address substring}

   These variations will limit the processing to a sender address,
recipient, etc, in the queue.


   If you want to simply delete those emails from sendmail, all you have
to do is find the numeric part of the queue id, and then remove all files
in the queue directory with that ID number. Running mailq will give you a
list of the queue id's in the first column:

-Q-ID- --Size-- -Q-Time- Sender/Recipient---

i2NIVTJl002193  412 Tue Mar 23 12:31 [EMAIL PROTECTED]
^^


--Grab the numeric part of the ID (002193 in this case). Then,

cd /var/spool/mqueue

rm *002193

This will remove your qf and df files, along with any tf files that you'd
like to delete. I've never had a problem doing this. BUT, to be on the
safe side, you might want to do a:

more *002193

first, just to make sure you're not deleting any really old queued files
which might happen to have the same numeric id in the filename.


  Suggested reading:


  The Sendmail docs are kept in sendmail/doc. Look for a file called op.ps
or op.txt. These docs go over a lot of good info. Also check the man
pages. man sendmail
  Sendmail by Brian Costales with Eric Allman. ISBN 1565928393


   HTH,

  - Jamie


On Tue, 23 Mar 2004, JJB wrote:

 Did sendmail -q -v  and mailq
 The 15 deferred emails are still there deferred.

 So let me change my question from
 Is there a way to clear this email from sendmail?
 To
 Is there a way to FORCE  DELETE this deferred email from sendmail?

 -Original Message-
 From: Matthew Seaman [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 23, 2004 12:58 PM
 To: JJB
 Cc: [EMAIL PROTECTED] ORG
 Subject: Re: Sendmail deferred email?

 On Tue, Mar 23, 2004 at 12:46:32PM -0500, JJB wrote:
  I see in mail log some deferred email being held.
  Is there a way to clear this email from sendmail?

 You can process the mail queue manually by:

 # /usr/sbin/sendmail -q -v

 or

 # /usr/sbin/sendmail -Ac -q -v

 for the clientmqueue stuff.

 (-v means verbose -- you can omit that, but it's kind of amusing to
 watch)

  Maybe so sendmail sub command?

 If your mail system is set up correctly, there should be a process
 that runs regularly (every 30min is usual) to flush the queue.  If
 you:

 # cat /var/run/sendmail.pid

 or

 # cat /var/spool/clientmqueue/sm-client.pid

 the second line shows the arguments used to startup sendmail.  There
 should be something like '-q30m' in there.

 Messages can get stuck in the mail queue for valid reasons --
 destination site is down, DNS fubarred, loss of network connectivity
 etc.  Use:

 # mailq -v

 or

 # mailq -Ac -v

 to see the status of all messages in the mail queue or the client
 mail
 queue.

 Cheers,

 Matthew

 --
 Dr Matthew J Seaman MA, D.Phil.   26 The
 Paddocks
   Savill Way
 PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
 Tel: +44 1628 476614  Bucks., SL7
 1TH UK

 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]



Greetings from Minneapolis, MN, United States

A friend is someone who lets you have total freedom to be yourself.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sendmail deferred email?

2004-03-23 Thread Mark Frank
* On Tue, Mar 23, 2004 at 01:27:54PM -0500 JJB wrote:
 Did sendmail -q -v  and mailq
 The 15 deferred emails are still there deferred.
 
 So let me change my question from
 Is there a way to clear this email from sendmail?
 To
 Is there a way to FORCE  DELETE this deferred email from sendmail?
 
If you REALLY don't care about those emails try:

/usr/sbin/sendmail -v -q -OTimeout.queuereturn=now \
-OTimeout.connect=1s -OTimeout.mail=1s -OTimeout.misc=1s \
-OTimeout.rcpt=1s

-- 
Mark Frank
The fix is only temporary...unless it works. - Red Green
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Sendmail deferred email?

2004-03-23 Thread JJB
Jamie
Thanks for the info

cd /var/spool/mqueue

That is what I was looking for
Deleted all the 15 entries and mailq returns nothing meaning there
all gone.


-Original Message-
From: Jamie [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 2:44 PM
To: JJB
Cc: [EMAIL PROTECTED] ORG
Subject: RE: Sendmail deferred email?


  You're top posting. I'll follow suit on your answer, but some
people
find it really confusing.

  Check the man page on sendmail. There are a lot of options you can
use
to process files in the queue. If you have some specific jobs you'd
like
to process in the queue, you can skip the rest of the queue
processing and
handle just those.

   sendmail -v -qI {queue id substring}

   or

   sendmail -v -qS {sender address substring}

   or

   sendmail -v -qR {recipient address substring}

   These variations will limit the processing to a sender address,
recipient, etc, in the queue.


   If you want to simply delete those emails from sendmail, all you
have
to do is find the numeric part of the queue id, and then remove all
files
in the queue directory with that ID number. Running mailq will give
you a
list of the queue id's in the first column:

-Q-ID- --Size-- -Q-Time- Sender/Recipien
t---

i2NIVTJl002193  412 Tue Mar 23 12:31
[EMAIL PROTECTED]
^^


--Grab the numeric part of the ID (002193 in this case). Then,

cd /var/spool/mqueue

rm *002193

This will remove your qf and df files, along with any tf files that
you'd
like to delete. I've never had a problem doing this. BUT, to be on
the
safe side, you might want to do a:

more *002193

first, just to make sure you're not deleting any really old queued
files
which might happen to have the same numeric id in the filename.


  Suggested reading:


  The Sendmail docs are kept in sendmail/doc. Look for a file called
op.ps
or op.txt. These docs go over a lot of good info. Also check the man
pages. man sendmail
  Sendmail by Brian Costales with Eric Allman. ISBN 1565928393


   HTH,

  - Jamie


On Tue, 23 Mar 2004, JJB wrote:

 Did sendmail -q -v  and mailq
 The 15 deferred emails are still there deferred.

 So let me change my question from
 Is there a way to clear this email from sendmail?
 To
 Is there a way to FORCE  DELETE this deferred email from sendmail?

 -Original Message-
 From: Matthew Seaman [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 23, 2004 12:58 PM
 To: JJB
 Cc: [EMAIL PROTECTED] ORG
 Subject: Re: Sendmail deferred email?

 On Tue, Mar 23, 2004 at 12:46:32PM -0500, JJB wrote:
  I see in mail log some deferred email being held.
  Is there a way to clear this email from sendmail?

 You can process the mail queue manually by:

 # /usr/sbin/sendmail -q -v

 or

 # /usr/sbin/sendmail -Ac -q -v

 for the clientmqueue stuff.

 (-v means verbose -- you can omit that, but it's kind of amusing
to
 watch)

  Maybe so sendmail sub command?

 If your mail system is set up correctly, there should be a process
 that runs regularly (every 30min is usual) to flush the queue.  If
 you:

 # cat /var/run/sendmail.pid

 or

 # cat /var/spool/clientmqueue/sm-client.pid

 the second line shows the arguments used to startup sendmail.
There
 should be something like '-q30m' in there.

 Messages can get stuck in the mail queue for valid reasons --
 destination site is down, DNS fubarred, loss of network
connectivity
 etc.  Use:

 # mailq -v

 or

 # mailq -Ac -v

 to see the status of all messages in the mail queue or the client
 mail
 queue.

 Cheers,

 Matthew

 --
 Dr Matthew J Seaman MA, D.Phil.   26 The
 Paddocks
   Savill Way
 PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
 Tel: +44 1628 476614  Bucks., SL7
 1TH UK

 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
[EMAIL PROTECTED]



Greetings from Minneapolis, MN, United States

A friend is someone who lets you have total freedom to be
yourself.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sendmail deferred email?

2004-03-23 Thread Matthew Seaman
On Tue, Mar 23, 2004 at 01:27:54PM -0500, JJB wrote:
 Did sendmail -q -v  and mailq
 The 15 deferred emails are still there deferred.
 
 So let me change my question from
 Is there a way to clear this email from sendmail?
 To
 Is there a way to FORCE  DELETE this deferred email from sendmail?

Sure:

# cd /var/spool/mqueue
# rm -i *

but be careful only to delete those 15 df and qf files corresponding
to the stuck messages.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature