• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue phpmail () stopped work after upgrade to 18.0.42

victorjqv

New Pleskian
Hi,

After upgrading Plesk to 18.0.42 phpmail() stopped working on all my websites.
I had created a script for testing phpmail and If I try to execute this script via web - the script get done but it doesn't send mail.
And logs in maillog.
Code:
2022-02-06 15:04:40    postfix/qmgr[2614]    40AFD158037D: removed
2022-02-06 15:04:40    postfix/pipe[2756]    40AFD158037D: to=<[email protected]>, relay=plesk_virtual, delay=0.09, delays=0/0.02/0/0.07, dsn=2.0.0, status=sent (delivered via plesk_virtual service)
2022-02-06 15:04:40    postfix-local[2757]    40AFD158037D: Unknown user: [email protected]
2022-02-06 15:04:40    postfix-local[2757]    cannot chdir to mailname dir nuevosresidentes.com_b5743i0cm0e: No such file or directory
2022-02-06 15:04:40    postfix-local[2757]    40AFD158037D: dmarc: stderr: PASS
2022-02-06 15:04:40    dmarc[2759]    40AFD158037D: SPF record was not found in Authentication-Results
2022-02-06 15:04:40    postfix-local[2757]    40AFD158037D: dk_check: stderr: PASS
2022-02-06 15:04:40    dk_check[2758]    40AFD158037D: DKIM Feed: No signature
2022-02-06 15:04:40    postfix-local[2757]    40AFD158037D: from=<MAILER-DAEMON>, to=<[email protected]>, dirname=/var/qmail/mailnames
2022-02-06 15:04:40    postfix/qmgr[2614]    40AFD158037D: from=<>, size=3210, nrcpt=1 (queue active)
2022-02-06 15:04:40    postfix/qmgr[2614]    E49F3158037C: removed
2022-02-06 15:04:40    postfix/bounce[2755]    E49F3158037C: sender non-delivery notification: 40AFD158037D
2022-02-06 15:04:40    postfix/cleanup[2749]    40AFD158037D: message-id=<[email protected]>
2022-02-06 15:04:40    postfix/smtp[2753]    E49F3158037C: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[142.250.27.27]:25, delay=0.34, delays=0.05/0.02/0.09/0.18, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[142.250.27.27] said: 550-5.7.1 [185.197.195.164] The IP you're using to send mail is not authorized 550-5.7.1 to send email directly to our servers. Please use the SMTP relay at 550-5.7.1 your service provider instead. Learn more at 550 5.7.1 https://support.google.com/mail/?p=NotAuthorizedError bx1-20020a0564020b4100b0041295c9096asi6821510edb.20 - gsmtp (in reply to end of DATA command))
2022-02-06 15:04:39    postfix/qmgr[2614]    E49F3158037C: from=<[email protected]>, size=396, nrcpt=1 (queue active)
2022-02-06 15:04:39    postfix/cleanup[2749]    E49F3158037C: message-id=<[email protected]>
2022-02-06 15:04:39    postfix/pickup[2613]    E49F3158037C: uid=10000 from=<[email protected]>
2022-02-06 15:04:39    plesk-sendmail[2741]    S2740: check-quota: stderr: SKIP
2022-02-06 15:04:39    plesk-sendmail[2741]    S2740: add-from: stderr: SKIP
2022-02-06 15:04:39    plesk-sendmail[2740]    S2740: from=<[email protected]> to=<[email protected]>
I tried with different PHP versions - same.
OS: CentOS Linux 7.9.2009 (Core)
Product: Plesk Obsidian 18.0.42

Please can anybody help me?
Thank you!!
 
This likely has nothing to do with the Plesk update, but rather with the fact that your servers IP address got blocked by Google. It states that clearly in the mail log response. See below.

2022-02-06 15:04:40 postfix/smtp[2753] E49F3158037C: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[142.250.27.27]:25, delay=0.34, delays=0.05/0.02/0.09/0.18, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[142.250.27.27] said: 550-5.7.1 [185.197.195.164] The IP you're using to send mail is not authorized 550-5.7.1 to send email directly to our servers. Please use the SMTP relay at 550-5.7.1 your service provider instead. Learn more at 550 5.7.1 'The IP you're using to send email is not authorized...' - Gmail Help bx1-20020a0564020b4100b0041295c9096asi6821510edb.20 - gsmtp (in reply to end of DATA command))

You can find more information on 'The IP you're using to send email is not authorized...' - Gmail Help
 
Last edited:
Back
Top