Difference between revisions of "User:Paul/sandbox/Install Postgrey"

From UNPM.org Wiki
Jump to navigation Jump to search
(Created page with "'''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...")
 
Line 22: Line 22:
  
 
  root@servername:~# service postgrey restart
 
  root@servername:~# service postgrey restart
 +
 +
[[category:Mail server]][[Category:Fully-functional mail server]]

Revision as of 23:57, 21 May 2014

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 /bin/bash

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:root /var/spool/postfix/postgrey
root@servername:~# usermod -G postgrey postfix
root@servername:~# nano /etc/default/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