[camel@ns1 BUILD]$ su
Password:
[root@ns1 BUILD]# rpm -Uvh postfix-2.0.20-0vl5.1sasl.i386.rpm
Preparing... ########################################### [100%]
@ 1:postfix ########################################### [100%]
Shutting down Postfix: [ OK ]
Starting Postfix: [ OK ]
[root@ns1 BUILD]# /usr/sbin/postfix check
[root@ns1 BUILD]# chgrp postdrop /var/spool/postfix/maildrop
[root@ns1 BUILD]# chgrp postdrop /var/spool/postfix/public
[root@ns1 BUILD]# /usr/sbin/postfix check
[root@ns1 BUILD]# ls -la /var/spool/postfix/
total 60
drwxr-xr-x 15 root root 4096 Apr 30 2006 ./
drwxr-xr-x 10 root root 4096 Sep 22 2010 ../
drwx------ 18 postfix postfix 4096 Apr 30 2006 active/
drwx------ 16 postfix postfix 4096 Apr 30 2006 bounce/
drwx------ 2 postfix postfix 4096 Apr 30 2006 corrupt/
drwx------ 16 postfix postfix 4096 Apr 30 2006 defer/
drwx------ 16 postfix postfix 4096 Apr 30 2006 deferred/
drwx------ 2 postfix postfix 4096 Apr 30 2006 flush/
drwx------ 2 postfix root 4096 Feb 7 2009 hold/
drwx------ 18 postfix postfix 4096 Apr 30 2006 incoming/
drwx-wx-wt 2 postfix postdrop 4096 Apr 30 2006 maildrop/
drwx------ 2 postfix postfix 4096 Apr 30 2006 pid/
drwx--x--- 2 postfix postfix 4096 Jul 10 19:26 private/
drwx--x--- 2 postfix postdrop 4096 Jul 10 19:26 public/
drwx------ 2 postfix postfix 4096 Apr 30 2006 saved/
[root@ns1 BUILD]# /usr/sbin/saslpasswd2 -u ns1.errorz.net -c camel
Password:
Again (for verification):
[root@ns1 BUILD]# /usr/sbin/sasldblistusers2
camel@ns1.errorz.net: userPassword
[root@ns1 BUILD]# vi /usr/lib/sasl2/smtpd.conf
pwcheck_method: auxprop
auxprop_plugin: sasldb
mech_list: cram-md5 digest-md5 plain login
Esc :wq
[root@ns1 BUILD]# chown -R root:postfix /etc/sasldb2
[root@ns1 BUILD]# chmod 640 /etc/sasldb2
[root@ns1 BUILD]# /etc/init.d/saslauthd restart
[root@ns1 BUILD]# vi /etc/postfix/main.cf
myhostname = ns1.errorz.net
mydomain = errorz.net
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain $mydomain
unknown_local_recipient_reject_code = 550
#unknown_local_recipient_reject_code = 450
mynetworks = 192.168.0.0/24, 127.0.0.0/8
relay_domains = $mydestination
alias_maps = hash:/etc/postfix/aliases
home_mailbox = Maildir/
smtpd_banner = $myhostname ESMTP unknown
#mail_spool_directory = /var/spool/mail
#mailbox_command = /some/where/procmail -a "$EXTENSION"
allow_percent_hack = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions =
@ permit_mynetworks,
@ permit_sasl_authenticated,
@ reject_unauth_destination
Esc :wq
[root@ns1 BUILD]# /etc/init.d/postfix restart