主题: postfix smtp 怎么不限限制域名?

==== 必填信息。没有填写将不予回复 ====
- 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

回复: postfix smtp 怎么不限限制域名?

你的邮件客户端使用的是指向这个服务器的 IP 或域名么?

回复: postfix smtp 怎么不限限制域名?

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

回复: postfix smtp 怎么不限限制域名?

补充一下;
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 这个域名。

回复: postfix smtp 怎么不限限制域名?

贴一下使用产生错误的邮件客户端设置时在服务器上 Postfix 日志文件里具体的错误信息吧。

回复: postfix smtp 怎么不限限制域名?

客户端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)

回复: postfix smtp 怎么不限限制域名?

xielk 写道:

ul 26 10:17:14 mail postfix/trivial-rewrite[2441]: warning: do not list domain b.com in BOTH mydestination and virtual_mailbox_domains

先解决这个错误吧。

邮件客户端具体是如何设置的?所有的设置。