客户端smtp 设成b.com ,不成功时候的信息:
Jul 26 10:12:25 mail postfix/smtpd[2291]: connect from unknown[116.224.141.87]
Jul 26 10:12:26 mail postfix/smtpd[2291]: disconnect from unknown[116.224.141.87]
Jul 26 10:12:49 mail postfix/smtpd[2291]: connect from unknown[116.224.141.87]
Jul 26 10:12:49 mail postfix/smtpd[2291]: SSL_accept error from unknown[116.224.141.87]: lost connection
Jul 26 10:12:49 mail postfix/smtpd[2291]: lost connection after STARTTLS from unknown[116.224.141.87]
Jul 26 10:12:49 mail postfix/smtpd[2291]: disconnect from unknown[116.224.141.87]
Jul 26 10:12:49 mail postfix/smtpd[2304]: connect from unknown[116.224.141.87]
Jul 26 10:12:50 mail postfix/smtpd[2304]: SSL_accept error from unknown[116.224.141.87]: lost connection
Jul 26 10:12:50 mail postfix/smtpd[2304]: lost connection after STARTTLS from unknown[116.224.141.87]
Jul 26 10:12:50 mail postfix/smtpd[2304]: disconnect from unknown[116.224.141.87]
Jul 26 10:14:29 mail postfix/smtpd[2358]: connect from unknown[112.124.127.64]
Jul 26 10:14:29 mail postfix/smtpd[2358]: lost connection after AUTH from unknown[112.124.127.64]
Jul 26 10:14:29 mail postfix/smtpd[2358]: disconnect from unknown[112.124.127.64]
Jul 26 10:15:02 mail postfix/smtpd[2358]: connect from unknown[116.224.141.87]
Jul 26 10:15:02 mail postfix/smtpd[2358]: SSL_accept error from unknown[116.224.141.87]: lost connection
Jul 26 10:15:02 mail postfix/smtpd[2358]: lost connection after STARTTLS from unknown[116.224.141.87]
Jul 26 10:15:02 mail postfix/smtpd[2358]: disconnect from unknown[116.224.141.87]
Jul 26 10:15:02 mail postfix/smtpd[2377]: connect from unknown[116.224.141.87]
Jul 26 10:15:02 mail postfix/smtpd[2377]: SSL_accept error from unknown[116.224.141.87]: lost connection
Jul 26 10:15:02 mail postfix/smtpd[2377]: lost connection after STARTTLS from unknown[116.224.141.87]
Jul 26 10:15:02 mail postfix/smtpd[2377]: disconnect from unknown[116.224.141.87]
Jul 26 10:15:15 mail postfix/smtpd[2358]: connect from unknown[116.224.141.87]
Jul 26 10:15:15 mail postfix/smtpd[2358]: SSL_accept error from unknown[116.224.141.87]: lost connection
Jul 26 10:15:15 mail postfix/smtpd[2358]: lost connection after STARTTLS from unknown[116.224.141.87]
Jul 26 10:15:15 mail postfix/smtpd[2358]: disconnect from unknown[116.224.141.87]
Jul 26 10:15:15 mail postfix/smtpd[2377]: connect from unknown[116.224.141.87]
Jul 26 10:15:15 mail postfix/smtpd[2377]: SSL_accept error from unknown[116.224.141.87]: lost connection
Jul 26 10:15:15 mail postfix/smtpd[2377]: lost connection after STARTTLS from unknown[116.224.141.87]
Jul 26 10:15:15 mail postfix/smtpd[2377]: disconnect from unknown[116.224.141.87]


客户端smtp服务器,设成 a.com  成功时的信息

ul 26 10:17:14 mail postfix/trivial-rewrite[2441]: warning: do not list domain b.com in BOTH mydestination and virtual_mailbox_domains
Jul 26 10:17:14 mail postfix/smtpd[2430]: B89EFE8187: client=unknown[116.224.141.87], sasl_method=PLAIN, sasl_username=xielk@b.com
Jul 26 10:17:14 mail postfix/cleanup[2446]: B89EFE8187: message-id=<B5E1792C-A04F-418D-B03D-D6961FF96E93@b.com>
Jul 26 10:17:14 mail postfix/qmgr[19680]: B89EFE8187: from=<xielk@b.com>, size=585, nrcpt=1 (queue active)

补充一下;
telnet b.com 25

Connected to mail.b.com.
Escape character is '^]'.
220 mail.a.com ESMTP Postfix
ehlo 163.com
250-mail.cwyx.com
250-PIPELINING
250-SIZE 104857600
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

hostname -f 也是显示a.com 这个域名。

1, a.com b.com  的a,@txt记录都是指向相同的ip.
2,如果stmp 的服务器名称 填写具体的ip的时候。也不能认证成功。
    一定需要填写a.com  这个域名才能成功。

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):
- 使用的 Linux/BSD 发行版名称及版本号:
- 与您的问题相关的日志信息:
====


postifx 下面两个域。
1, a .com 可以直接发邮件
2,   b.com 不能发,在smtp_auth 这出错。

将 客户端的b.com 账户, stmp地址改成 a.com 之后可以发信。

问,怎么让postfix 验证不限制域名?


以下为 smtp_auth 配置


smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql/sender_login_maps.cf
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
smtpd_tls_CAfile = /etc/pki/tls/certs/iRedMail_CA.pem
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/pki/tls/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/pki/tls/private/iRedMail.key
smtpd_tls_loglevel = 0
smtpd_tls_security_level = may