1824218 Members
3878 Online
109669 Solutions
New Discussion юеВ

mail.log in HP-UX

 
Amit Manna_6
Regular Advisor

mail.log in HP-UX

Hi,

If we zip the mail.log file do we need to restart anything so that new mails come in??

2 REPLIES 2
Michael Tully
Honored Contributor

Re: mail.log in HP-UX

If you do anything to the mail.log file, no more logging will take place. You have to remember that the sendmail daemon has this file in memory.

If you want to zip a mail file, shutdown the sendmail daemon first.

# /sbin/init.d/sendmail stop
# gzip /var/adm/syslog/mail.log
# touch /var/adm/syslog/mail.log
# /sbin/init.d/sendmail start
Anyone for a Mutiny ?
Bharat Katkar
Honored Contributor

Re: mail.log in HP-UX

No. No need to do anything, everything will work fine. Confirm mail.log seperatley exists. I would suggest after after zipping file you may even trim the original mail log file to get extra space.

# > mail.log

Regards,
You need to know a lot to actually know how little you know