我有以下几点:
postfix-2.10.1-6.el7.x86_64 cyrus-sasl-lib-2.1.26-17.el7.x86_64 cyrus-sasl-plain-2.1.26-17.el7.x86_64 cyrus-sasl-2.1.26-17.el7.x86_64
我的postconf -n是:
alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 html_directory = no inet_interfaces = all inet_protocols = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES relayhost = smtp.dynect.net:25 sample_directory = /usr/share/doc/postfix-2.10.1/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd unknown_local_recipient_reject_code = 550
我的/ etc / sysconfig / saslauthd有:
SOCKETDIR=/run/saslauthd MECH=pam FLAGS=
我的/etc/sasl2/smtpd.conf有:
pwcheck_method: saslauthd mech_list: plain login
当我尝试从远程服务器login时,出现以下错误:
telnet 10.65.60.23 25 Trying 10.65.60.23... Connected to 10.65.60.23. Escape character is '^]'. 220 jira.radwarecloud.com ESMTP Postfix EHLO local.domain.name 250-jira.radwarecloud.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN auth login 503 5.5.1 Error: authentication not enabled
我在这里错过了什么? 谢谢! 埃拉德。
要通过smtpd 接收邮件时启用SASL,您需要input此参数
smtpd_sasl_auth_enable = yes
要通过smtp 发送邮件时启用SASL,您需要input此参数
smtp_sasl_auth_enable = yes
在你上面的postconf输出中,你只能把smtp_sasl_auth_enable而不是smtpd_sasl_auth_enable 。 这就是为什么后缀抱怨错误
错误:validation未启用
AUTH不是基本SMTP的一部分,而是ESMTP的一部分。 因此,为了使用AUTH,您需要使用EHLO而不是HELO启动SMTP会话。
chown -R saslauth:saslauth / var / run / saslauthd /