How to Connect HestiaCP with PowerMTA

My SMTP outgoing setup is working perfectly fine with PowerMTA, but I did an experiment by adding HestiaCP to manage the domains and emails, and it failed badly.

The main problem is that I previously added a private key for DKIM in PowerMTA, but Hestia issued its own DKIM. Instead of using my PowerMTA key, it is using its own via Exim. So, the DKIM is failing in Mail-Tester.

How can I solve this problem and make Hestia use my PowerMTA key instead of Exim’s?

The workflow I am trying to achieve is:

Send via Roundcube → Exim receives it → Exim sees the router → Hands it off to PowerMTA (port 2525) → PowerMTA signs it with the original key → PASS.

Just disable DKIM support for your mail domain in Hestia.

v-delete-mail-domain-dkim YourUser YourDomain
1 Like

Thanks, that might solve the issue initially, but is there a way to route its mail through PowerMTA instead of using Exim?

If Hestia is managing your mail domains, then no. Exim receives the mail and then forwards it to your SMTP relay, in this case, PowerMTA.

1 Like