Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qmail and recordio
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
principito
n00b
n00b


Joined: 26 May 2002
Posts: 19
Location: Providence, RI

PostPosted: Thu Jun 13, 2002 8:15 pm    Post subject: qmail and recordio Reply with quote

Ok sorry if I'm a bit ignorant, but I'm having problems getting full SMTP logs w/ qmail and recordio. there is some documentation on Qmails webpage but it says:
Quote:

Simply insert recordio before qmail-smtpd. SMTP traffic will be sent to syslog.


Thats not very good explanation for someone who has never used qmail before.

I have a file:
/service/qmail-smtpd/run

which contains the following:
Code:


#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec /usr/bin/softlimit -m 2000000 \
        /usr/bin/tcpserver -H -R -v -p -x /etc/tcp.smtp.cdb \
        -u $QMAILDUID -g $NOFILESGID 0 smtp rblsmtpd \
        /var/qmail/bin/qmail-smtpd 2>&1



I assume I put recordio in there somewhere. But where? Am I on the totally wrong track? And once I find out where to put recordio where does it log too? I have /var/log/all setup w/ msyslog that should catch it I hope.

Any help is appreciated.
Thanks in advance.

-Mike
Back to top
View user's profile Send private message
ves
n00b
n00b


Joined: 17 Apr 2002
Posts: 30

PostPosted: Thu Jun 13, 2002 8:49 pm    Post subject: Reply with quote

try this...

#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec /usr/bin/softlimit -m 2000000 \
/usr/bin/tcpserver -H -R -v -p -x /etc/tcp.smtp.cdb \
-u $QMAILDUID -g $NOFILESGID 0 smtp rblsmtpd \
/var/qmail/bin/qmail-smtpd | /var/qmail/bin/splogger smtpd 3 &


that'll send it to syslog...
Back to top
View user's profile Send private message
principito
n00b
n00b


Joined: 26 May 2002
Posts: 19
Location: Providence, RI

PostPosted: Thu Jun 13, 2002 9:38 pm    Post subject: Reply with quote

that doesn't seem to catch everything.... just a few things


I want to get the actuall message (I'm testing something from a program)
Back to top
View user's profile Send private message
ves
n00b
n00b


Joined: 17 Apr 2002
Posts: 30

PostPosted: Thu Jun 13, 2002 9:59 pm    Post subject: Reply with quote

what are you trying to log then? That will just log smtp connections...if you want to log mail deliveries or pop3 connections, you need to setup logging for that too...
Back to top
View user's profile Send private message
principito
n00b
n00b


Joined: 26 May 2002
Posts: 19
Location: Providence, RI

PostPosted: Thu Jun 13, 2002 10:52 pm    Post subject: Reply with quote

I heard that w/ the daemontools program recordio you can get the whole SMTP connection to the machine from the
EHLO blah.com
MAIL FROM: <look@me.com>

all the way to the
.


I guess I could TCP dump or packetsniff... just figured if it was built in it would be easier.

thanks
Back to top
View user's profile Send private message
ves
n00b
n00b


Joined: 17 Apr 2002
Posts: 30

PostPosted: Thu Jun 13, 2002 11:06 pm    Post subject: Reply with quote

ahh i see...nevermind.

erm, well i've never used recordio, but try putting that after the pipe.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum