- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to flush contents of /var/spool/mqueue
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
тАО06-04-2003 07:21 AM
тАО06-04-2003 07:21 AM
How to flush contents of /var/spool/mqueue
I have 2 servers - servera and serverb which are secured by bastille and run "sendmail -q" on periodic basis. In other words, sendmail daemon is not always running.
Serverb has stopped sending mail because of some problem in firewall rules. While it is being looked into, I see the contents of /var/spool/mqueue directory is growing.
Can I move the contents of serverb:/var/spool/mqueue to servera:/var/spool/mqueue and expect all these mails to be delivered successfully? What steps I need to follow after moving the contents to another server? And, what will happen to "From:" field for these messages?
Thanks
...Manjeet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2003 07:26 AM
тАО06-04-2003 07:26 AM
Re: How to flush contents of /var/spool/mqueue
If you set the DS line in sendmail.cf on serverb to be servera, then it should send everything to servera, assuming there's no firewall issue between the two. servera should then relay the messages on to the next hop.
The From: field should not change, only the route the message is taking.
rgds, Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2003 07:57 AM
тАО06-04-2003 07:57 AM
Re: How to flush contents of /var/spool/mqueue
Do I need to run sendmail in daemon mode on serverA to accomplish this?
And how do I trigger this? Just by changing DS macro on serverB and when cron runs 'sendmail -q' ? Or can I force it to run immediately?
Other thing that I am not sure is if sendmail traffic is allowed between these servers. I tried "telnet serverA 25" from serverB and it failed with msg - Connection refused.
...Manjeet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2003 08:21 AM
тАО06-04-2003 08:21 AM
Re: How to flush contents of /var/spool/mqueue
DSserverb.domain
save and quit sendmail.cf file
restart the sendmail by
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
all the queued mails should now move to serverb
look for /var/adm/syslog/mail.log for any errors.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2003 08:33 AM
тАО06-04-2003 08:33 AM
Re: How to flush contents of /var/spool/mqueue
In the /etc/rc.config.d/mailservs
export SENDMAIL_SERVER=1
Then /sbin/init.d/sendmail start
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2003 09:30 AM
тАО06-04-2003 09:30 AM
Re: How to flush contents of /var/spool/mqueue
I ended up tar-ing contents of mqueue directory of serverB and sftp-ing to serverA. I am running the sendmail queue and see that emails are now being sent out.
Thanks for your help.
...Manjeet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2003 05:45 AM
тАО06-05-2003 05:45 AM