On 08/11/2012 23:21, Jeroen Geilman wrote:
> Postfix cannot detect a mail loop if it has never seen the message before.
> You are not re-injecting the filtered message, you are (or, rather, SA 
> is) calling sendmail(1), which in turn invokes pickup(8):
> 
>      Nov  8 12:35:47 zed postfix/pickup[2485]: BCDF560EF: uid=65534 
> from=<instant.checkm...@designakeackson.info>
> 
> This means a different path is followed from the original submission 
> over SMTP; sendmail-submitted mail generally lacks features that allow 
> such loops to be detected.
> In this case, you are using the "nobody" user to re-submit the message, 
> which will throw postfix off further, since it has no MAIL FROM: to 
> match it with.
> 
> Re-inject the message over a separate smtpd(8) instance instead; the 
> content filter loopback will not alter the envelope, thus enabling 
> postfix to detect a loop.
> 
> smtpd(8): MAIL FROM: joe@home, RCPT TO: jim@work -> Spamassassin -> SMTP 
> re-inject: MAIL FROM: joe@home, RCPT TO: jim@work.
> sendmail(1): MAIL FROM: joe@home, RCPT TO: jim@work -> Spamassassin -> 
> sendmail: MAIL FROM: nobody (uid=65534), RCPT TO: jim@work.
> 
> Note the "nobody" above.

Hello Jeroen,

thank you for your reply, but I do not follow you. My problem is that a
mail forwarding loop is detected where I suppose there should be none,
not the opposite. The same log you quite, imho shows that a proper FROM
was indeed provided by sendmail, as I believe that Postfix reports the
envelope sendere and not the From: header in its logs.

My configuration is basically what described as "Simple content filter
example" in the documentation: http://www.postfix.org/FILTER_README.html

Cheers,
Daniele

Reply via email to