Page MenuHomePhabricator

Toolforge SMTP server constantly returns rate limit error
Closed, ResolvedPublicBUG REPORT

Description

For the iabot tool, the SMTP server constantly reports the tool as having sent too many emails and is subsequently being rate limited. The tool has yet to be able to successfully send a single email.

Event Timeline

Please provide the full SMTP logs.

2023-05-25 14:41:19: mod_fastcgi.c.487) FastCGI-stderr:PHP Fatal error: Uncaught PHPMailer\PHPMailer\Exception: The following From address failed: : MAIL FROM command failed,Our system has detected an unusual rate of messages originating from this\r
2023-05-25 14:41:19: mod_fastcgi.c.487) FastCGI-stderr:sender address. To protect our users from abuse this sender address has\r
2023-05-25 14:41:19: mod_fastcgi.c.487) FastCGI-stderr:been temporarily rate limited. Please try again later.\r
2023-05-25 14:41:19: mod_fastcgi.c.487) FastCGI-stderr:https://wikitech.wikimedia.org/wiki/Wikitech:Cloud_Services_Terms_of_use\r
2023-05-25 14:41:19: mod_fastcgi.c.487) FastCGI-stderr:,451,SMTP server error: MAIL FROM command failed Detail: Our system has detected an unusual rate of messages originating from this\r
2023-05-25 14:41:19: mod_fastcgi.c.487) FastCGI-stderr:sender address. To protect our users from abuse this sender address has\r
2023-05-25 14:41:19: mod_fastcgi.c.487) FastCGI-stderr:been temporarily rate limited. Please try again later.\r
2023-05-25 14:41:19: mod_fastcgi.c.487) FastCGI-stderr:https://wikitech.wikimedia.org/wiki/Wikitech:Cloud_Services_Terms_of_use\r
2023-05-25 14:41:19: mod_fastcgi.c.487) FastCGI-stderr: SMTP code: 451 in /data/project/iabot/master/vendor/phpmailer/phpmailer/src/PHPMailer.php:2030
2023-05-25 14:41:19: mod_fastcgi.c.487) FastCGI-stderr:Stack trace:
2023-05-25 14:41:19: mod_fastcgi.c.487) FastCGI-stderr:#0 /data/project/iabot/master/vendor/phpmailer/phpmailer/src/PHPMailer.php(1678): PHPMailer\PHPMailer\PHPMailer->smtpSend()
2023-05-25 14:41:19: mod_fastcgi.c.487) FastCGI-stderr:#1 /data/project/iabot/master/vendor/phpmailer/phpmailer/src/PHPMailer.php( in /data/project/iabot/master/vendor/phpmailer/phpmailer/src/PHPMailer.php on line 2030
2023-05-25 14:43:07: http-header-glue.c.1499) read() 9 13: Connection reset by peer
2023-05-25 14:43:07: gw_backend.c.2275) response not received, request sent: 982 on socket: unix:/var/run/lighttpd/php.socket.iabot-0 for /api.php?action=statistics&format=flat, closing connection
2023-05-25 15:09:16: http-header-glue.c.1499) read() 8 9: Connection reset by peer
2023-05-25 15:09:16: gw_backend.c.2275) response not received, request sent: 978 on socket: unix:/var/run/lighttpd/php.socket.iabot-1 for /api.php?action=statistics&format=flat, closing connection
2023-05-25 20:32:05: mod_fastcgi.c.487) FastCGI-stderr:PHP Fatal error: Maximum execution time of 30 seconds exceeded in /data/project/iabot/master/app/src/Core/APII.php on line 263
2023-05-26 04:06:42: mod_fastcgi.c.487) FastCGI-stderr:PHP Fatal error: Uncaught PHPMailer\PHPMailer\Exception: The following From address failed: : MAIL FROM command failed,Our system has detected an unusual rate of messages originating from this\r
2023-05-26 04:06:42: mod_fastcgi.c.487) FastCGI-stderr:sender address. To protect our users from abuse this sender address has\r
2023-05-26 04:06:42: mod_fastcgi.c.487) FastCGI-stderr:been temporarily rate limited. Please try again later.\r
2023-05-26 04:06:42: mod_fastcgi.c.487) FastCGI-stderr:https://wikitech.wikimedia.org/wiki/Wikitech:Cloud_Services_Terms_of_use\r
2023-05-26 04:06:42: mod_fastcgi.c.487) FastCGI-stderr:,451,SMTP server error: MAIL FROM command failed Detail: Our system has detected an unusual rate of messages originating from this\r
2023-05-26 04:06:42: mod_fastcgi.c.487) FastCGI-stderr:sender address. To protect our users from abuse this sender address has\r
2023-05-26 04:06:42: mod_fastcgi.c.487) FastCGI-stderr:been temporarily rate limited. Please try again later.\r
2023-05-26 04:06:42: mod_fastcgi.c.487) FastCGI-stderr:https://wikitech.wikimedia.org/wiki/Wikitech:Cloud_Services_Terms_of_use\r
2023-05-26 04:06:42: mod_fastcgi.c.487) FastCGI-stderr: SMTP code: 451 in /data/project/iabot/master/vendor/phpmailer/phpmailer/src/PHPMailer.php:2030
2023-05-26 04:06:42: mod_fastcgi.c.487) FastCGI-stderr:Stack trace:
2023-05-26 04:06:42: mod_fastcgi.c.487) FastCGI-stderr:#0 /data/project/iabot/master/vendor/phpmailer/phpmailer/src/PHPMailer.php(1678): PHPMailer\PHPMailer\PHPMailer->smtpSend()
2023-05-26 04:06:42: mod_fastcgi.c.487) FastCGI-stderr:#1 /data/project/iabot/master/vendor/phpmailer/phpmailer/src/PHPMailer.php( in /data/project/iabot/master/vendor/phpmailer/phpmailer/src/PHPMailer.php on line 2030
2023-05-26 04:06:58: mod_fastcgi.c.487) FastCGI-stderr:PHP Fatal error: Uncaught PHPMailer\PHPMailer\Exception: The following From address failed: : MAIL FROM command failed,Our system has detected an unusual rate of messages originating from this\r
2023-05-26 04:06:58: mod_fastcgi.c.487) FastCGI-stderr:sender address. To protect our users from abuse this sender address has\r
2023-05-26 04:06:58: mod_fastcgi.c.487) FastCGI-stderr:been temporarily rate limited. Please try again later.\r
2023-05-26 04:06:58: mod_fastcgi.c.487) FastCGI-stderr:https://wikitech.wikimedia.org/wiki/Wikitech:Cloud_Services_Terms_of_use\r
2023-05-26 04:06:58: mod_fastcgi.c.487) FastCGI-stderr:,451,SMTP server error: MAIL FROM command failed Detail: Our system has detected an unusual rate of messages originating from this\r
2023-05-26 04:06:58: mod_fastcgi.c.487) FastCGI-stderr:sender address. To protect our users from abuse this sender address has\r
2023-05-26 04:06:58: mod_fastcgi.c.487) FastCGI-stderr:been temporarily rate limited. Please try again later.\r
2023-05-26 04:06:58: mod_fastcgi.c.487) FastCGI-stderr:https://wikitech.wikimedia.org/wiki/Wikitech:Cloud_Services_Terms_of_use\r
2023-05-26 04:06:58: mod_fastcgi.c.487) FastCGI-stderr: SMTP code: 451 in /data/project/iabot/master/vendor/phpmailer/phpmailer/src/PHPMailer.php:2030
2023-05-26 04:06:58: mod_fastcgi.c.487) FastCGI-stderr:Stack trace:
2023-05-26 04:06:58: mod_fastcgi.c.487) FastCGI-stderr:#0 /data/project/iabot/master/vendor/phpmailer/phpmailer/src/PHPMailer.php(1678): PHPMailer\PHPMailer\PHPMailer->smtpSend()
2023-05-26 04:06:58: mod_fastcgi.c.487) FastCGI-stderr:#1 /data/project/iabot/master/vendor/phpmailer/phpmailer/src/PHPMailer.php( in /data/project/iabot/master/vendor/phpmailer/phpmailer/src/PHPMailer.php on line 2030

I've only been getting this response. From what I gather, I have not been able to send a single email, as I only get this error.

Change 935093 had a related patch set uploaded (by Majavah; author: Majavah):

[operations/puppet@production] P:toolforge: mailrelay: reject outbound emails without a sender

https://gerrit.wikimedia.org/r/935093