No, this is not a re-hash of the old debate.  I've seen the archives.
:)

But, according to DJB's (and others') suggestions I'm trying to hook awk
up to the recordio + qmail-smtpd output and log it to syslog (via
splogger).

This seems to me like it should be easy.  However, as soon as I add the
additional pipe to awk, I no longer get _anything_ logged to syslog.


Before:

/usr/local/bin/softlimit -m 4000000 /usr/local/bin/tcpserver -x
/usr/local/etc/tcp.smtp.cdb -t 15 -u 71 -g 1013 0 25
/var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger smtpd 3 &


After:

/usr/local/bin/softlimit -m 4000000 /usr/local/bin/tcpserver -x
/usr/local/etc/tcp.smtp.cdb -t 15 -u 71 -g 1013 127.0.0.1 25 recordio
/var/qmail/bin/qmail-smtpd 2>&1 | /usr/bin/gawk '{if ($2 != "<") print}'
| /var/qmail/bin/splogger smtpd 3 &


Is there something wrong with the pipes I've set up?  If I take out the
"awk..." part and replace it with "cat" then everything works as
expected (iow, I get _all_ the smtp output).

What is the problem with swapping in awk like this?

Please copy me on any responses (I'm not subscribed currently).  Thanks.

Reply via email to