|
|
采用postfix+cyrus sasl 进行smtp认证,总是没办法运作起来。
在/var/log/mail/errors中提示:postfix/smtpd[10881]: fatal: no SASL authentication mechanisms
main.cf 内容如下:
#================================================
# These are changed by postfix install script
readme_directory = /usr/share/doc/postfix-2.1.4/README_FILES
sample_directory = /usr/share/doc/postfix-2.1.4/samples
html_directory = /usr/share/doc/postfix-2.1.4/html
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
command_directory = /usr/sbin
manpage_directory = /usr/share/man
daemon_directory = /usr/lib/postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
# User configurable parameters
mynetworks_style = host
delay_warning_time = 4h
smtpd_banner = $mydomain ESMTP $mail_name
unknown_local_recipient_reject_code = 450
smtp-filter_destination_concurrency_limit = 2
lmtp-filter_destination_concurrency_limit = 2
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
myhostname = mail.mydomain.com
mydomain=mydomain.com
mydestination = $myhostname, localhost.$mydomain, $mydomain
virtual_maps = hash:/etc/postfix/virtual
canonical_maps = hash:/etc/postfix/canonical
myorigin = mydomain.com
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
#Enable sasl authentication smtp
smtpd_sasl_application_name = smtpd
smtpd_delay_reject= yes
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients= yes
smtp_sasl_auth_enable = yes
#把下面这一行注释以后postfix收发邮件正常,但是smtp认证就没了
smtpd_sasl_auth_enable = yes
#=====================end of main.cf
# /usr/lib/sasl2/smtpd.conf内容:
pwcheck_method: saslauthd
看了本版面的所有文章,也在google上搜索了很久,一直不得其解;
希望哪位高手能帮我一下!!谢谢 |
|