• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Issue Email sending failed on command line

FarazK

New Pleskian
On my Linux Plesk Obsidian 18.0.28 I am running following simple command from Linux command line to send email to my Gmail

echo "Testing email from command line" | mail -s "Test Mail" [email protected]

When I run above command the email does not go out and this I get following error in /var/log/maillog

Apr 10 16:23:53 vps0 postfix/smtp[5200]: EF6353B0: to=<[email protected]>, relay=alt1.gmail-smtp-in.l.google.com[64.233.186.26]:25, delay=3.2, delays=0.04/0.04/2.4/0.74, dsn=4.7.0, status=deferred (host alt1.gmail-smtp-in.l.google.com[64.233.186.26] said: 421-4.7.0 This message does not have authentication information or fails to pass 421-4.7.0 authentication checks. To best protect our users from spam, the 421-4.7.0 message has been blocked. Please visit 421-4.7.0 Prevent mail to Gmail users from being blocked or sent to spam - Gmail Help for more 421 4.7.0 information.

I tried to use sSMTP utility and configured authentication in /etc/ssmtp/ssmtp.conf file which starts sending email from command line, but then Postfix gets corrupted and I loose the 'Mail' icon from 'Tools & Settings' and I have to reinstall Postfix.

If I were to configure any authentication information directly into Postfix configuration then it may clash with Plesk again...

How can I setup emails on Plesk Linux server to work properly so it can be sent from command line with authentication.
 
SPF is a DNS record.

DKIM is a DNS + Email header records. Unless you are sending email using SMTP, this record will not added to email header
 
Back
Top