- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Howto empty a mailq
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
тАО02-12-2004 08:46 PM
тАО02-12-2004 08:46 PM
Howto empty a mailq
After I have send a mail with sendmail I want empty the mailq. I now there is a command to empty the mailq but i forgot it.
I use the folowing command to create the mail:
echo "hello" |mailx -s "test" adress@domain.nl
and I use mailq to whatch in the queue.
Is there anyone how nows to empty the mailq?
Thanks.
Arjen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2004 08:59 PM
тАО02-12-2004 08:59 PM
Re: Howto empty a mailq
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2004 09:23 PM
тАО02-12-2004 09:23 PM
Re: Howto empty a mailq
But I now that it is possible to delete the files in /var/spool/mqueue to empty the queue.
So far I can remember there is a line command to delete a single message of the mailq by using the mail id from that message.
Arjen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2004 10:16 PM
тАО02-12-2004 10:16 PM
Re: Howto empty a mailq
If so, "sendmail -o" should do this, but you really should have sendmail configured to poll and action this queue automatically.
Typically, sendmail is started at boot time with "/usr/sbin/sendmail -bd -q30m"
See man sendmail
And see /var/adm/syslog/mail.log for diagnostics.
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2004 11:37 PM
тАО02-12-2004 11:37 PM
Re: Howto empty a mailq
Arjen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2004 11:44 PM
тАО02-12-2004 11:44 PM
Re: Howto empty a mailq
cd /var/spool/mqueue/
rm *
(or rm the specifi one you want)
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2004 11:52 PM
тАО02-12-2004 11:52 PM
Re: Howto empty a mailq
Arjen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2004 12:16 AM
тАО02-13-2004 12:16 AM
Re: Howto empty a mailq
sendmail -v -d8.20 -q
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2004 12:48 AM
тАО02-13-2004 12:48 AM
Re: Howto empty a mailq
Then go to /var/spool/mqueue and delete all files with the specified mail-id on the end:
rm *
(The mail-id is the first column of output from mailq.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2004 12:53 AM
тАО02-13-2004 12:53 AM
Re: Howto empty a mailq
This should clear it off if there is a connection issue.
If that does not work and it REALLY needs to be cleared rm -f /var/spool/mqueue/*
The -f supresses warning messages. Once its gone, its gone. No bringing it back to life.
Understand that sometimes inbound mail being boucned by a spam filter will create mqueue entries.
To trouble test:
sendmail -v -d8.99 -d38.99 someone@someaddress.com
Type some text
.
This might help you figure out why the mail is hanging up.
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
тАО02-13-2004 01:12 AM
тАО02-13-2004 01:12 AM
Re: Howto empty a mailq
I haven't not get the right anwser yet,but can try to make a script that empty the files with the right mail-id in /var/spool/mqueue
Arjen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2004 01:25 AM
тАО02-13-2004 01:25 AM