- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- mailx/sendmail has stopped logging
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
09-07-2005 10:17 PM
09-07-2005 10:17 PM
I have tried a stop and a start of sendmail
Also the configuration of sendmail has not changed ( loglevel=9 )
Has anyone any ideas about what I have missed ?
Its on HPUX
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 10:58 PM
09-07-2005 10:58 PM
Re: mailx/sendmail has stopped logging
If the sendmail configuration file or frozen configuration changes, you should kill and restart the sendmail daemon so that it re-reads the configuration file.
The command
# /usr/lib/sendmail -bk
run by the superuser, kills a sendmail daemon started with -bd, whether or not it was started with the -q interval flag. It does not kill a sendmail daemon started only with -q interval. You must kill this type of daemon by finding its process ID and killing it explicitly.
NOTE: Do not kill sendmail with kill -9. This may cause sendmail to corrupt the alias database. Use kill-15 instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 11:07 PM
09-07-2005 11:07 PM
Re: mailx/sendmail has stopped logging
I stopped and started sendmail :-
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
ps -ef | grep sendmail
and it certainly has restarted : new pid and starttime.
But it is still not appearing to log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 11:38 PM
09-07-2005 11:38 PM
Solution1) /etc/syslog.conf
mail.debug /var/adm/syslog/mail.log
2) # ls -l /var/adm/syslog/mail.log
-r--r--r-- 1 root root
3) # ls -ld /var/adm/syslog
dr-xr-xr-x 2 bin bin
4) /sbin/init.d/sendmail stop
> /var/adm/syslog/mail.log
/sbin/init.d/sendmail start
5) tail -f /var/adm/syslog/mail.log
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 12:18 AM
09-08-2005 12:18 AM
Re: mailx/sendmail has stopped logging
dekerp.root > : ls -al /var/adm/syslog/mail.log
-rw-r----- 1 root sys 0 Aug 5 10:12 /var/adm/syslog/mail.log
dekerp.root > : chmod 444 /var/adm/syslog/mail.log
dekerp.root > : ls -al /var/adm/syslog/mail.log
-r--r--r-- 1 root sys 0 Aug 5 10:12 /var/adm/syslog/mail.log
dekerp.root > : ls -ld /var/adm/syslog
dr-xr-xr-x 2 bin bin 8192 Aug 5 10:13 /var/adm/syslog
dekerp.root > : /sbin/init.d/sendmail stop
Sendmail pid is 13792
Killing sendmail...
Sendmail killed.
dekerp.root > : > /var/adm/syslog/mail.log
dekerp.root > : ls -al /var/adm/syslog/mail.log
-r--r--r-- 1 root sys 0 Sep 8 13:11 /var/adm/syslog/mail.log
dekerp.root > : /sbin/init.d/sendmail start
/etc/mail/aliases: 8 aliases, longest 32 bytes, 128 bytes total
sendmail
dekerp.root > : tail -f /var/adm/syslog/mail.log
But even when I sent a mail
mailx ......
While the recipent got the mail, the log registered nothing.
But thanks for your help so far. As you can see some of the permissions were wrong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 12:43 AM
09-08-2005 12:43 AM
Re: mailx/sendmail has stopped logging
> /var/adm/syslog/mail.log
or did you delete, then touch it?
Try restarting syslogd:
kill -HUP `cat /var/run/syslog.pid`
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 12:51 AM
09-08-2005 12:51 AM
Re: mailx/sendmail has stopped logging
Hope you have not deleted the mail.log file.
Check the file and try restarting syslogd:
# ls -l /var/adm/syslog/mail.log (check the file)
# ps -ef | grep syslogd [ Note the PID]
# kill -HUP PID
Then verify the log file...
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 12:51 AM
09-08-2005 12:51 AM
Re: mailx/sendmail has stopped logging
Thanks to Geoff for the final piece, and thanks to Muthukumar for the structual bits. It is all working now - so I can put that one down to experience.
Next time I truncate the log I will do it properly ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 12:53 AM
09-08-2005 12:53 AM