- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sendmail - deleting queued messages
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2005 06:28 AM
тАО06-08-2005 06:28 AM
sendmail - deleting queued messages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2005 06:59 AM
тАО06-08-2005 06:59 AM
Re: sendmail - deleting queued messages
You could let them sit there until they sit longer than whatever parameters you have in sendmail.cf for attempted mail delivery.
Somewhat more graceful would be doing a find with the +mtime paramter and have a cron job delete them after they are say 2 days old.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2005 01:05 AM
тАО06-10-2005 01:05 AM
Re: sendmail - deleting queued messages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2005 01:29 AM
тАО06-10-2005 01:29 AM
Re: sendmail - deleting queued messages
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2005 02:17 AM
тАО06-10-2005 02:17 AM
Re: sendmail - deleting queued messages
Get a list of ids, either through grep'ing the patter out of mailq or running mailq or sending to a file.
for id in $(cat ${file-o-ids})
do
rm /var/spool/mqueue/[qd]${id}
done
HTH;
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2005 02:25 AM
тАО06-10-2005 02:25 AM
Re: sendmail - deleting queued messages
I leave sendmail off so the deletion can be at any time. Don't know about shutting down, deleting, and restarting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2005 08:36 PM
тАО06-10-2005 08:36 PM
Re: sendmail - deleting queued messages
NAME
qtool - manipulate sendmail queues
SYNOPSIS
qtool.pl [options] target_directory source [source ...]
qtool.pl [-Q][-d|-b] [options] source [source ...]
DESCRIPTION
Qtool moves the queue files used by sendmail between queues. It uses
the same locking mechanism as sendmail so can be safely used while
sendmail is running.
$ ./qtool.pl
The destination '' must be an existing directory.
Usage: ./qtool.pl [options] directory source ...
./qtool.pl [-Q][-d|-b] source ...
Options:
-b Bounce the messages specified by source.
-C configfile Specify sendmail config file.
-d Delete the messages specified by source.
-e [perl expression]
Move only messages for which perl expression
returns true.
-Q Operate on quarantined files.
-s [seconds] Move only messages whose queue file is older
than seconds.