recordio
hi list I want to setup qmail to log all incoming SMTP traffic. I am using redhat 7.0 qmail 1.03 which was setup with LWQ. my startup script is: #!/bin/sh QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` exec /usr/local/bin/softlimit -m 1100 \ /usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \ -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd 2>&1 I have looked at: http://cr.yp.to/qmail/faq/servers.html#recordio and I guess the answer is: QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` exec /usr/local/bin/softlimit -m 1100 \ /usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \ -u "$QMAILDUID" -g "$NOFILESGID" 0 recordio smtp /var/qmail/bin/qmail-smtpd 2>&1 but I am not sure. any hints would be gratefully accepted. Ross
recordio
Can anybody tell me where I need to call recordio from in order to get details on local to remote messages? I put it in qmail-smtpd.init but only got incoming mail. I'm guessing now that it has to be called with qmail-rspawm or qmail-remote but I can't figure out how to do it. * Bill Luckett Director of Information Systems Phi Theta Kappa International Honor Society Center for Excellence Mississippi Education and Research Center 1625 Eastover Drive Jackson, MS 39211 [EMAIL PROTECTED] 601.957.2241 ext 559 *
Re: recordio
On Thu, Aug 09, 2001 at 09:36:46AM -0600, Charles Cazabon wrote: > Ross Cooney <[EMAIL PROTECTED]> wrote: > > > > and I guess the answer is: > > QMAILDUID=`id -u qmaild` > > NOFILESGID=`id -g qmaild` > > MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` > > exec /usr/local/bin/softlimit -m 1100 \ > >/usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \ > > -u "$QMAILDUID" -g "$NOFILESGID" 0 recordio smtp >/var/qmail/bin/qmail-smtpd 2>&1 > > You guess wrong -- that puts "recordio" as the port number for tcpserver > to listen on. recordio should go immediately before qmail-smtpd. QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` exec /usr/local/bin/softlimit -m 1100 \ /usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \ -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp recordio /var/qmail/bin/qmail-smtpd 2>&1 This it? Thanks, Ross > > Charles > -- > --- > Charles Cazabon<[EMAIL PROTECTED]> > GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ > --- -- _ Ross Cooney Virus Scanner: http://www.antivirus.ie/index.mv?free_scan=1 Perl Tutorial: http://www.cyber-sentry.com/perl/tut.mv?art=1
Re: recordio
Ross Cooney <[EMAIL PROTECTED]> wrote: > > You guess wrong -- that puts "recordio" as the port number for tcpserver > > to listen on. recordio should go immediately before qmail-smtpd. [...] > This it? Why don't you try it and see? Wouldn't that have been easier than mailing back to the list and asking if it will work? Charles -- --- Charles Cazabon<[EMAIL PROTECTED]> GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ ---
Re: recordio
On Thu, Aug 09, 2001 at 11:17:14AM -0600, Charles Cazabon wrote: > Ross Cooney <[EMAIL PROTECTED]> wrote: > > > > You guess wrong -- that puts "recordio" as the port number for tcpserver > > > to listen on. recordio should go immediately before qmail-smtpd. > [...] > > This it? > > Why don't you try it and see? Wouldn't that have been easier than > mailing back to the list and asking if it will work? Why dont you stop being such an asshole and either help or shutup. Ross > > Charles > -- > --- > Charles Cazabon<[EMAIL PROTECTED]> > GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ > --- -- _ Ross Cooney Virus Scanner: http://www.antivirus.ie/index.mv?free_scan=1 Perl Tutorial: http://www.cyber-sentry.com/perl/tut.mv?art=1
Re: recordio
On Fri, Aug 10, 2001 at 06:49:02AM +0100, Ross Cooney wrote: > On Thu, Aug 09, 2001 at 11:17:14AM -0600, Charles Cazabon wrote: > > Ross Cooney <[EMAIL PROTECTED]> wrote: > > > > > > You guess wrong -- that puts "recordio" as the port number for tcpserver > > > > to listen on. recordio should go immediately before qmail-smtpd. > > [...] > > > This it? > > > > Why don't you try it and see? Wouldn't that have been easier than > > mailing back to the list and asking if it will work? > > Why dont you stop being such an asshole and either help or shutup. You've got a lot of nerve there, dipwit, to call Charles an asshole. He is probably the #1 contributor to this list these days, and calling him names isn't going to make you any friends here. --Adam -- Adam McKenna <[EMAIL PROTECTED]> | Help stop animal abuse at Petco! http://flounder.net/publickey.html | http://www.mickaboofriends.org GPG: 17A4 11F7 5E7E C2E7 08AA | 38B0 05D0 8BF7 2C6D 110A |
Re: recordio
> > > > > You guess wrong -- that puts "recordio" as the port number for tcpserver > > > > > to listen on. recordio should go immediately before qmail-smtpd. > > > [...] > > > > This it? > > > > > > Why don't you try it and see? Wouldn't that have been easier than > > > mailing back to the list and asking if it will work? > > > > Why dont you stop being such an asshole and either help or shutup. > > You've got a lot of nerve there, dipwit, to call Charles an asshole. He is > probably the #1 contributor to this list these days, and calling him names > isn't going to make you any friends here. adam, I take your point. My email was badly targeted. I have a member of this list for over a year, and I have not contribited to it much, but when I have contribited I have tried to help people...and not pour scorn on them. Regardless what anybody says, this list is full of people who are more interested in showing off and not helping. With this said, I get a lot of good advice and help from this list and I took a decision this week to try to be more active on this list to help others.and hopefully people will help me with my issues. I do not suppose to be a qmail guru, but I have some skills that I can pass on. I agree that Charles has helped a large number of people over the year here...some would say that he is a profilic poster. Butwhy is he so short when people ask real questions?? If you have nothing constructive to say then dont say anything. Ross _ Ross Cooney Virus Scanner: http://www.antivirus.ie/index.mv?free_scan=1 Perl Tutorial: http://www.cyber-sentry.com/perl/tut.mv?art=1
Re: recordio
On Fri, Aug 10, 2001 at 06:49:02AM +0100, Ross Cooney wrote: > On Thu, Aug 09, 2001 at 11:17:14AM -0600, Charles Cazabon wrote: > > Why don't you try it and see? Wouldn't that have been easier than > > mailing back to the list and asking if it will work? > Why dont you stop being such an asshole and either help or shutup. Charles, the "asshole", is a really nice guy and one of the most helpfull people here. And he is absolutely right. We are not on this list for handholding. Stop your stupid OT posts flaming valuable long-term contributors on this list. If you don't like this lists attitude go away. And don't start a discussion about it, if you are interested in one read one of the 100s in the archives. -- * Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de * * Roedingsmarkt 14, 20459 Hamburg, Germany * Unix is very simple, but it takes a genius to understand the simplicity. (Dennis Ritchie)
Re: recordio
On Fri, Aug 10, 2001 at 08:52:25AM +0100, Ross Cooney wrote: > I agree that Charles has helped a large number of people > over the year here...some would say that he is a profilic poster. > Butwhy is he so short when people ask real questions?? You didn't ask a real question, you asked a FAQ, one that is answered right in Dan's FAQ at http://cr.yp.to/qmail/faq/servers.html#recordio. --Adam -- Adam McKenna <[EMAIL PROTECTED]> | Help stop animal abuse at Petco! http://flounder.net/publickey.html | http://www.mickaboofriends.org GPG: 17A4 11F7 5E7E C2E7 08AA | 38B0 05D0 8BF7 2C6D 110A |
recordio + awk
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 400 /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 400 /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.
recordio example
Hi there, Would anyone give me some example to use recordio to record qmail SMTP server log? When I put the recordio before calling qmail-smtpd, qmail-smtpd did not work. Regards, Edward.
recordio hack
Makes recordio only record I/O if RECORDIO is in the environment. copy at http://www.spiritone.com/~nabil/recordio.diff diff -c dist/ucspi-tcp-0.84/Makefile local/ucspi-tcp-0.84/Makefile *** dist/ucspi-tcp-0.84/MakefileWed Nov 11 21:32:01 1998 --- local/ucspi-tcp-0.84/Makefile Wed Jul 07 14:16:54 1999 *** *** 451,459 tcpcat mconnect mconnect-io fixcr addcr delcr argv0 recordio rts recordio: \ ! load recordio.o strerr.a substdio.a error.a str.a fs.a fd.a sig.a ! ./load recordio strerr.a substdio.a error.a str.a fs.a \ ! fd.a sig.a recordio.0: \ recordio.1 --- 451,459 tcpcat mconnect mconnect-io fixcr addcr delcr argv0 recordio rts recordio: \ ! load recordio.o strerr.a substdio.a error.a env.a str.a fs.a fd.a sig.a ! ./load recordio strerr.a substdio.a error.a env.a str.a fs.a \ ! fd.a sig.a recordio.0: \ recordio.1 diff -c dist/ucspi-tcp-0.84/recordio.c local/ucspi-tcp-0.84/recordio.c *** dist/ucspi-tcp-0.84/recordio.c Wed Nov 11 21:32:01 1998 --- local/ucspi-tcp-0.84/recordio.c Wed Jul 07 14:03:59 1999 *** *** 7,12 --- 7,13 #include "exit.h" #include "fmt.h" #include "select.h" + #include "env.h" #define FATAL "recordio: fatal: " *** *** 138,143 --- 139,146 if (argc < 2) strerr_die1x(100,"recordio: usage: recordio program [ arg ... ]"); + if (env_get("RECORDIO")) { + if (pipe(piin) == -1) strerr_die2sys(111,FATAL,"unable to create pipe: "); if (pipe(piout) == -1) *** *** 159,164 --- 162,169 strerr_die2sys(111,FATAL,"unable to move descriptors: "); if (fd_move(1,piout[1]) == -1) strerr_die2sys(111,FATAL,"unable to move descriptors: "); + + } execvp(argv[1],argv + 1); strerr_die4sys(111,FATAL,"unable to run ",argv[1],": "); -- Aaron Nabil
Re: recordio
- Bill Luckett <[EMAIL PROTECTED]>: | Can anybody tell me where I need to call recordio from in order to | get details on local to remote messages? I put it in | qmail-smtpd.init but only got incoming mail. I'm guessing now that | it has to be called with qmail-rspawm or qmail-remote but I can't | figure out how to do it. Can't be done. recordio works by getting between the network socket and qmail-smtpd. Since qmail-remote opens its own network connection, there is no way to put a program in between. If you have a problem with outgoing connections to a specific site, it would be best if you could get the receiving end to log the transaction. Otherwise, you could try using tcpdump (or snoop on solaris) to capture it. A solution of sorts, albeit a difficult one, would be to patch qmail-remote to spawn off a recordio process to sit between itself and the socket after it has opened the connection. - Harald
Re: recordio + awk
From: Jim Breton <[EMAIL PROTECTED]> >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). On the "Before" you had bound to 0, on the "After" you bound to 127.0.0.1. Are you sure you were smtp'ing trough 127.0.0.1 ? Armando
Re: recordio + awk
On Wed, Jul 26, 2000 at 01:11:54AM +, Jim Breton wrote: > 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. I am only guessing ... could it be some buffering problem? gawk is not doing output on every line but in e.g 2/4/8 K blocks? I don't know what exactly you wish to accomplish, but I did a simple patch to recordio.c that looks for a ENV variable "RECORDIO" and if not set it does nothing. This makes it very easy to trace only connections from certain IP addresses by adding RECORDIO="" to the cdb that tcpserver uses and it's easily (un)set by building a new CDB. It's rather easy, in main() just add a char *do_recordio; do_recordio = env_get("RECORDIO"); and then put the fork() construct in if (do_recordio) { [ ... fork() ... ] } \Maex -- SpaceNet GmbH | http://www.Space.Net/ | Stress is when you wake Research & Development| mailto:[EMAIL PROTECTED] | up screaming and you Joseph-Dollinger-Bogen 14 | Tel: +49 (89) 32356-0| realize you haven't D-80807 Muenchen | Fax: +49 (89) 32356-299 | fallen asleep yet.
Re: recordio + awk
On Wed, Jul 26, 2000 at 03:39:34AM -, asantos wrote: > On the "Before" you had bound to 0, on the "After" you bound to 127.0.0.1. > Are you sure you were smtp'ing trough 127.0.0.1 ? Sorry, I should have clarified that. Until I get this working I'm binding tcpserver to 127.0.0.1 -- in case I screw something up I don't want any mail coming in from the outside. Normally I bind it to "0" so connections from the outside are still permitted.
Re: recordio + awk
From: Jim Breton <[EMAIL PROTECTED]> >Sorry, I should have clarified that. Until I get this working I'm >binding tcpserver to 127.0.0.1 -- in case I screw something up I don't >want any mail coming in from the outside. Normally I bind it to "0" so >connections from the outside are still permitted. Right. In that case I'd start by validating the gawk call, that is, I'd put simply a '{print;}' in the gawk part and see what happens. Armando
Re: recordio hack
[EMAIL PROTECTED] (Aaron Nabil) writes: Makes recordio only record I/O if RECORDIO is in the environment. I like the idea, but shouldn't you make recordio not record if something like NORECORDIO is in the environment, as opposed to making it record only if RECORDIO is in the environment? I mean, when people use recordio, they expect it to record io. Faried. -- LAMBDA CALCULUS -- for all your computational needs. ACCEPT NO SUBSTITUTES!
Re: recordio hack
Faried Nawaz writes... >[EMAIL PROTECTED] (Aaron Nabil) writes: > > Makes recordio only record I/O if RECORDIO is in the environment. > >I like the idea, but shouldn't you make recordio not record if something >like NORECORDIO is in the environment, as opposed to making it record only >if RECORDIO is in the environment? I mean, when people use recordio, they >expect it to record io. Hmm, not quite as useful. You'd need to flag every host NOT to record. But even better would been to have a flag for the new behavior and leave the original behavior intact. But that would have been a 'patch', not a 'hack', and I was in a world of hurt when I came up with that hack as the shortest distance between two points. For anyone to whom it's just not obvious what this does, consider you are getting hammered by some system 1.1.1.1 1.1.1.1,RECORDIO="" :allow will record just the io for that host and bypass all of the forky/pipey stuff recordio would be trying to do for all other connections, also makes for smaller logs. In fact I'll probably just leave recordio in place permanently, what's one extra exec per delivery? -- Aaron Nabil
recordio / logging problem
hi- i'm trying to record all incoming smtp sessions using recordio, but i'm stymied by the following: /usr/local/bin/tcpserver -R -x /etc/tcp.smtp.cdb -c 100 -u -g 0 smtp \ /usr/local/bin/rblsmtpd /usr/local/bin/recordio /var/qmail/bin/qmail-smtpd \ | /var/qmail/bin/splogger smtpd 3 & this sends all recordio output to the terminal, not through syslog. following a couple of examples on this list, i inserted 2>&1 directly after qmail-smtpd, but that generates 'Ambiguous Ouptut Redirect'. This is probably just a stupid shell thing (i'm using csh on linux), but i don't understand it. thanks- dan
Pop3/recordio extraneous characters
Hey all. I'm trying to achieve minimal logging for pop3. Many of you suggested using 'recordio' with tcpserver. I tried that, and it has EXACTLY the logging I need, however, I do have a slight problem. When you do recordio, you get lots of extraneous characters. Below are examples of what I get without recordio and with recordio. Normally, I wouldn't care, but it freaks out netscape mail, outlook and make evolution seg fault, so I'm kinda in a bind. Anyone know how to make recordio not but that junk in there? WITHOUT recordio... [root@mail(node1) init.d]# telnet localhost 110 Trying 127.0.0.1... Connected to 192.168.6.12. Escape character is '^]'. +OK <4440.991317705@mail> user me +OK pass test +OK list +OK 1 212 2 483 3 212 . quit +OK Connection closed by foreign host. [root@mail(node1) init.d]# WITH recordio [root@mail(node1) init.d]# telnet localhost 110 Trying 127.0.0.1... Connected to localhost.localdomain. Escape character is '^]'. +OK <1776.991316117@mail> user me +OK pass test 778 > +OK +OK list 778 < list 778 > +OK +OK 778 > 1 212 778 > 2 483 778 > 3 212 778 > . 1 212 2 483 3 212 . quit 778 < quit 778 > +OK +OK 1778 > [EOF] Connection closed by foreign host. [root@mail(node1) init.d]# Thanks once again... David Gartner
Re: recordio / logging problem
Daniel Kelley wrote: > this sends all recordio output to the terminal, not through syslog. > following a couple of examples on this list, i inserted 2>&1 directly > after qmail-smtpd, but that generates 'Ambiguous Ouptut Redirect'. > > This is probably just a stupid shell thing (i'm using csh on linux), but i > don't understand it. |& splogger instead of | splogger will redirect stdout and stderr. -- Michael T. Babcock (PGP: 0xBE6C1895) http://www.fibrespeed.net/~mbabcock/
Re: Pop3/recordio extraneous characters
David Gartner <[EMAIL PROTECTED]> wrote: > Hey all. I'm trying to achieve minimal logging for pop3. Many of you > suggested using 'recordio' with tcpserver. I tried that, and it has > EXACTLY the logging I need, however, I do have a slight problem. When > you do recordio, you get lots of extraneous characters. You're not supposed to get them. The extra character you showed, apparently ending up in the session itself, are supposed to go to a log instead. How are you invoking tcpserver/recordio/qmail-pop3d? Give us copies of your scripts. Probably there's a good in them somewhere. Charles -- --- Charles Cazabon<[EMAIL PROTECTED]> GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---
Re: Pop3/recordio extraneous characters
Charles, Here's what I use to invoke tcpserver tcpserver -c 50 0 pop3 /var/qmail/bin/qmail-popup mail.mydomain.com recordio /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir & tcpserver -p -x /home/vpopmail/etc/tcp.smtp.cdb -u100 -g501 0 smtp /usr/bin/rblsmtpd -t30 -rrbl.maps.vix.com /var/qmail/bin/qmail-smtpd & Charles Cazabon wrote: > David Gartner <[EMAIL PROTECTED]> wrote: > > Hey all. I'm trying to achieve minimal logging for pop3. Many of you > > suggested using 'recordio' with tcpserver. I tried that, and it has > > EXACTLY the logging I need, however, I do have a slight problem. When > > you do recordio, you get lots of extraneous characters. > > You're not supposed to get them. The extra character you showed, apparently > ending up in the session itself, are supposed to go to a log instead. > How are you invoking tcpserver/recordio/qmail-pop3d? Give us copies of your > scripts. Probably there's a good in them somewhere. > > Charles > -- > --- > Charles Cazabon<[EMAIL PROTECTED]> > GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ > Any opinions expressed are just that -- my opinions. > ---
Re: Pop3/recordio extraneous characters
David Gartner <[EMAIL PROTECTED]> wrote: > > > Hey all. I'm trying to achieve minimal logging for pop3. Many of you > > > suggested using 'recordio' with tcpserver. I tried that, and it has > > > EXACTLY the logging I need, however, I do have a slight problem. When > > > you do recordio, you get lots of extraneous characters. > > > > You're not supposed to get them. The extra characters you showed, > > apparently ending up in the session itself, are supposed to go to a log > > instead. How are you invoking tcpserver/recordio/qmail-pop3d? Give us > > copies of your scripts. Probably there's a good in them somewhere. > > Here's what I use to invoke tcpserver > > tcpserver -c 50 0 pop3 /var/qmail/bin/qmail-popup mail.mydomain.com recordio > /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir & Hmmm. I would have thought recordio should come immediately before qmail-popup (else you won't capture the login information), but I don't know that for sure. The other thing is that recordio outputs to stderr (fd2). So where is fd2 going above? Nowhere that I can see. Perhaps adding "2>>/foo/log" before "&" would help? Charles -- --- Charles Cazabon<[EMAIL PROTECTED]> GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---
Re: Pop3/recordio extraneous characters
Charles, I took your suggestions and changed the line to: tcpserver -c 50 0 pop3 recordio /var/qmail/bin/qmail-popup mail.meckcom.net /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 2>>/root/recordio.crap & and it now works perfectly! Thanks much :) David Gartner Charles Cazabon wrote: > David Gartner <[EMAIL PROTECTED]> wrote: > > > > Hey all. I'm trying to achieve minimal logging for pop3. Many of you > > > > suggested using 'recordio' with tcpserver. I tried that, and it has > > > > EXACTLY the logging I need, however, I do have a slight problem. When > > > > you do recordio, you get lots of extraneous characters. > > > > > > You're not supposed to get them. The extra characters you showed, > > > apparently ending up in the session itself, are supposed to go to a log > > > instead. How are you invoking tcpserver/recordio/qmail-pop3d? Give us > > > copies of your scripts. Probably there's a good in them somewhere. > > > > Here's what I use to invoke tcpserver > > > > tcpserver -c 50 0 pop3 /var/qmail/bin/qmail-popup mail.mydomain.com recordio > > /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir & > > Hmmm. I would have thought recordio should come immediately before > qmail-popup (else you won't capture the login information), but I don't know > that for sure. The other thing is that recordio outputs to stderr (fd2). So > where is fd2 going above? Nowhere that I can see. Perhaps adding > "2>>/foo/log" before "&" would help? > > Charles > -- > --- > Charles Cazabon<[EMAIL PROTECTED]> > GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ > Any opinions expressed are just that -- my opinions. > ---
qmail-smtpd and recordio fails
Hi there folks, i tried to use recordio to log every SMTP-Actions, but there seems to be no logging .. My startup-line : # smptp supervise /var/lock/qmail-smtpd tcpserver -c400 -v -x/etc/tcp.smtp.cdb -u$USERID -g$GROUPID 0 25 \ rblsmtpd -r rbl.maps.vix.com rblsmtpd -r dul.maps.vix.com recordio qmail-smtpd 2>&1 | setuser qmaill accustamp | \ setuser qmaill cyclog -s500 -n5 /var/log/qmail/qmail-smtpd & It would be great if i could log every SMTP-command to a seperate log file, e.g. smtp.log and still have my qmail-smtp log ! Thanks a lot ! Thomas
recordio, but not the whole message
I would like to be able to stop recordio after a certain number of lines and/or after the first empty line (end of headers) to be able to record the headers of all messages in the logs, but not the bodies, and more importantly, not the attachments. Is there any way I could pipe the output from recordio through another program in the midst of my /service/smtp/run script's series of pipes, or should I write an external script / program to handle it?