Operating System - HP-UX
1833053 Members
2800 Online
110049 Solutions
New Discussion

Re: /var/adm/syslog/mail.log

 
SOLVED
Go to solution
Jose Mosquera
Honored Contributor

/var/adm/syslog/mail.log

Hi pals,

I've noticed that my HP-UX 11.0 mail.log file is not updating since long time ago. Details of log file; root:root (444)

Sendmail service:
version.c 8.9.3.1 (Berkeley) 31/8/2001 (PHNE_24419+JAGae58098)

Any hint about?

Rgds
5 REPLIES 5
Kent Ostby
Honored Contributor
Solution

Re: /var/adm/syslog/mail.log

Possible problems:

1) A different path is being used.

Check /etc/syslog.conf.

The default line is:

mail.debug /var/adm/syslog/mail.log

2) Check to see if syslog is running:

ps -ef | grep syslogd

You should see:

root 520 1 0 Nov 14 ? 0:08 /usr/sbin/syslogd -D

If not, do the following:

1. Kill syslogd

/sbin/init.d/syslogd stop

2. Re-start syslogd.

/sbin/init.d/syslogd start

3. Verify your mail.log file is being updated.
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Evert Jan van Ramselaar
Valued Contributor

Re: /var/adm/syslog/mail.log

Have you already tried to restart Sendmail?
# /sbin/init.d/sendmail restart

EJ
Contrary to popular belief, Unix is userfriendly. It just happens to be selective about who it makes friends with.
Jeff Schussele
Honored Contributor

Re: /var/adm/syslog/mail.log

Hi Jose Maria,

Is your syslog.log being updated?
If not then syslogd is hung & you need to restart it with:
kill -HUP $(cat /var/run/syslog.pid)
If so then check your /etc/sendmail.cf file & look at LogLevel the default is 9. Could be that the log level is so low that it'll only log errors & you haven't had any.
Also you may have a corrupt mail.log file, so copy it somewhere & null it out
> /var/adm/syslog/mail.log
Then restart sendmail
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Simone Benzi_1
Frequent Advisor

Re: /var/adm/syslog/mail.log

Ciao Jose,

Sendmail daemon is up? (ps -ef|grep sendmail)

Try to send an email and have a look on the mail.log file:

sendmail
Test
.

You should see something about this mail at the end of the mail.log file... shouldn't you?

If not try to "kill -HUP "

Let me know!

Simone
Jose Mosquera
Honored Contributor

Re: /var/adm/syslog/mail.log

Hi again,

I had attempted everything except restarting the syslogd, and I didn't it because the rest of the log's files are working fine. When restarting everything it returned to the normality.

Thanks to everybody! ...and points!