> -----Original Message----- > From: Dallas Engelken > Sent: Tuesday, March 11, 2003 3:27 PM > To: Rick Romero; [EMAIL PROTECTED] > Subject: RE: [Qmail-scanner-general]Expected Performance Degradation > > > > -----Original Message----- > > From: Rick Romero [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, March 11, 2003 1:28 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [Qmail-scanner-general]Expected Performance Degradation > > > > > > On Tue, 2003-03-11 at 13:05, Ryan Finnie wrote: > > > On Tue, 11 Mar 2003, D.Monroe wrote: > > > > By far, the biggest "hit" (running just Q-S) is likely > due to the > > > > overhead of the perl interpreter and the perlscan > > body/attachment searches. > > > > > > I've been thinking about that... there's not much you can > > do about the > > > overhead for decompiling the messages before being scanned, > > but the act of > > > actually loading the full perl script each time a message > > comes in is a > > > significant hit. What I'd be interested in seeing is a > > method similar to > > > SA's spamd/spamc system, where the Q-S program is loaded as > > a separate > > > process, listens for connections (either via TCP of UNIX > > sockets), and > > > does its thing. > > > > Has anyone tried this: > > http://daemoninc.com/PersistentPerl/ > > > > I've been trying to do this, but cant seem to read &STDOUT > when i change to to #!/usr/bin/perperl (yes i setuid on > perperl to qmailq and changed qmail-scanner to just 0750). > > since i cant grab STDOUT, i get > 2003-03-11 15:24:09:8283: g_e_h: no sender and no recips. > > i'm not sure where to go from here, but I'm working on it. > > dallas > >
well.. i've spent an hour on this and have come to the the conclusion that grab_envelope_hdrs() does not get the 1 line it is expecting from STDOUT. Where does this line go when running through perperl? select(STDOUT); $|=1; open(SOUT,"<&STDOUT") || &tempfail("cannot dup fd 0 - $!"); should give me something like "[EMAIL PROTECTED]@test.com\0\0" right... which is just not there anymore. STDIN is cool, the message dumps to a file, renames, reformime and tnef run fine on it, but once that grab_envelope_hdrs() call comes... help! dallas ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general