Hi there,

I'm currently about to customize a local (gentoo~) 3.1 installation to our 
specific needs.
One of the first steps there was a special regex to catch our very own 
Received: headers

To check if this works I modified some other SA code parts and enabled debug 
out.

But here I had to realize that the Received line seems to be parsed correctly 
but the values are never recognized as part of either our trusted or internal 
network. Both are set like this (I simplyfied the example a bit)

/etc/spamassassin/local.cf

---snip---
 clear_trusted_networks
trusted_networks 127.0.0 192.168 10 ... more networks to come here 

clear_internal_networks
internal_networks 10.1.71.0/24 10.1.3.0/24 10.1.76.29/24 ... here too
---snip---

Then I changed the code in 
/usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin/Conf.pm to see if the 
values are actually read in. Which is the case.

However, if the lines are parsed I only see stuff like this:

[32116] dbg: moep: untrusted relay found 10.1.76.29
[32116] dbg: received-header: relay 10.1.76.29 trusted? no internal? no

Now the way I see it, the IP of our internal relay as well as other values 
inside the Received line are parsed correctly. My own debug output confirmed 
this. And the SA code later on should only check if the ip shown there is 
within the trusted or internal network. Which it should be bit SA always 
says "no" to both checks no matter what I specify 
in /etc/spamassassin/local.cf
I tried all different mails, all different configurations, I tried using spamd 
or piping through SA directly, I never saw any 'yes' there.

I'm not the perl expert so I'm finally stuck here with my own debugging 
efforts and don't know what to change or check anymore. But I would really 
need those internal networks to be recognized.

Any suggestions?

Greetings...

Stephan



Attachment: pgpAgDVHtG2u7.pgp
Description: PGP signature

Reply via email to