1838087 Members
3696 Online
110124 Solutions
New Discussion

Re: mail.log size

 
SOLVED
Go to solution
news groups
Occasional Advisor

mail.log size

Can someone tell me if this log file keeps on growing, or if it is autotrimmed by the sendmail daemon..
Or will it get reduced in size only after a reboot...
Thanks
3 REPLIES 3
Ruediger Noack
Valued Contributor

Re: mail.log size

I think default you have to do this manually,
move, trim or make a rc-script.
But there are so many hpux versions ...
Brian M. Fisher
Honored Contributor

Re: mail.log size

The mail.log will keep growing without bound even after a reboot.
An option to keep it small is to mv it to a different name on a regular basis and then issue the following:
kill -HUP `cat /var/run/syslog.pid`

This will force syslogd to re-read it's configuration file, thus creating a new mail.log file

Brian
<*(((>< er
Perception IS Reality
CHRIS_ANORUO
Honored Contributor
Solution

Re: mail.log size

Try using this command:
cat /dev/null > /var/adm/syslog/mail.log
This will reduce the log to zero and you can include this in your crontab file.

cheers!
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.