1. Problem
  2. Cause
  3. Solution
  4. Related stuff

Problem

When you have enabled DKIM signing of outgoing mails on your Plesk server, you may have trouble delivering system messages to certain providers. Especially Outlook/Live and ProtonMail can send those messages straight to the spam folder.

Cause

Every mail that is not sent using the server’s SMTP but rather the mail command or PHP mail() function is not signed by default. The mail daemon does actually attempt to sign them but can’t find the related account and thus cannot load the domainkey for the intended From address.

Solution

The fix is very simple: create a mail account for the user that is sending those mails, most likely root, on the hostname of the server. So the email address becomes root@servername.tld.

And make sure DKIM signing is enabled in Domains > servername.tld > Mail Settings.

That’s all!

Categories: Code

Leave a Reply

Your email address will not be published. Required fields are marked *