Hi All, I have configured Postfix to work with SpamAssassin (using SpamPD) as an SMTPD Proxy Filter similarly to the instructions on the SpamAssassin Wiki[1]. I would like to include a list of the failed tests in the SMTP rejection message to allow legitimate senders to address the problems on their systems. To this end, I have created header_checks map with the following content:
/^X-Spam-Status: Yes.*tests=(.*) autolearn=/ REJECT Message identified as spam by SpamAssassin using the following tests: $1 This works great, except that the message is chopped off at the first line break in the X-Spam-Status header. Looking at the logs, the status message appears in full, with EOL characters replaced by '?', when the initial reject message is logged by cleanup receiving the result of the proxy filter (running on port 10026 in the wiki setup). When the proxy-reject is logged by smtpd running on port 25 it only includes up to the first EOL character. Which is all that is transmitted to the submitting MTA. Is there a way around this? I assume including EOL characters in an SMTP status message is wrong, but is there a way for me to clean them from the result of header_checks? Any help/insight would be greatly appreciated. 1. http://wiki.apache.org/spamassassin/IntegratePostfixViaSpampd#Spampd_as_a_Before-Queue_Content_Filter P.S. I am testing this behavior using version 2.8.3-1 from Debian. -- Cheers, | ke...@kevinlocke.name | JIM: kevin...@jabber.org Kevin | http://kevinlocke.name | IRC: kevinoid on freenode