Ok, I just made some tests and this works when the optional text
starts with 4.x.x or 5.x.x (deferred or rejected), but how to handle
situations where result should be DUNNO (i.e., passed the filter
control)? I tried exiting the external script with return code 0, also
writing DUNNO to the stdout/stderr and the original message just gets
lost, it never gets the user's inbox.

2014-09-09 18:16 GMT+01:00 Wietse Venema <[email protected]>:
> Edwin Marqe:
>>   test-policyd       unix  -       n       n       -       -       pipe
>>     flags=F user=dangerous argv=/opt/postfix_policy.php $sender $size 
>> $recipient
>>
>> I've noticed that in this case the parameters are indeed forwarded to
>> the bash script, but Postfix doesn't expect the script to return any
>> value like 'action=DUNNO', it just assumes the external script will
>
> AS DOCUMENTED the pipe(8) daemon receives an exit status from the
> external command, and optionally receives text on stdout or stderr
> from the external command.
>
> The SMTPD policy protocol uses a completely different Postfix
> interface, as described in SMTPD_POLICY_README.html
>
>         Wietse

Reply via email to