Mailing List Archive

Syslog & splogger Question
My SYSLOG isn't logging with "SMTP" connections. It works with the qmail
deliveries.


From my "rc.local", look at the "splogger" part

tcpserver -v -c 20 -u 51 -g 30 0 qmtp tcpcontrol /etc/tcp.sm
tp.cdb qmail-qmtpd 2>&1 | splogger qmtpd 16 &


From my /usr/include/sys/syslog.h

#define LOG_LOCAL0 (16<<3) /* reserved for local use */



From /etc/syslog.conf

mail.debug /var/log/qmail.log
local0.alert;local0.info;local0.warning /var/log/qmail-smtp.log


When I telnet to port 25 from a remote machine, this is what I get.


/usr/sbin/syslogd -d

got a message (1, 0x2)
logmsg: pri 206, flags 2, from mail2, msg Feb 10 14:37:32 smtpd:
855610652.882625 tcpserver: pid 597 num 0 from 207.0.50.10
got a message (1, 0x2)
logmsg: pri 206, flags 2, from mail2, msg Feb 10 14:37:32 smtpd:
855610652.930382 tcpcontrol: ok 597 mail2.inconnect.com:207.0.50.7:25
x86.utahdining.com:207.0.50.10::33043
got a message (1, 0x2)
logmsg: pri 206, flags 2, from mail2, msg Feb 10 14:37:35 smtpd:
855610655.633158 tcpserver: end 597 status 256


And it isn't logging to "/var/log/qmail-smtp.log"


Thanks for your help. This list is great!

Dax Kelson
Internet Connect, Inc.
Re: Syslog & splogger Question [ In reply to ]
Did you consider that syslog only logs to a file if the file is
already existent?

Regards Armin

On Mon, 10 Feb 1997, Dax Kelson wrote:

>
> My SYSLOG isn't logging with "SMTP" connections. It works with the qmail
> deliveries.
>
>
> >From my "rc.local", look at the "splogger" part
>
> tcpserver -v -c 20 -u 51 -g 30 0 qmtp tcpcontrol /etc/tcp.sm
> tp.cdb qmail-qmtpd 2>&1 | splogger qmtpd 16 &
>
>
> >From my /usr/include/sys/syslog.h
>
> #define LOG_LOCAL0 (16<<3) /* reserved for local use */
>
>
>
> >From /etc/syslog.conf
>
> mail.debug /var/log/qmail.log
> local0.alert;local0.info;local0.warning /var/log/qmail-smtp.log
>
>
> When I telnet to port 25 from a remote machine, this is what I get.
>
>
> /usr/sbin/syslogd -d
>
> got a message (1, 0x2)
> logmsg: pri 206, flags 2, from mail2, msg Feb 10 14:37:32 smtpd:
> 855610652.882625 tcpserver: pid 597 num 0 from 207.0.50.10
> got a message (1, 0x2)
> logmsg: pri 206, flags 2, from mail2, msg Feb 10 14:37:32 smtpd:
> 855610652.930382 tcpcontrol: ok 597 mail2.inconnect.com:207.0.50.7:25
> x86.utahdining.com:207.0.50.10::33043
> got a message (1, 0x2)
> logmsg: pri 206, flags 2, from mail2, msg Feb 10 14:37:35 smtpd:
> 855610655.633158 tcpserver: end 597 status 256
>
>
> And it isn't logging to "/var/log/qmail-smtp.log"
>
>
> Thanks for your help. This list is great!
>
> Dax Kelson
> Internet Connect, Inc.
>
>

--
Armin Gruner

Muc.DE e.V. Tel./Fax: 089 / 3243695
Frankfurter Ring 193a mailto:systems@muc.de
80807 Muenchen WWW: http://www.muc.de/
Re: Syslog & splogger Question [ In reply to ]
On Mon, 10 Feb 1997, Armin Gruner wrote:

>
> Did you consider that syslog only logs to a file if the file is
> already existent?
>
> Regards Armin

Yes, the file exists and has 777 permissions.

Dax Kelson
Internet Connect, Inc.
Re: Syslog & splogger Question [ In reply to ]
> On Mon, 10 Feb 1997, Armin Gruner wrote:
>
> >
> > Did you consider that syslog only logs to a file if the file is
> > already existent?
> >
> > Regards Armin
>
> Yes, the file exists and has 777 permissions.

Unlikely to be the problem, but I occassionally forget that
syslogd.conf *must* use a tab to separate the tokens. A cut-and-paste
that results in spaces silently fails.

A good trick is to run syslogd -d from another window to see what it
thinks is happening.


Regards.