I've installed on a new dedicated server debian 10, and then ispconfig. When I send emails, they are not signed with dkim. On another server (debian 9) it runs fine. An idea ?
DKIM signing is done by amavis or rspamd, depends which you have installed. Perhaps it is not running? Command Code: systemctl --state=failed shows services that fail to run. If that does not help, start with this: https://www.howtoforge.com/community/threads/please-read-before-posting.58408/ My signature has link to Tutorial on e-mail setup, it has text about DKIM.
Thanks. I ran the test : systemctl --state=failed 0 loaded units listed. Pass --all to see loaded but inactive units, too. To show all installed unit files use 'systemctl list-unit-files'. I send mails througth phpmailer. The code was running fine on my previous server (Debian 9, ispconfig). DKim check box is set too. DNS are right (tested). It seems that dkim isn't used sending an email. I've also tried to use dkim throught phpmailer Code: $this->m_mail->DKIM_domain = 'mail.xxxx.net'; $this->m_mail->DKIM_private = '/var/lib/amavis/dkim/xxxx.net.private'; $this->m_mail->DKIM_selector = 'default'; $this->m_mail->DKIM_passphrase = ''; $this->m_mail->DKIM_identity = $this->m_mail->From;
See https://www.howtoforge.com/community/threads/dkim-working-from-webmail-but-not-from-website.86715/