- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /var/adm/syslog/mail.log
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
01-14-2003 01:01 AM
01-14-2003 01:01 AM
Does the above mentioned file log success and failure activities related to email.
Just recently noticed that this file in my system is growing too fast.
please advise...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 01:05 AM
01-14-2003 01:05 AM
Solutionyou are rigth .
you can delete the file with this action :
Note: You can manually run this procedure, or you can create
a cron job to perform these commands.
1. Stop the sendmail daemon:
/sbin/init.d/sendmail stop
2. Clear the log (or copy the log to another location):
cp /dev/null /var/adm/syslog/mail.log
3. Re-start the sendmail daemon:
/sbin/init.d/sendmail start
'syslogd' actually writes to the mail.log file. If the above operation
does not resolve the problem of writing to mail.log, then you should
signal syslogd to stop and re-start, forcing it to re-read its
configuration. You can do this by sending a hangup signal to the
syslogd process.
For example: kill -HUP `cat /etc/syslog.pid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 01:06 AM
01-14-2003 01:06 AM
Re: /var/adm/syslog/mail.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 01:11 AM
01-14-2003 01:11 AM
Re: /var/adm/syslog/mail.log
Does the procedure you have mentioned is the best practice to manage the file?
All,
Is there a way to filter the activities that needs to be log. For instance only activities that fails?
Thanks...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 01:11 AM
01-14-2003 01:11 AM
Re: /var/adm/syslog/mail.log
# /sbin/init.d/sendmail stop
# cp /dev/null >/var/adm/syslog/mail.log
# /sbin/init.d/sendmail start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 01:20 AM
01-14-2003 01:20 AM
Re: /var/adm/syslog/mail.log
yes , it is the best method to do it .
the issue is that you must shutdown the sendmail deamon .
if you shutdown it you can trim the file also with SAM with the option :
SAM -> routine Task -> system log files
and choose to trim .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 03:21 AM
01-14-2003 03:21 AM
Re: /var/adm/syslog/mail.log
O LogLevel=9
There's a comment header in my sendmail.cf that explains it in some detail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 03:59 PM
01-14-2003 03:59 PM
Re: /var/adm/syslog/mail.log
Have read the logging level in sendmail.cf. The configuration file does not have detailed discussion on the log level except for loglevel=9.
Just in case you have a better documention related to this let me know thru here.
Many Thanks...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 04:32 PM
01-14-2003 04:32 PM
Re: /var/adm/syslog/mail.log
Another way to manage the mail.log files (and others as well) is to use SAM as follows:
Routine Tasks -> System Log Files
There you can set a recommended size & trim to that size or a percentage of it or even a line number. Of course you can trim it to zero as well. If sendmail is running SAM will mv the current file & create a zero size new mail.log & then you can do what you will with that copy.
Rgds,
Jeff