Difference between revisions of "User:Paul/sandbox/Install Postgrey"
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
Most of the commands in this article require <code>root</code> privileges: | Most of the commands in this article require <code>root</code> privileges: | ||
− | username@servername:~$ sudo | + | username@servername:~$ sudo -i |
== Install Postgrey == | == Install Postgrey == | ||
Line 11: | Line 11: | ||
root@servername:~# aptitude install postgrey | root@servername:~# aptitude install postgrey | ||
root@servername:~# mkdir /var/spool/postfix/postgrey | root@servername:~# mkdir /var/spool/postfix/postgrey | ||
− | root@servername:~# chown postgrey: | + | root@servername:~# chown postgrey:postgrey /var/spool/postfix/postgrey |
− | root@servername:~# | + | root@servername:~# chmod 750 /var/spool/postfix/postgrey |
root@servername:~# nano /etc/default/postgrey | root@servername:~# nano /etc/default/postgrey | ||
+ | root@servername:~# adduser postfix postgrey | ||
Change: | Change: | ||
Line 22: | Line 23: | ||
root@servername:~# service postgrey restart | root@servername:~# service postgrey restart | ||
+ | |||
+ | == Next step == | ||
+ | |||
+ | [[User:Paul/sandbox/Install_and_configure_SPF|Install and configure SPF]]. | ||
== External links == | == External links == |
Latest revision as of 22:55, 3 December 2021
WARNING: This article is in a user sandbox, indicating it is a rough draft, and as such, is likely incomplete, contains buggy and insecure configurations, and is subject to substantial and frequent changes.
Most of the commands in this article require root
privileges:
username@servername:~$ sudo -i
Install Postgrey
Install the Postgrey package, then configure it to use unix domain sockets:
root@servername:~# aptitude install postgrey root@servername:~# mkdir /var/spool/postfix/postgrey root@servername:~# chown postgrey:postgrey /var/spool/postfix/postgrey root@servername:~# chmod 750 /var/spool/postfix/postgrey root@servername:~# nano /etc/default/postgrey root@servername:~# adduser postfix postgrey
Change:
#POSTGREY_OPTS="--inet=10023"
Add:
POSTGREY_OPTS="--user=postgrey --group=postgrey --unix=/var/spool/postfix/postgrey/postgrey.sock"
root@servername:~# service postgrey restart
Next step
External links
A Mailserver on Ubuntu 12.04: Postfix, Dovecot, MySQL | Ex Ratione