我希望的Postfixconfiguration是根据虚拟别名转发所有传入的邮件,并能够通过SMTP和TLS发送传出邮件。 发送已经工作,但转发不。
当我从[email protected]发送邮件到[email protected]它应该被转发回Gmail帐户。 但是,我没有收到Gmail中的邮件。 我不完全知道如何阅读日志,但似乎改写作品和邮件也被发送出去。
在/ var /日志/ maillog的
Jul 9 18:17:11 sXXXXXXXX postfix/postfix-script[17039]: starting the Postfix mail system Jul 9 18:17:12 sXXXXXXXX postfix/master[17040]: daemon started -- version 2.6.6, configuration /etc/postfix Jul 9 18:18:12 sXXXXXXXX postfix/smtpd[17061]: connect from mail-lb0-f169.google.com[209.85.217.169] Jul 9 18:18:12 sXXXXXXXX postfix/smtpd[17061]: F2C3543B8114: client=mail-lb0-f169.google.com[209.85.217.169] Jul 9 18:18:13 sXXXXXXXX postfix/cleanup[17066]: F2C3543B8114: message-id=<CAGRzetbJ85Ss5FdSn6g=HV5HrCO9=HnZTx1w+4qVfH-r0LfaOQ@mail.gmail.com> Jul 9 18:18:13 sXXXXXXXX postfix/qmgr[17043]: F2C3543B8114: from=<[email protected]>, size=1672, nrcpt=1 (queue active) Jul 9 18:18:13 sXXXXXXXX postfix/smtpd[17061]: disconnect from mail-lb0-f169.google.com[209.85.217.169] Jul 9 18:18:13 sXXXXXXXX postfix/smtp[17067]: F2C3543B8114: to=<[email protected]>, orig_to=<[email protected]>, relay=gmail-smtp-in.l.google.com[64.233.166.27]:25, delay=0.53, delays=0.11/0.05/0.16/0.21, dsn=2.0.0, status=sent (250 2.0.0 OK 1436458693 ew5si6226110wid.61 - gsmtp) Jul 9 18:18:13 sXXXXXXXX postfix/qmgr[17043]: F2C3543B8114: removed
/etc/postfix/main.cf中
# ... smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = smtpd_sasl_security_options = noanonymous smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination smtp_use_tls = yes smtp_tls_cert_file = /etc/postfix/certs/cert.pem smtp_tls_key_file = /etc/postfix/certs/cert_key.pem smtp_tls_CAfile = /etc/postfix/certs/cacert.pem smtpd_use_tls = yes smtpd_tls_cert_file = /etc/postfix/certs/cert.pem smtpd_tls_key_file = /etc/postfix/certs/cert_key.pem smtpd_tls_CAfile = /etc/postfix/certs/cacert.pem tls_random_source = dev:/dev/urandom
看起来你已经发送电子邮件与发件人和“最终”收件人是一样的,即您的发件人是[email protected]和收件人(之后别名)是[email protected]也。 基于这个事实,或许你的问题与这个知识库相关: 为什么我没有收到我通过转发或邮件列表发送给自己的邮件?
Gmail(和基于Gmail的IU Umail系统)有一个相当烦人的“function”,它不会显示你自己发送的电子邮件。 这会影响您通过邮件列表,谷歌组和电子邮件转发(例如SoC Linux帐户中的.forward文件)发送的电子邮件。 此function在此gmail支持页面中描述: 不接收来自组的电子邮件 。
从技术上讲,它不会显示你发送的邮件,当他们回到Gmail的相同的消息ID 。 邮件列表和.forward通常就是这种情况。 如果您正在尝试testing.forward ,则应从除了作为转发目标的gmail之外的帐户发送testing消息。