Policyd - Ratelimiter per email account
Hi,
I am trying to configure limiter for email. I managed to install policyd and configure it, but it seems postfix is always contacting it on port 10031
smtpd_sender_restrictions = check_sender_access regexp:/etc/postfix/tag_as_originating.re, permit_mynetworks, permit_sasl_authenticated, check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf, check_policy_service inet:127.0.0.1:10031, check_sender_access regexp:/etc/postfix/tag_as_foreign.re
When I remove check_sender_access regexp:/etc/postfix/tag_as_originating.re
it seems to work. I am not sure what exactly is this tag_as_originating doing, but I suppose it is important
I also tried this https://github.com/mpellegrin/ratelimit-policyd , but problem seems to be same. (just port is 10032 here)
Here I found pointer to postfwd
is this right way to go ?
smtpd_restriction_classes = greylisting,postfwd
postfwd = check_policy_service unix:private/postfwd
smtpd_end_of_data_restrictions = postfwd
Thank you