vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I am pulling my hair out with this one. I am trying to stop mail logging to my /etc/syslog file in Sco Openserver 6. Everything I read tells me to change the syslog.conf file to read "mail.none" but this does not stop it. After some experementation I have worked out that mail is being logged using the kern facility. eg. below line DOES NOT stop mail logging *.info;mail.none /var/adm/syslog below line DOES stop mail logging *.info;kern.none /var/adm/syslog Unfortunately by blocking the kernel messages I also stop all of the console messages being logged in syslog (which is not prefered). I have also tried changing the log level to 0 in the sendmail.cf file with no success. Can anybody help me with this? Thanks Oz |
| ||||
| ozburger wrote: > I am pulling my hair out with this one. I am trying to stop mail > logging to my /etc/syslog file in Sco Openserver 6. Everything I read > tells me to change the syslog.conf file to read "mail.none" but this > does not stop it. After some experementation I have worked out that > mail is being logged using the kern facility. > > eg. > below line DOES NOT stop mail logging > *.info;mail.none /var/adm/syslog > > below line DOES stop mail logging > *.info;kern.none /var/adm/syslog > > Unfortunately by blocking the kernel messages I also stop all of the > console messages being logged in syslog (which is not prefered). > > I have also tried changing the log level to 0 in the sendmail.cf file > with no success. Can anybody help me with this? I also find it annoying that you can't direct sendmail log messages (on OSR6) where you want them. When I looked at this a couple of months ago, it looked to me like sendmail was not using the syslog facility at all, but instead writing directly to /dev/conslog. And it appeared anything written to /dev/conslog got logged as if syslog() had been called with a facility of LOG_KERN. Try: echo some junk > /dev/conslog then check /usr/adm/messages and whatever file you have syslog.conf configured to log kern messages to. /dev/conslog is mentioned in the log(HW) man page, but it still isn't clear to me what the relationship is, if any, between syslog() and /dev/conslog. A google groups seach for "/dev/conslog" in comp.* turns up some stuff, mostly in discussions about Solaris. One interesting item is that the description of LOG_KERN in the syslog(S) manual page states: "Messages generated by the kernel. These cannot be generated by any user processes." |