您好,我按照本指南安装 Postfix
我添加了 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:[email protected]"
有没有什么办法解决这一问题?
编辑
有时我会收到以下电子邮件:
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
<[email protected]>: 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; [email protected]
Arrival-Date: Fri, 29 May 2020 14:07:35 +0000 (UTC)
Final-Recipient: rfc822; [email protected]
Original-Recipient: rfc822;[email protected]
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 [email protected]
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 记录中。
答案1
从返回的电子邮件中可以理解,postfix 似乎通过 IPV6 连接发送电子邮件。您可以在 postfix 上关闭 IPV6,这样 MTA 就会通过 IPV4 发送电子邮件,您已经为其定义了所需的记录。
要编辑此选项,请转至:
/etc/postfix/main.cf
找到并将 inet_protocols 从 =all 更改为 =ipv4
inet_protocols = ipv4
重新启动 Postfix 服务器
/etc/init.d/postfix restart