后缀正在发送错误的域的邮件

我设法设置了一个简单的邮件服务器,可以在每个级别上工作,但有一个例外:当我将电子邮件发送到外部电子邮件地址时,接收者将其视为来自[email protected](这是字面意思出现“example.com”的域名

邮件服务器的设置是这样的:postfix + dovecot + squirrelmail(带有sasl):mydomain.com(它不是字面意思的域名)。 我已经为域名等设置了MXlogging……线下是我可以从这个邮件服务器发送邮件,如果有人特意将它发送到我的邮件服务器上的一个电子邮件地址,我可以收到邮件。

现在我已经设置了/etc/postfix/main.conf文件,如下所示:

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no append_dot_mydomain = no readme_directory = no smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = mydomain.com smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination smtpd_sasl_security_options = noanonymous smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache myhostname = xxxxx.xxx.xxx.xxx alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mydomain = mydomain.com myorigin = /etc/mailname (in /etc/mailname I have set the mailname to mydomain.com ) mydestination = mydomain.com, xxxxx.xxx.xxx.xxx, localhost.xxx.xxx.xxx, localhost relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all 

我在这里错过了什么?

确保检查squirrelmailconfiguration,有时问题可能在那里。

<bot>窃取评论并将其发送到地址</ bot>

这是Squirrelmail的问题,因为默认域错误。 要解决这个问题,我必须用configuration工具config/conf.pl重新configurationsquirrelmail。

  • select2.服务器设置
  • select1.域
  • example.com更改为mydomain.com

这个configuration将被用作默认域。

参考文献: Squirrelmail文档