mouss wrote:

Jeff Weinberger a écrit :
>
> I've verified that the "R" flag is there and I use -f ${sender} on the
> command line (the script does parse the arguments)
>
> I think the envelope-sender is missing before it enters the content
> filter. This from my mail.log:
>
> Dec 31 19:50:07 s postfix/qmgr[3345]: A4C5E2943D74: from=<m...@myisp.tld >,
> size=1505, nrcpt=1 (queue active)
> Dec 31 19:50:07 s postfix/smtpd[3340]: disconnect from
> smtp120.isp.mail.sp1.myisp.tld[69.147.64.93]
> Dec 31 19:50:07 s dspam[3356]: query error: VERBOSE DEBUG (INFO ONLY -
> NOT AN ERROR): see sql.errors for more details
> Dec 31 19:50:09 s postfix/smtpd[3348]: connect from localhost[1270.0.1]
> Dec 31 19:50:09 s postfix/smtpd[3348]: 646A62943D79:
> client=localhost[127.0.0.1]
> Dec 31 19:50:09 s postfix/cleanup[3344]: 646A62943D79:
> message-id=<fb0b0ed6-d05d-48c6-a077-10662907d...@myisp.tld>
> Dec 31 19:50:09 s postfix/qmgr[3345]: 646A62943D79: from=<>, size=2936,
> nrcpt=1 (queue active)
> Dec 31 19:50:09 s postfix/smtpd[3348]: disconnect from localhost[127.0.0.1]
> Dec 31 19:50:09 s postfix/pipe[3346]: A4C5E2943D74:
> to=<mypost...@virtualmailbox.tld>, relay=dspam, delay=5.1,
> delays=3.4/0/0/1.7, dsn=2.0.0, status=sent (delivered via dspam service)
>
> (identifying information removed)
>
> The "from=<>" in the third-to-last line I assume should be the
> envelope-sender?
>

yes. when mail is passed back to postfix, something loses the
envelope-sender. how do you pass mail from dspam to postfix?


From this log entry it looks like the envelope sender is empty before the mail is send to dspam - the "from=<>" three lines before the mail is delivered to dspam makes me think this.

When I look at the log entries for the message when it comes back into postfix from dspam the envelope sender is also empty (again "from=<>"

So isn't there something losing the envelope sender before it ever gets to dspam?

but to answer your question directly, dspam re-injects the mail into postfix using SMTP on an alternate port, the same way as is illustrated in the CONTENT_FILTER_README for an after-queue content filter.

Does that help? or point to anything?

Reply via email to