Debian

後綴 SMTP 身份驗證

  • September 29, 2014

我使用本指南為小型企業創建了一個郵件伺服器:https ://workaround.org/ispmail/wheezy 。IMAP 執行良好,但我遇到了 SMTP 和 Authenticated SMTP 的問題。當我使用電子郵件客戶端(Inky、Airmail)時,我從 IMAP 連接獲得日誌,但沒有從 SMTP 獲得任何日誌。最奇怪的是,如果你在手機上使用我的手機服務,它就可以工作……

我的後綴 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

將 permit_sasl_authenticated 添加到 smtpd_client_restrictions 並查看它是否有效。

引用自:https://serverfault.com/questions/632007