Il 24/05/2017 14:07, Christoph Langguth via Users ha scritto:
> Hi,
>
> this is just a wild guess, but make sure that your postfix configuration
> invoking policyd is correct. Unless I'm totally mistaken, you need to
> invoke policyd twice. Here's a snippet from my configuration, which
> correctly works with several different quota rules (all applied by user):
>
> smtpd_recipient_restrictions =
> check_recipient_access
> pcre:$config_directory/maps/check_recipient_blacklist,
> permit_mynetworks,
> reject_non_fqdn_recipient,
> check_recipient_access
> pcre:$config_directory/maps/check_recipient ,
> reject_unlisted_sender,
> # policyd:
> check_policy_service inet:127.0.0.1:10031 ,
> permit_sasl_authenticated,
> reject_unauth_destination,
> reject_rbl_client preempt.dnsbl.sorbs.net ,
> reject_rbl_client relays.dnsbl.sorbs.net ,
> reject_rbl_client block.dnsbl.sorbs.net ,
> reject_rbl_client zombie.dnsbl.sorbs.net ,
> reject_rbl_client escalations.dnsbl.sorbs.net ,
> reject_rhsbl_sender rhsbl.sorbs.net ,
> # grossd:
> check_policy_service inet:127.0.0.1:5525 ,
> permit
>
> smtpd_end_of_data_restrictions =
> # policyD:
> check_policy_service inet:127.0.0.1:10031 ,
> permit
>
If your configuration uses submission you have to add the rule also to
submission_recipient_restrictions or policyd is not called for submission.
Ex.
submission_recipient_restrictions =
check_policy_service inet:127.0.0.1:10031,
permit_sasl_authenticated,
reject
--
Gelpi ing. Andrea
--------------------------------------------------------------
It took the computing power of three C-64s to fly to the Moon.
It takes a 486 to run Windows 95. Something is wrong here.
--------------------------------------------------------------
_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org