Giovanni Mancuso:
>  Hi,
> 
> I'm trying to write an after queue content filter, and i have a questions.
> If my filter have exit code 75 (for example), in postfix log after 
> status= i have in () the output of my filter, but if my filter have exit
> code 0, the output is always "status=sent (delivered via filter
> service)". Can i write another message in ()? If my filter return a
> string, can i put this in postfix log?

This is currently not implemented. Things to consider when 
proposing changes to code:

- The same code is also used in local(8) to deliver mail to
"|command".  Changes to the pipe(8) delivery agent must not break
deliveries with the local(8) delivery agent.

- While the command output after error is returned to the sender
in DSN "failed" notifications, it not necessarily a good idea to
also return command output with DSN "success" notifications.

> The second question is: Can i do a postfix queue_id to my filter with
> argument? In pipe manual i don't find this macro, but if i add -vvv in
> pipe command, i see

No, and there are many reasons for this. First, filter programs
must not access Postfix queue files to implement "extra functionality";
I don't want to make such cheating easy.  Second, the queue ID will
change after the filter sends the message back into Postfix.

        Wietse

Reply via email to