Postfix SMTP 身份验证

Postfix SMTP 身份验证

我使用本指南为一家小型企业创建了邮件服务器:https://workaround.org/ispmail/wheezy。IMAP 运行正常,但我遇到了 SMTP 和经过身份验证的 SMTP 问题。当我使用电子邮件客户端(Inky、Airmail)时,我从 IMAP 连接中获取日志,但没有从 SMTP 获取任何日志。最奇怪的是,如果您在手机上使用我的蜂窝服务,它就可以正常工作……

我的 Postfix main.cf

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
dovecot_destination_recipient_limit = 1
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = webmail.voxel-it.com, voxel-it.com, localhost.voxel-it, localhost
myhostname = webmail.voxel-it.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = voxel-it.com
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_client_restrictions = reject_rbl_client sbl.spamhaus.org, reject_rbl_client     blackholes.easynet.nl, permit
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_helo_restrictions = permit_mynetworks, warn_if_reject reject_non_fqdn_hostname,     reject_invalid_hostname, permit
smtpd_recipient_restrictions = reject_unauth_pipelining, permit_mynetworks,     permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unknown_recipient_domain,     reject_unauth_destination, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = voxel-it.com
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_mynetworks, warn_if_reject reject_non_fqdn_sender,                       reject_unknown_sender_domain, reject_unauth_pipelining, permit_sasl_authenticated, permit
smtpd_tls_CAfile = /etc/ssl/certs/startssl-ca-bundle.pem
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/certs/mailserver.pem
smtpd_tls_key_file = /etc/ssl/certs/mailserver.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_transport = dovecot

有人和我遇到同样的问题https://workaround.org/ispmail/wheezy/authenticated-smtp/#comment-2995

答案1

将 permit_sasl_authenticated 添加到 smtpd_client_restrictions 并查看它是否有效。

相关内容