Set Up Ubuntu-Server 6.10 As A Firewall/Gateway For Your Small Business Environment - Page 6
Now edit etc/postfix/header_checks. It should look like this:
chown postfix.postfix /var/spool/MailScanner/incoming
chown postfix.postfix /var/spool/MailScanner/quarantine
chown postfix.postfix /var/spool/MailScanner/spamassassin
Now edit /etc/MailScanner/MailScanner.conf and set the following lines as shown:
Run As User = postfix
Now configure sasl authentication.
mkdir -p /var/spool/postfix/var/run/saslauthd
Now we have to edit /etc/default/saslauthd. It should look like this:
# This needs to be uncommented before saslauthd will be run automatically START=yes PARAMS="-m /var/spool/postfix/var/run/saslauthd -r" # You must specify the authentication mechanisms you wish to use. # This defaults to "pam" for PAM support, but may also include # "shadow" or "sasldb", like this: # MECHANISMS="pam shadow" MECHANISMS="pam"