sendmail mistakenly logs to daemon.log as nss_wins
Dear All,
i got sendmail(8.13.4-3sarge3) installed on Debian.
the problem is- my sendmail partly logs to daemon.log with the process
name "nss_wins"
# cat daemon.log | grep 20151
Dec 15 06:26:51 koe nss_wins[20151]: lBF3QcvU020151: from=<clientcare.refWB344139544E.ib@natwest.com>,
size=4556, class=0, nrcpts=1, sgid=<200712150326.lBF3QcvU020151@koe.mydomain.ru>, proto=SMTP,
daemon=MTA-v4, relay=136.232.203-77.rev.gaoland.net [77.203.232.136] (may be forged)
Dec 15 06:27:00 koe nss_wins[20154]: lBF3QcvU020151: to=<va@mydomain.ru>, delay=00:00:11, xdelay=00:00:09,
mailer=esmtp, pri=124556, relay=mail.nf.lan. [192.168.1.100], dsn=2.0.0, stat=Sent (lBF3Qw915449 Message accepted for delivery)
surfing the Inet i discovered mention of the sendmail dependance on
service.switch file
which is
cat /etc/mail/service.switch
# /etc/mail/nsswitch.conf
#
# This is the format that sendmail expects (no colon after the service)
#
passwd files
hosts files dns
aliases files
as you can see - no option "wins" set
part of logs goes to mail.log but not all of them
Dec 15 06:25:46 koe sendmail[20145]: lBF3PilF020145: from=root, size=515, class=0, nrcpts=1,
msgid=<200712150325.lBF3PilF020145@koe.mydomain.ru>, relay=root@localhost
Dec 15 06:25:47 koe sm-mta[20146]: lBF3PlV0020146: from=<root@koe.mydomain.ru>, size=807,
class=0, nrcpts=1, msgid=<200712150325.lBF3PilF020145@koe.mydomain.ru>,
proto=ESMTP, daemon=MSP-v4, relay=koe.mydomain.ru [127.0.0.1]
As to syslog.conf it configured as
daemon.*;mail.none -/var/log/daemon.log
mail.* -/var/log/mail.log
How can I make sendmail log all it's activities to mail.log?
with regards,
Anna
--
Anna Skorokhodova
IT Specialist
Reply to: