-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Ted thanks for the reply.
I have 2 qmail processes running so local machines sending mail do not have any delay when the mail is being sent to the server as qmail-scanner must finish processing before the e-mail client is given the ok. If I go with your suggestions then I can't run 2 copies of Qmail if I only want incoming mail scanned. Firstly if I remove 127.0.0.1 from my allow list then the second Qmail won't expect connections from the first. So to overcome this I have 2 qmail-scanner-queue.pl files. The first does spam and excepts connections on port 25 from everyone (still no delay. Qmail scanner will have nothing to do for local clients so sending is just as quick as having no script. i.e. no virus scan or spam for local machines, spam from external) and the second just does virus scanning (all traffic is still virus checked). This seems to work fine but there has to be a better solution. Isn't there a nice peace of perl that could be added to the script? What happens if you use fetchmail to get your local mail! Then internal and external won't be spam checked. If you disable the return if (defined($ENV{'RELAYCLIENT'})); line in the qmail-scanner-queue script then incoming and outgoing mail gets spam checked. If someone is running qmail scanner on the receiving end with fast_spamassasin mode and the message has been sent via verbose_spamassasin then the mime types get corrupted! This is why I am trying to come up with a better solution. So far the 2 script scenario seems to do the job but its seems a messy way to do it. If I knew perl I am sure I could work something out but I don't. I am sure instead of checking for the environment relay variable a better solution exits to overcome this flaw. Thanks, Dan Ted Cabeen wrote: > Content-Type: text/plain; charset=us-ascii > > In message <[EMAIL PROTECTED]>, Daniel Czarnecki writes: > > I have 2 Qmail processes running. The first excepts connections on port > 25 on all interfaces and forwards them to port 26 on 127.0.0.1. > > I have 127.0.0.1:allow,RELAYCLIENT="" in my smtp.rules file. > > I would like qmail-scaner-queue.pl to only scan incoming messages. > However the line of code: return if (defined($ENV{'RELAYCLIENT'})); > checks for RELAYCLIENTS and obviously 127.0.0.1 is always going to be a > rely client and therefore will not be scanned. How could we overcome > this? Can you do a test to see if the originating IP is in the > RELAYCLIENT list and if so not run spam assassin? i.e. not the last ip > to connect to the script but the originator. > > > Second reply, different from the first... > > You have two options. > 1) Remove 127.0.0.1:allow,RELAYCLIENT="" from your smtp.rules file. Local > clients can use qmail-inject or qmail-smtpd to send mail and don't need to > connect to localhost. > 2) Comment out the "return if (defined($ENV{'RELAYCLIENT'}));" from > qmail-scanner-queue.pl > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAj0aUYMACgkQHzcNDJnXCuSl1QCeMlNYp/bV68Nbcmawf/dAyQm5 vL8AoIgrLSZmLbwdkx11lBLnB84UKZev =Bpsw -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: Jabber Inc. Don't miss the IM event of the season | Special offer for OSDN members! JabberConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general