- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: script to check 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
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
тАО04-05-2009 12:04 AM
тАО04-05-2009 12:04 AM
script to check mailq
We had a problem with the mail server some mails not send by our UNIX HP server if they were made during the downtime. Therefore we need scripts to check the mailq in UNIX HP and notify us for pending mails if any.
anyone can help please.
Ahmed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2009 03:46 AM
тАО04-05-2009 03:46 AM
Re: script to check mailq
How much detail do you want, just the count?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2009 01:29 PM
тАО04-05-2009 01:29 PM
Re: script to check mailq
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
If that doesn't clear them all then check the mail log for any undeliverable messages.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2009 08:55 PM
тАО04-05-2009 08:55 PM
Re: script to check mailq
In your rc.local add this 2 line as JS said
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
So when your machine will restart after downtime it will execute the rc.local script
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2009 09:19 PM
тАО04-05-2009 09:19 PM
Re: script to check mailq
The problem is when our mailling server is down, and our HP-UX server send email from the application it is queued and not send when the malling server become up, I need to have a way to check and send any queued messages.
from your answers I can see by stop/start will send all queued mail, is this the best approch?
Thanks,
Ahmed