|

楼主 |
发表于 2003-10-9 14:22:46
|
显示全部楼层
我是用 mandrake 9.1, postfix 2.0.6. 那我想將 postfix 設定成可以 sasl auth. 但因為 postfix2.x 是一定要用 sasl2 的. 我依照很多文章的方法去設定但都不成功! 還發現古怪的問題..
1. 裝了sasl2 rpms, 設定好了 main.cf 後, postfix 沒有反應, telnet localhost 25 會自動退走.
2. 把 main.cf 的 "smtpd_sasl_auth_enable = no" postfix 又回覆正常, 當然!這便把 postfix 還完成沒用 sasl.
3. 把 main.cf 的 "smtpd_sasl_auth_enable = yes", 再裝 sasl 1.5 的 RPMs, postfix 又可正常了! 就好像是 postfix2 是用 sasl 1.5 的, 但又不能進行認証!
以下我 post 出我的 main.cf 和當 smtpd_sasl_auth_enable = yes 和加了 SASL 1.5 RPMs 的 telnet 畫面給大家看... 請指教!!
--------
main.cf
--------
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
default_privs = nobody
alias_maps = hash:/etc/postfix/aliases
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail -Y -a $DOMAIN
debug_peer_level = 2
debugger_command =
PATH=/usr/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
delay_warning_time = 4
myhostname = mail.domain.com
myorigin = $mydomain
mydestination = $myhostname, $mydomain
#mynetworks_style = class
masquerade_domains = $mydomain
alias_database = hash:/etc/postfix/aliases
virtual_maps = hash:/etc/postfix/virtual
canonical_maps = hash:/etc/postfix/canonical
#server
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination,permit
smtpd_sasl_security_options = noanonymous
# smtpd_helo_restrictions = reject_maps_rbl
broken_sasl_auth_clients = yes
#client
#smtp_sasl_auth_enable = yes
best_mx_transport = local
message_size_limit = 51200000
----------
telnet 入個 mail server 可見
----------
220 mail.domain.com ESMTP Postfix
ehlo domain.com
250-mail.domain.com
250-PIPELINING
250-SIZE 51200000
250-VRFY
250-ETRN
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
----------
救命的!!!!!! |
|