【问题标题】:postfix sasl send from different from addresspostfix sasl 从不同的地址发送
【发布时间】:2018-11-11 12:36:46
【问题描述】:


我有一个带有 sasl auth 的工作后缀服务器,只要我在发件人字段中使用属于我用于 sasl_auth 的用户的电子邮件地址,它就可以完美地工作。 但是,如果我想从与 sasl_username 中使用的电子邮件不同的电子邮件发送,则会在日志中收到以下错误:

Client host rejected: Server configuration error (in reply to RCPT TO command))

我想要的是让 Postfix 允许来自 rcpt 中任何地址的邮件到字段,但仍然启用身份验证机制。
我该怎么做?
我的 postconf -n 的输出:

[root@mailout /]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
compatibility_level = 2
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = ipv4
mailbox_size_limit = 0
mydestination = mailout.domain.com, mailout.domain.com, localhost.domain.com, , localhost
myhostname = mailout.domain.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 10.1.1.5
myorigin = /etc/mailname
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_recipient_restrictions = permit_mynetworks permit_inet_interfaces permit_sasl_authenticated
smtpd_reject_unlisted_sender = no
smtpd_sasl_auth_enable = yes
smtpd_sender_restrictions =
smtpd_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtpd_tls_cert_file = /etc/ssl/certs/wildcard.crt
smtpd_tls_key_file = /etc/ssl/private/wildcard.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
smtputf8_autodetect_classes = sendmail, verify

【问题讨论】:

    标签: postfix sasl


    【解决方案1】:

    您需要在 smtpd_sender_restrictions 或 smtpd_relay_restrictions 中允许 sasl 身份验证。

    smtpd_sender_restrictions = permit_sasl_authenticated

    可能需要的特定限制不止于此,但应该可以解决您的问题。

    【讨论】:

      猜你喜欢
      • 2020-06-02
      • 1970-01-01
      • 2012-06-26
      • 1970-01-01
      • 2015-09-02
      • 1970-01-01
      • 1970-01-01
      • 2014-07-02
      • 1970-01-01
      相关资源
      最近更新 更多