I have a bit of a problem. Spamassassin is set to verbose mode on my box 
and is scanning all incoming and outgoing mail. This was achieve by 
hashing out the line "return if (defined($ENV{'RELAYCLIENT'}));" in the 
qmail-scanner-queue.pl  script.

I have a mate that is running the same config as me except he has 
Spamassassin set to fast_spamassassin. When his qmail-scanner-queue.pl 
script parses the e-mail and removes my spam headers and adds his 
headers it breaks the mime types in the e-mail and attachments are no 
longer assessable.

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.

So for example

 From an inside client: If I send an e-mail from 192.168.3.130 it will 
connect to 193.168.3.1 and then smtproute to 127.0.0.1 on port 26. So 
qmail-scanner will go hey this was originally from the internal network 
so I'm not going to do the spam check.

 From the outside: An e-mail comes in on 203.476.8.xx then gets 
smtprouted to 127.0.0.1 on port 26. Qmail-scanner checks the originating 
IP address and sees that its from somewhere on the Internet. Then it 
decides to check for spam.

The only problem I can see with this is if the originators IP address 
range was the same as yours. i.e. if they send it from there internal 
network with the same address range!

Let me know if you have any ideas on this.

Dan




-------------------------------------------------------
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 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

Reply via email to