• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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