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