> -----Original Message-----
> From: David B Funk [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 19, 2006 10:25 PM
> To: Mike Sassaman
> Cc: users@spamassassin.apache.org
> Subject: RE: spam scores low (Sendmail + smtp-vilter + SA )
> 
> 
> On Thu, 19 Jan 2006, Mike Sassaman wrote:
> 
> > > Well, if SA can't parse the format generated by your
> > > mailserver, that would
> > > affect all messages which don't have any additional Received:
> > > headers beyond the
> > > local delivery (which would be nearly all your spam/virus email).
> >
> > Fair enough.  I am using a relatively basic Sendmail 
> installation (on
> > OpenBSD3.8).  How could I check to see if I was generating 
> unparseable
> > headers (and hopefully fix)?
> 
> That may be the answer. In the sendmail milter API the milter gets an
> original copy of the incoming message, before sendmail alters 
> it in any
> way, including -before- adding the local 'Received:' header.
> 
> Thus a spamassasin-milter must internally synthesize a 
> 'Received:' header
> that correctly mimics the sendmail generated one, as it passes the
> message on to "spamd". If the smtp-vilter code isn't doing that
> (either not at all or not correctly) it could cause your problem.
> 
> I know that the 'miltrassassin' milter had a bug that would cause
> it to generate broken 'Received:' headers under certain input
> corner-cases.
> 
> Hmm, I've never looked at smtp-vilter before. Looking at the code
> now, I'm underwhelmed by their 'Received:' header synthesis code
> (IE it's pretty lame).
> And I think that I may see what the cause of your problem is. For
> some strange reason they're using the '{client_addr}' macro rather
> than the '_' macro for the address of the sending host.
> Now '_' is in the sendmail milter default macro list, '{client_addr}'
> is NOT. Did you explicitly add the '{client_addr}' macro to your
> sendmail config file Milter.macros.connect parameter?
> 
> If you're not wedded to smtp-vilter you might want to consider using
> a different milter or spend time trying to enlighten the authors
> of that code and seeing if you can get it fixed.
> 
> Dave
> 
Well, I basically chose smtp-vilter because it was one of two milters in the
OpenBSD ports tree and therefore I figured it would be easiest to integrate.
I may have been wrong there...

I contacted smtp-vilter's author and he said there was a known issue with
Received headers, and gave me some updated code.  Unfortunately I am
experiencing the same error after the update.

My sendmail.cf contains the line:
O Milter.macros.connect=j, _, {daemon_name}, {if_name}, {if_addr}

So you're saying this will not communicate with the milter correctly and I
should add {client_addr} to the list?  Does the order matter?

Reply via email to