Ubuntu

Ubuntu 16.04 Postfix 工作,但電子郵件進入垃圾郵件

  • May 29, 2020

您好,我按照本指南安裝 Postfix

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-18-04

我添加了 SPF、dmarc 和 DKIM 我遵循 dkim 的本指南https://help.ubuntu.com/community/Postfix/DKIM

但仍然會發送電子郵件到垃圾郵件。

驗證:

dig +short txt muhammadumerfarooq.me

"google-site-verification=L6ZS4-VgKMcG1cGygBfywF84DI-ANF4g6rrzninNbsI"
"-----BEGIN RSA PRIVATE KEY-----\010MIICXQIBAAKBgQDW25bTkpFlqxFhUG1kgTtSVGq0jloWB0rN7iNdXy/6OHZIUvmm\01040cZkqCn+AuiOeKYR68uA/wRabS2z3TkX2Xm25y4XArbc7LzRDg4M" "Eo79bm+q/Hr\010RBfgkvKs7namKBP7krdXNDg0Das14+DQ5hNlKgyyfeH5ZHXsfli64zJnwwIDAQAB\010AoGBAKeWE+jm074HVsEe6JSSMGEhMzGuLxorie9iJfd4fYWgcLIs9klz0UtjESiy\0100vAwUkwQ" "7dToir5SQwCshDJ1LpcarXlHTTt+wszEzvQsML8uv6HtfMLI8u3q9g0D\010Vx266tK5CYUUV4JBJP1/a/CfUvaNwcG9LNHs5ECpUqE58t5xAkEA9whbib14P9of\0104iKIV3Q32+4ABPDTenbZMG7LXtFz" "1hktNDUMTV+KIwb3WTc4e4DO3U2wlks48/15\010arRqW6up/wJBAN6oPBCt/P0l3Iedv/olDkUC0c60VCAt1wxG9rKw1wD6KrpQlRdc\010cRoxBszhn/jaQKOVadD/+Yg/aRAUZr35Gj0CQQCDvEQ8dvra" "ajLYf/vfT02+jfQa\010rmbIhvqZlmwDm4S/ZtuxXJy74jgjJ8LeI9GOIwmuAJEsBN9RVhnaqm2Rh0D3AkAq\010tKXgpR5zB4IG2PDrb5QPFH1dYiUIjwJCLpI+r8BtRY5QcghGlMp0tZaSUWw3dNUV\010CyF" "intYjldX26ZLTOSYZAkBeaZwaCPT/Y/sMf0iVGhxbwcn8DJmTLMW6uLtzdWyG\010NWHaANKPwNqsl8426ZZ27YPtPUJpaFxTBy5mE2K+UXSc\010-----END RSA PRIVATE KEY-----"
"v=spf1 include:_spf.google.com ~all"
"v=spf1 include:_mailcust.gandi.net ?all"


dig +short txt _dmarc.muhammadumerfarooq.me

"v=DMARC1;p=quarantine;pct=100;v=DMARC1;p=reject;pct=50;v=DMARC1;p=none;rua=mailto:contact@muhammadumerfarooq.me"

有沒有什麼辦法解決這一問題?

編輯

有時電子郵件會通過以下輸出返回給我:

This is the mail system at host server.muhammadumerfarooq.me.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                  The mail system

<mumerfarooqlablnet01@gmail.com>: host
   gmail-smtp-in.l.google.com[2607:f8b0:400e:c07::1b] said: 550-5.7.1
   [2607:f130:0:d7::1e2] Our system has detected that this message does
   550-5.7.1 not meet IPv6 sending guidelines regarding PTR records and
   550-5.7.1 authentication. Please review 550-5.7.1
   https://support.google.com/mail/?p=IPv6AuthError for more information 550
   5.7.1 . 11si7555041plk.101 - gsmtp (in reply to end of DATA command)
Reporting-MTA: dns; server.muhammadumerfarooq.me
X-Postfix-Queue-ID: 69E01A0F92
X-Postfix-Sender: rfc822; www-data@muhammadumerfarooq.me
Arrival-Date: Fri, 29 May 2020 14:07:35 +0000 (UTC)

Final-Recipient: rfc822; mumerfarooqlablnet01@gmail.com
Original-Recipient: rfc822;mumerfarooqlablnet01@gmail.com
Action: failed
Status: 5.7.1
Remote-MTA: dns; gmail-smtp-in.l.google.com
Diagnostic-Code: smtp; 550-5.7.1 [2607:f130:0:d7::1e2] Our system has detected
   that this message does 550-5.7.1 not meet IPv6 sending guidelines regarding
   PTR records and 550-5.7.1 authentication. Please review 550-5.7.1
   https://support.google.com/mail/?p=IPv6AuthError for more information 550
   5.7.1 . 11si7555041plk.101 - gsmtp
Subject [Being Learning] Password Reset
From    WordPress
To  mumerfarooqlablnet01@gmail.com
Date    Today 19:07
Someone has requested a password reset for the following account:

Site Name: Being Learning

Username: lablnet

If this was a mistake, just ignore this email and nothing will happen.

To reset your password, visit the following address:

https://beinglearning.tech/wp-login.php?action=rp&key=PrkZ2f4JudxRz5PH5ikw&login=lablnet

即使我將 IPv6 添加到 DNS AAAA 記錄中。

從返回的電子郵件中了解到,似乎後綴正在通過 IPV6 連接發送電子郵件。您可以在 postfix 上關閉 IPV6,因此 MTA 將通過您已經為其定義所需記錄的 IPV4 發送電子郵件。

要編輯此選項,請轉到:

/etc/postfix/main.cf

查找並更改inet_protocols 從=all 到=ipv4

inet_protocols = ipv4

重啟你的 Postfix 伺服器

/etc/init.d/postfix restart

引用自:https://serverfault.com/questions/1019179