后配置-n

后配置-n

当我尝试通过 POP3 和 Postfix 发送邮件时,出现 NOQUEUE:reject:RCPT 错误(注意:IMAP 工作正常)。

Feb 21 06:57:04 r2d2 dovecot: pop3([email protected]): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Feb 21 06:57:05 r2d2 dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=67.85.57.155, lip=107.191.60.48, mpid=65868, TLS, session=<iwJKrZMPpABDVTmb>
Feb 21 06:57:05 r2d2 dovecot: pop3([email protected]): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Feb 21 06:58:06 r2d2 postfix/smtpd[65869]: connect from ool-4355399b.dyn.optonline.net[67.85.57.155]
Feb 21 06:58:07 r2d2 postfix/smtpd[65869]: NOQUEUE: reject: RCPT from ool-4355399b.dyn.optonline.net[67.85.57.155]: 554 5.7.1 <ool-4355399b.dyn.optonline.net[67.85.57.155]>: Client host rejected: Access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<Bradmini>
Feb 21 06:58:08 r2d2 postfix/smtpd[65869]: lost connection after RCPT from ool-4355399b.dyn.optonline.net[67.85.57.155]
Feb 21 06:58:08 r2d2 postfix/smtpd[65869]: disconnect from ool-4355399b.dyn.optonline.net[67.85.57.155]

SSL 和其他一切似乎都正常工作,只是出站 POP3 不会发送到 Gmail,我正在 Outlook 上测试,并且选择了端口 587 的 SSL

后配置-n

broken_sasl_auth_clients = yes
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 4
debug_peer_list = 127.0.0.1
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
html_directory = /usr/local/share/doc/postfix
inet_protocols = ipv4
mail_owner = postfix
mailman_destination_recipient_limit = 1
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
mydomain = ex-mailer.com
myhostname = r2d2.ex-mailer.com
mynetworks =
newaliases_path = /usr/local/bin/newaliases
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $virtual_mailbox_limit_maps
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/doc/postfix
relay_domains = proxy:mysql:/usr/local/etc/postfix/mysql_relay_domains_maps.cf list.zippy-mail.com
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_authorized_verp_clients = permit_sasl_authenticated
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_helo_restrictions = permit_sasl_authenticated
smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination
smtpd_relay_restrictions = permit_sasl_authenticated, defer_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_sasl_authenticated
smtpd_tls_CAfile = /etc/ssl/postfix/smtpd.pem
smtpd_tls_cert_file = /etc/ssl/postfix/smtpd.pem
smtpd_tls_key_file = /etc/ssl/postfix/smtpd.pem
smtpd_tls_loglevel = 0
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
soft_bounce = no
tls_random_source = dev:/dev/urandom
transport_maps = hash:/usr/local/etc/postfix/transport
unknown_local_recipient_reject_code = 550
vacation_destination_recipient_limit = 1
virtual_alias_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:125
virtual_mailbox_base = /usr/local/virtual
virtual_mailbox_domains = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 51200000
virtual_mailbox_limit_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_mailbox_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_maildir_limit_message = Sorry, this user has overdrawn their diskspace quota. Please try again later.
virtual_minimum_uid = 125
virtual_overquota_bounce = yes
virtual_transport = virtual
virtual_uid_maps = static:125

答案1

您的 Outlook 邮件客户端,如图所示: Outlook 身份验证

不是设置为使用 SASL 身份验证。Outlook 的“发送服务器”对话框可能不是自解释的:“发送邮件前登录到接收邮件服务器”意味着不是SASL 进行身份验证,但优先使用 POP。但是,您的 Postfix 设置需要 SASL:

smtpd_client_restrictions = permit_sasl_authenticated

从你的问题中看不出你想做什么。如果你真的想要 POP-before-SMTP,你需要运行一个守护进程(如 pop-before-smtp)来读取你的邮件日志并将 IP 地址添加到 postfix/smtpd 读取的 db 文件中,如下所示:

smtpd_client_restrictions = permit_sasl_authenticated, check_client_access hash:/var/lib/pop-before-smtp/pop.db

否则,只需选择“使用相同设置...”作为邮件客户端中的身份验证方法并使用 SASL。

相关内容