Hi, I need create a custom policy service and I have a questions
about efficiency/performance.

I found two perl examples that are within my skill to understand
and one is based from the example code in the Postfix 
examples/smtpd-policy/greylist.pl if you don't know I think this is
http://heap.altlinux.org/usr/share/doc/postfix-2.2.11/examples/smtpd-policy/greylist.pl
so its run by Postfix's spawn service. Perl code itself no threading,
no forking just like one-time script because Postfix takes care of
the rest right?

Other example, it runs as daemon itself, so Postfix not in charge,
only makes call to it from smtpd_*_restrictions. See its here:
https://github.com/bejelith/send_rate_policyd

I can put 2nd one under systemd so it can be monitored and restart
if it goes down.

Question is if there is any major difference in these implementation?
In high volume situation is one better than other?

Thank you for advice.

Reply via email to