Integrate Postfix-Policyd

Request and discuss new features you would like to have.
Post Reply
rhyse
Posts: 3
Joined: 10 Mar 2016 10:39

Integrate Postfix-Policyd

Post by rhyse »

Hi
It would be good to integrate Postfix-Policyd (http://wiki.policyd.org) into the system.

In particular the quota portion (the one I really need) as the other features largely seem to overlap with current functionality

Thanks
rhyse
Posts: 3
Joined: 10 Mar 2016 10:39

Re: Integrate Postfix-Policyd

Post by rhyse »

Sorry another option may be postfwd (http://postfwd.org/)
rhyse
Posts: 3
Joined: 10 Mar 2016 10:39

Re: Integrate Postfix-Policyd

Post by rhyse »

Hi

I got basic integration of postfwd working with the following

perl -MCPAN -e shell
install Net::Server::Daemonize
install Net::Server::PreFork
install Storable
install Net::Server::Multiplex
install Time::HiRes
#install Net::DNS

/usr/bin/wget -O /usr/bin/postfwd http://postfwd.org/postfwd2-1.35

chmod +x /usr/bin/postfwd

cat > /etc/postfwd.cf <<EOF
id=RULE001; sender_domain=domain.local; action=rate(sender/60/300/450 4.7.1 only 60 messages per 5 mins)
EOF

groupadd postfwd
useradd -g postfwd -d /var/empty -s /bin/false -c "postfwd daemon user" postfwd
passwd -l postfwd

postfwd --daemon -f /etc/postfwd.cf -u postfwd -g postfwd -p 10045 -R --pidfile /var/run/postfwd.pid -n --nodns -v


edit /etc/postfix/main.cf to include the postfwd integration line
smtpd_recipient_restrictions = permit_mynetworks, # recommended
check_policy_service inet:127.0.0.1:10045, # **postfwd integration**


Thanks
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Integrate Postfix-Policyd

Post by shawniverson »

Post Reply