|
#rpm -e fetchmailconf #rpm -e fetchmail #rpm -e postfix |
|
#rm -r -f /var/spool/postfix #rm -r -f /etc/postfix |
| $tar xvfz cyrus-sasl-2.1.12.tar.gz |
|
cd cyrus-sasl-2.1.12 $./configure --enable-login $make |
|
$su #make install |
|
#ln -s /usr/local/lib/sasl2 /usr/lib/sasl2 #ln -s /usr/local/lib/libsasl2.so.2 /usr/lib/libsasl2.so.2 |
|
tar xvfz postfix-2.0.7.tar.gz cd postfix-2.0.7 |
|
$make makefiles CCARGS="-DUSE_SASL_AUTH -I/usr/local/include/sasl" AUXLIBS="-L/usr/local/lib -lsasl2" $make |
|
#useradd postfix |
|
postfix:*:12345:12345:postfix:/no/where:/no/shell |
|
#groupadd postdrop |
|
postfix:*:12345: postdrop:*:54321: |
|
#make install |
|
myorigin = $myhostname inet_interfaces = all mydestination = $myhostname, localhost.$mydomain alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mail_spool_directory = /var/spool/mail mynetworks = 192.168.1.0/28, 127.0.0.0/8 broken_sasl_auth_clients = yes //OutlookExpress用 smtpd_sasl_auth_enable = yes smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject |
|
#saslpasswd2 username |
|
#chgrp postfix /etc/sasldb2 #chmod 640 /etc/sasldb2 |
|
pwcheck_method: auxprop |
|
#cp /etc/postfix/aliases /etc |
|
#newaliases |
|
#postfix start |
|
$telnet localhost smtp |