SMTP with Mailgun on Rainloop

I have installed WordPress on my CyberPanel. I also managed to get Mailgun to work with my WordPress smtp plugin, and can successfully send email. Testing with DKIM Test(DKIM Test - DKIM Verify - DKIM Validator) also yielded a “pass” on all the categories.

However, I also want to be able to send and receive emails using Rainloop. This is the part that is giving me problems. I added the Mailgun smtp account to the smtp host in CyberPanel. When I test it using the DKIM Test, the DKIM stage failed, saying there is “no key”. I would like to say that email can still be sent, but always end up in the spam because the DKIM signature is not valid due to the above reason.

What more strange is that if I delete the Mailgun smtp host, Rainloop is still able to send email. It seems to me like the smtp host in CyberPanel doesn’t work.

Can anyone provide me some guidance?

I have the same isshue.
On SMTP ports are locked,
And you need to use 3rd party SMTP.

And Mailgun Rainloop also does not send emails using Mailgun SMPT.

Maybe problem is with DNS records for root domain.

Can anyone assist?
Thank you in advance!

I found this article it helped me:

And also you need to set the following in your file:

# set the relayhost to use 587 port of mailgun:
relayhost = []:587
# set the authentication using static method:
smtp_sasl_password_maps =
# you can get the smtp authentication from Sending >> Domain Settings >> Select Domain >> SMTP Credentials
# set sasl authentication on
smtp_sasl_auth_enable = yes
# set sasl security options to no anonymous:
smtp_sasl_security_options = noanonymous