1748041 Members
5160 Online
108757 Solutions
New Discussion юеВ

Re: mail.log not found

 
Vishu
Trusted Contributor

mail.log not found

Hi Guys,

i have HP-ux 11.00. and after sending one mail with the mailx command, when i try to see the logs of it in /var/adm/syslog/mail.log, it prompt an error that file not exist. and i checked there is no such file named mail.log in /var/adm/syslog. i try to search the file in my server with find command, but no such file found. so, i created one with the command :-

touch mail.log

it has the permissions as root:sys. but again, the logs are not getting created in it. plwase suggest how can i get my mail.log file back.

Thanks
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: mail.log not found

Hi:

Having created the 'mail.log' do:

# kill -HUP $(cat /var/run/syslog.pid)

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: mail.log not found

Hi (again) Vishu:

Did this solve your problem?

...JRF...
Steven E. Protter
Exalted Contributor

Re: mail.log not found

Shalom,

You would not get a mail.log file if sendmail was not running.

Check:
ps -ef | grep sendmail

netstat -an | grep ":25"

/etc/rc.config.d/mailsvrs
# To see if sendmail is enabled.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com