On Wed, 14 Jan 2015, Moritz Both wrote:

> Regarding the date problem, I have added some debug 
> statements to the spamass-milter code to get more info 
> about the result of smfi_getsymval(ctx, "b").
> 
> This is the result:
> 
> Jan 14 08:33:19 eroski spamass-milter[51579]: mlfi_connect: enter
> Jan 14 08:33:19 eroski spamass-milter[51579]: b macro is Wed, 14 Jan 2015 
> 08:33:19 +0100
> [...]
> Jan 14 08:33:20 eroski spamass-milter[51579]: mlfi_envrcpt: enter
> Jan 14 08:33:20 eroski spamass-milter[51579]: Total of 1 actual recipients
> Jan 14 08:33:20 eroski spamass-milter[51579]: Date for Received header line 
> from macro b: Wed, 7 Jan 2015 11:04:24 +0100
> 
> It seems you are right about the sendmail b macro messed up, 
> but only in certain callbacks to the milter.
> 
> So this might be a sendmail / libmilter problem, or anything messes
> with the ctx structure. 

Yeah. Apparently it was happening back in 2006, too:

http://newsgroups.derkeiler.com/Archive/Comp/comp.mail.sendmail/2006-06/msg00413.html

and apparently this workaround works:

http://mail-archives.apache.org/mod_mbox/spamassassin-users/201402.mbox/%3c20140221143538.ga6...@fantomas.sk%3E


[...]

> I have these definitions in my sendmail.mc file:
> 
> define(`confMILTER_MACROS_CONNECT',`t, b, j, _, {daemon_name}, {if_name}, 
> {if_addr}')dnl
> define(`confMILTER_MACROS_HELO',`s, {tls_version}, {cipher}, {cipher_bits}, 
> {cert_subject}, {cert_issuer}')dnl
> define(`confMILTER_MACROS_ENVRCPT',`b, i, j, r, v, Z, _')dnl


Can you try switching from confMILTER_MACROS_ENVRCPT to
confMILTER_MACROS_ENVFROM ? If that fixes this up, I'll change the
recommendation.

IE, add:

define(`confMILTER_MACROS_ENVFROM',`b')dnl

and remove b from ENCRCPT.

I imagine that somewhere in the code, sendmail falls back to the
date/time it started instead of the current time if it's unable to get a
correct date.


> moritz
> 
> 
> -- 
> aldebaran Programmierung  &  IT-Lösungen GmbH
> Softwareentwicklung      Individualsoftware
> mail:    i...@aldebaran.de    http://www.aldebaran.de
> Tel:     0511-270 416-0       Fax:    0511-270 416-33
> Adresse: Hanomaghof 2         Ort:   D-30449 Hannover
> Geschäftsführung:   Ursula (Usch) Wildt - Moritz Both
> Handelsregister:      Amtsgericht Hannover HRB 56 991 
-- 
Don Armstrong                      http://www.donarmstrong.com

Overcast nights are beautiful; the sun, mostly set, a near full moon
partially risen, light pollution from the city, and the sky delicately
purpleorangegray, as if it were a livid bruise.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to