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.