从 wordpress 记录邮件/垃圾邮件

时间:2021-06-17 15:12:33

标签: wordpress phpmailer msmtp

下午好

我正在尝试从我的一个 Wordpress 网站中找出一些垃圾邮件的来源。 我可以使用 rspamd 仪表板确定它来自哪个网站,并且在一些垃圾邮件通过后收紧了过滤器。

我开始记录发送邮件时访问站点的 IP 地址。我同时使用了 phpmailer_init 钩子和 wp_mail 钩子,但不知何故垃圾邮件不会通过其中任何一个。起初我以为它使用联系表作为弱点,但是当我通过联系表输入消息时,它确实通过了这些钩子。此特定站点使用带有 reCaptcha v3 的联系表 7。

如果 msmtp 在上述 wordpress 钩子中不可用,我如何在执行时记录?

这是我的一些 php-fpm 日志

172.0.3.214 -  17/Jun/2021:17:00:19 +0200 "POST /wp-content/plugins/google-site-kit/third-party/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/table.php" 500
msmtp: the server did not accept the mail
msmtp: server message: 550 Detected as spam
msmtp: could not send mail (account default from /etc/msmtprc)
172.0.3.214 -  17/Jun/2021:17:00:44 +0200 "POST /wp-content/plugins/google-site-kit/third-party/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/table.php" 500
172.0.3.214 -  17/Jun/2021:17:01:08 +0200 "POST /wp-admin/admin-ajax.php" 200
msmtp: the server did not accept the mail
msmtp: server message: 550 Detected as spam
msmtp: could not send mail (account default from /etc/msmtprc)
172.0.3.214 -  17/Jun/2021:17:03:06 +0200 "POST /wp-content/plugins/google-site-kit/third-party/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/table.php" 500
172.0.3.214 -  17/Jun/2021:17:03:09 +0200 "POST /wp-admin/admin-ajax.php" 200
msmtp: the server did not accept the mail
msmtp: server message: 550 Detected as spam
msmtp: could not send mail (account default from /etc/msmtprc)
172.0.3.214 -  17/Jun/2021:17:03:20 +0200 "POST /wp-content/plugins/google-site-kit/third-party/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/table.php" 500
msmtp: the server did not accept the mail
msmtp: server message: 550 Detected as spam
msmtp: could not send mail (account default from /etc/msmtprc)
172.0.3.214 -  17/Jun/2021:17:04:28 +0200 "POST /wp-content/plugins/google-site-kit/third-party/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/table.php" 500

和nginx同时出现

ip1 - - [17/Jun/2021:14:59:08 +0000] "POST /wp-admin/admin-ajax.php HTTP/1.1" 200 58 "https://example.com/wp-admin/plugins.php?plugin_status=all&paged=1&s" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36" "ip1"
2021/06/17 15:00:02 [warn] 7#7: *133867 a client request body is buffered to a temporary file /etc/nginx/client_body_temp/0000021094, client: ip2, server: _, request: "POST /wp-content/plugins/google-site-kit/third-party/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/table.php HTTP/1.1", host: "example.com"
ip2 - - [17/Jun/2021:15:00:04 +0000] "POST /wp-content/plugins/google-site-kit/third-party/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/table.php HTTP/1.1" 500 71769 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0" "ip2"
2021/06/17 15:00:19 [warn] 7#7: *133869 a client request body is buffered to a temporary file /etc/nginx/client_body_temp/0000021095, client: ip3, server: _, request: "POST /wp-content/plugins/google-site-kit/third-party/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/table.php HTTP/1.1", host: "example.com"
ip3 - - [17/Jun/2021:15:00:21 +0000] "POST /wp-content/plugins/google-site-kit/third-party/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/table.php HTTP/1.1" 500 71769 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0" "ip3"
ip4 - - [17/Jun/2021:15:00:46 +0000] "POST /wp-content/plugins/google-site-kit/third-party/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/table.php HTTP/1.1" 500 71769 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0" "ip4"
ip1 - - [17/Jun/2021:15:01:09 +0000] "POST /wp-admin/admin-ajax.php HTTP/1.1" 200 58 "https://example.com/wp-admin/plugins.php?plugin_status=all&paged=1&s" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36" "ip1"
2021/06/17 15:03:06 [warn] 7#7: *133875 a client request body is buffered to a temporary file /etc/nginx/client_body_temp/0000021096, client: ip5, server: _, request: "POST /wp-content/plugins/google-site-kit/third-party/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/table.php HTTP/1.1", host: "example.com"
ip5 - - [17/Jun/2021:15:03:09 +0000] "POST /wp-content/plugins/google-site-kit/third-party/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/table.php HTTP/1.1" 500 71769 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0" "ip5"
ip1 - - [17/Jun/2021:15:03:10 +0000] "POST /wp-admin/admin-ajax.php HTTP/1.1" 200 58 "https://example.com/wp-admin/plugins.php?plugin_status=all&paged=1&s" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36" "ip1"
ip6 - - [17/Jun/2021:15:03:14 +0000] "HEAD / HTTP/1.1" 301 0 "https://www.example.com/" "Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)" "ip6"
ip6 - - [17/Jun/2021:15:03:14 +0000] "HEAD / HTTP/1.1" 200 0 "https://www.example.com/" "Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)" "ip6"
ip4 - - [17/Jun/2021:15:03:22 +0000] "POST /wp-content/plugins/google-site-kit/third-party/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/table.php HTTP/1.1" 500 71769 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0" "ip4"
2021/06/17 15:04:28 [warn] 7#7: *133883 a client request body is buffered to a temporary file /etc/nginx/client_body_temp/0000021097, client: 141.98.235.191, server: _, request: "POST /wp-content/plugins/google-site-kit/third-party/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/table.php HTTP/1.1", host: "example.com"

0 个答案:

没有答案
相关问题