HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Sendmail
Operating System - Linux
1829556
Members
1861
Online
109992
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
09-15-2004 08:34 AM
09-15-2004 08:34 AM
Sendmail
can some help me how to generate a script file to move the mails from queue to specified path automatically .
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2004 04:06 PM
09-15-2004 04:06 PM
Re: Sendmail
Hello Choppa Kumar,
Use the following commands
#mkdir /tmp/mymailqueue
#mv /var/spool/mqueue/* /tmp/mymailqueue
This will move all your mail queue to the /tmp/mymailqueue Directory. You can also specify your own directory
Put it in the crontab.
#crontab -e
There you specify
30 10 * * * mv /var/spool/mqueue/* /tmp/mymailqueue
This will move the mail queue every day at 10:30 AM
Regards,
Senthil Murugan
Use the following commands
#mkdir /tmp/mymailqueue
#mv /var/spool/mqueue/* /tmp/mymailqueue
This will move all your mail queue to the /tmp/mymailqueue Directory. You can also specify your own directory
Put it in the crontab.
#crontab -e
There you specify
30 10 * * * mv /var/spool/mqueue/* /tmp/mymailqueue
This will move the mail queue every day at 10:30 AM
Regards,
Senthil Murugan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2004 06:50 PM
09-15-2004 06:50 PM
Re: Sendmail
Mail queues are stored on /var/spool/mqueue/* directory there. You can view the queued mail's as,
mailq
Try to move the content's /var/spool/mqueue directory to your path with script as,
mkdir 700 /tmp/mailqueue
while true;
do
mv /var/spool/mqueue/* /tmp/mailqueue/.
# sleep time for 10 hours
sleep 36000
done
or as simple use cronjob for this.
mailq
Try to move the content's /var/spool/mqueue directory to your path with script as,
mkdir 700 /tmp/mailqueue
while true;
do
mv /var/spool/mqueue/* /tmp/mailqueue/.
# sleep time for 10 hours
sleep 36000
done
or as simple use cronjob for this.
Easy to suggest when don't know about the problem!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2004 07:05 AM
09-16-2004 07:05 AM
Re: Sendmail
Thanks ton
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP