3fb603a
1. To make use of postgrey in postfix, edit postfix configuration file:
bdea17a
bdea17a
/etc/postfix/main.cf:
bdea17a
bdea17a
  smtpd_recipient_restrictions = ...
bdea17a
    check_policy_service unix:postgrey/socket, ...
bdea17a
3fb603a
Or if TCP sockets (modify IP / port if needed) is preferred, first change
3fb603a
POSTGREY_TYPE:
bdea17a
bdea17a
/etc/sysconfig/postgrey:
bdea17a
3fb603a
  POSTGREY_TYPE="--inet=127.0.0.1:10023"
3fb603a
3fb603a
then modify postfix configuration file:
bdea17a
bdea17a
/etc/postfix/main.cf:
bdea17a
bdea17a
  smtpd_recipient_restrictions = ...
bdea17a
    check_policy_service inet:127.0.0.1:10023, ...
bdea17a
3fb603a
After above steps, please restart the postfix service to make sure postfix has
3fb603a
loaded the changes. And don't forget to activate the service on startup!
3fb603a
3fb603a
2. If --privacy option is passed to postgrey in /etc/sysconfig/postgrey, make
3fb603a
sure perl(Digest::SHA) is installed, using dnf to install if not available:
3fb603a
3fb603a
    dnf install perl\(Digest::SHA\)
3fb603a
3fb603a
Don't forget to escape the parentheses if other perl modules are absent.
418b70b
3fb603a
3. Postgrey could be used with exim if you want, but need to modify the
3fb603a
systemd service file like removing the dependency of postfix.service. More
3fb603a
details in README.exim underneath /usr/share/doc/postgrey.