由 iceman » 週一 12月 02, 2002 10:30 pm
我telnet是這樣:
--------------------------------------------------------------------------------------
250-PIPELINING
250-SIZE 51200000
250-VRFY
250-ETRN
250-AUTH LOGIN PLAIN CRAM-MD5 DIGEST-MD5
250-AUTH=LOGIN PLAIN CRAM-MD5 DIGEST-MD5
250-XVERP
250 8BITMIME
--------------------------------------------------------------------------------------
說我的板本,就.............................有點好笑
我本身用stable的,但是莊postfix的時侯就用testing(因我見stable板要強泊莊一些如postfix-ldap,postfix-XXX........等等,而testing就不用)以下是我的莊的
------------------------------------------------------------------------------------
libauthen-sasl 0.02-1
libsasl2 2.1.2-2
libsasl2-degestmd5-plain 2.1.2-2
libsasl2-modules-plain 2.1.2-2
libsasl7 1.5.27-3.3
sasl2-bin 2.1.2-2
postfix 1.1.11.0-3
postfix-tls 1.1.11.0-3
-------------------------------------------------------------------------------------
我在/etc/postfix/sasl/smtpd.con是這樣
-------------------------------------------------------------------------------------
pwcheck_method: saslauthd
-------------------------------------------------------------------------------------
master.cf也一定要no chroot(即使是copy了passwd&shadow落/var/spool/postfix/etc/裹)
需然我也見到有好多網站,教copy了就可chroot,但總之我這邊一定要no chroot才行
還有我的/etc/default/saslauthd,如設shadow,它會正常
但如設sasldb,直頭連saslauthd也起動不了,如設pam,它不需要默碼,就可寄信.......
但在/etc/pam.d/加一個叫postfix的檔,就可正常要(pam)認証才可寄信,我的/etc/pam.d/postfix如下
--------------------------------------------------------------------------------------
auth required pam_unix.so audit
account required pam_unix.so audit
password required pam_unix.so audit
session required pam_unix.so
--------------------------------------------------------------------------------------
還有每當我postfix reload,在/var/log/auth就會見到
--------------------------------------------------------------------------------------
postfix/smtpd[31144]: OTP unavailable because can't read/write key database /etc/opiekeys: No such file or directory
--------------------------------------------------------------------------------------
但還是可以正常的認証才寄信的