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
05-08-2003 09:13 PM
05-08-2003 09:13 PM
or remove mail.log and re-create the mail.log file. Next time, using mail to sendmail, the mail.log will not logs any message. But REBOOT the machine, the mail.log will still logs message. Does anyone know how to touch the mail.log and mail still can logs message properly?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2003 09:18 PM
05-08-2003 09:18 PM
Solution# /sbin/init.d/sendmail stop
# rm /var/adm/syslog/mail.log
or
# mv /var/adm/syslog/mail.log /var/adm/syslog/mail.log.save
# touch /var/adm/syslog/mail.log
# chown root:root /var/adm/syslog/mail.log
# chmod 444 /var/adm/syslog/mail.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2003 09:25 PM
05-08-2003 09:25 PM
Re: mail log
# /sbin/init.d/sendmail start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2003 09:35 PM
05-08-2003 09:35 PM
Re: mail log
> /var/adm/syslog/mail.log
If you need to retain a copy of the log, copy it and don't move it. after it has been copied/archived, then null it to zero bytes.
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2003 10:03 PM
05-08-2003 10:03 PM
Re: mail log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2003 11:07 PM
05-08-2003 11:07 PM
Re: mail log
SAM has a good facility for trimming logfiles the proper way:
SAM -> Routine tasks -> System Log Files ->
In the list of logfiles select /var/adm/syslog/mail.log select "Actions" -> Trim -> Trim to the recommended size,
which will:
1)trim /var/adm/syslog/mail.log to zero
2)save what corresponds to "The recommended size" of the file to the file /var/adm/syslog/mail.logSAMTRM
New mail messages will hereafter be written to /var/adm/syslog/mail.log.
regards,
John K.