- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- clearing out 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
Forums
Discussions
Discussions
Discussions
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
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
10-12-2001 12:57 PM
10-12-2001 12:57 PM
I know there is a way to force the mail in the mailq to go out in sendmail. And to clean out the mailq.The seach on the forum is not up and I know there was a post about this but I cant find it. Can someone please give me the commands on how to do that.
Richard
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2001 01:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2001 01:26 PM
10-12-2001 01:26 PM
Re: clearing out mailq
You're slipping. You asked additional questions in an earlier post, but have neglected to look at and score the detailed responses:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x01fbc6af36b7d5118ff10090279cd0f9,00.html
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2001 01:34 PM
10-12-2001 01:34 PM
Re: clearing out mailq
Run it in foreground with q 0
sendmail -bD -q 0
It should clear the queue.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2001 01:40 PM
10-12-2001 01:40 PM
Re: clearing out mailq
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2001 01:50 PM
10-12-2001 01:50 PM
Re: clearing out mailq
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2001 02:11 PM
10-12-2001 02:11 PM
Re: clearing out mailq
Ooops.. your nfile limit is reached. This could be because of your sendmail queue. See why you have got such a queue?.Is there is anything wrong that the mail is queued up?.
Stop sendmail through /sbin/init.d and kill all the sendmail processes.They will release enough files. Move /var/spool/mqueue to /var/spool/mqueue.old and create another fresh directory /var/spool/mqueue with the same permissions. Start sendmail and let it go.
ONce you are stabilized, check up the mails in mqueue.old and see why there were being queued up. Schedule sometime to send these messages by copying them back to mqueue directory.
It's not a bad idea to increase your nfile value if this often a case with your system.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2001 02:14 PM
10-12-2001 02:14 PM
Re: clearing out mailq
try it with -D option this will run sendmail in foreground and will attempt to deliver the messages sequentially without causing nfile problem.
running sendmail in background (-d) will spawn multiple sendmail processes and will subsequently open a number of files depending on the messages in /var/spoool/mqueue.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2001 02:44 PM
10-12-2001 02:44 PM
Re: clearing out mailq
Now skindar what would remaking a mqueue dir do for me? I do see I have allot of 0 files in there and that would be why I have (no control files). But I am going to delete them.
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2001 03:00 PM
10-12-2001 03:00 PM
Re: clearing out mailq
Also, if it is a very common problem, try to increase nfile parameter to a better value.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2001 03:08 PM
10-12-2001 03:08 PM
Re: clearing out mailq
and the mqueue is lookin good
mailq is looking .. its friday 6pm and im fixxing to look at some Crown and coke .. =)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2001 09:27 PM
10-12-2001 09:27 PM
Re: clearing out mailq
to clean it immediately:
sendmail -q
to have sendmail continuously running(in 15 minute intervals):
sendmail -bd -q15m