Sure, but Postfix still logs the mail as "2.0.0 delivered via (whatever)" - don't you think that's semantically wrong if the message was discarded or quarantined?

--
Best regards,
Jeremy Morton (Jez)

On 12/01/2013 22:31, Viktor Dukhovni wrote:
On Sat, Jan 12, 2013 at 07:03:12PM +0000, Jeremy Morton wrote:

Postfix allows a content filter to be configured as part of the
message sending chain (via the content_filter parameter), and the
content filter can be a script which is invoked using the pipe
delivery agent.  Looking at the pipe.c source code, it looks like
the eval_command_status function will always bounce or defer e-mail
unless command_status is PIPE_STAT_OK, in which case Postfix will
log 2.0.0 (mail delivered via...)

The content filter should log the fact that it discarded the message.
No ad-hoc changes in Postfix are required or appropriate in this
case.

Content filters may also quarantine mail, modify it in transit, ...
All non-cosmetic filter actions should be logged by the filter.

Reply via email to