[root@ns1 root]# apt-get update
[root@ns1 root]# apt-get install cyrus-sasl cyrus-sasl-devel
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded
cyrus-sasl
The following NEW packages will be installed:
cyrus-sasl-devel
1 upgraded, 1 newly installed, 0 removed and 31 not upgraded.
Need to get 0B/783kB of archives.
After unpacking 1599kB of additional disk space will be used.
Committing changes...
Preparing... ########################################### [100%]
1:cyrus-sasl ########################################### [ 50%]
2:cyrus-sasl-devel ########################################### [100%]
Done.
[root@ns1 root]# cd /home/camel
[root@ns1 camel]# ls
lib/ Maildir/ postfix-2.0.20-0vl5.1sasl.i386.rpm public_html/ rpm/
[root@ns1 camel]# rpm -Uvh postfix-2.0.20-0vl5.1sasl.i386.rpm
Preparing... ########################################### [100%]
1:postfix ########################################### [100%]
Shutting down Postfix: [ OK ]
Starting Postfix: [ OK ]
[root@ns1 camel]# vi /etc/postfix/main.cf
#
inet_interfaces = all
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
mynetworks = 192.168.0.0/24, 127.0.0.0/8
smtpd_recipient_restrictions = permit_sasl_authenticated,
#permit_mynetworks,check_relay_domains,reject
smtpd_sasl_security_options = noanonymous,noplaintext
#
Esc :wq
[root@ns1 camel]# /usr/sbin/saslpasswd -c -u `/usr/sbin/postconf -h myhostname` camel
Password:
Again (for verification):
saslpasswd: generic failure
[root@ns1 camel]# /usr/sbin/sasldblistusers
user: camel realm: ns1.errorz.net mech: CRAM-MD5
user: camel realm: ns1.errorz.net mech: DIGEST-MD5
[root@ns1 camel]# chgrp postfix /etc/sasldb
[root@ns1 camel]# chmod 640 /etc/sasldb
[root@ns1 camel]# /usr/sbin/postfix reload
postfix/postfix-script: refreshing the Postfix mail system