From: Michael Tokarev on
Harakiri wrote:
> I can use
>
> smtpd_end_of_data_restrictions=check_policy_service unix:private/policy
>
> just fine in the main.cf. However this has the drawback that i need to
> add
>
> -o smtpd_end_of_data_restrictions=
>
> to each filter in the master.cf which should not use the policy service again.
>
> When i try to only set the policy service once for the SMTP entry i.e.
>
> :smtp inet n - n - 10 smtpd
> -o content_filter=smgw:[127.0.0.1]:10025
> -o smtpd_end_of_data_restrictions=check_policy_service unix:private/policy
>
> postfix complains about an invalid syntax (probably due the space between policy server and unix:private/policy)

Try using a comma instead of a space there:

-o smtpd_end_of_data_restrictions=check_policy_service,unix:private/policy

it works due to the way config parser is implemented, it's ugly, but
it works ;)

/mjt