Mail : use mailgun + gmail + standalone rouncube?

Hello,

My HestiaCP VPS is hosted by Oracle (on a free plan). While trying to set up my mail server, I have been facing various issues, such as:

  • not sending mails (thankfully solved here),
  • not receiving mails (may be the DNS issue raised here but Oracle routing seems touchy),
  • failing DKIM check (Oracle SMTP relay using its own DKIM key ?).

Long story short, I’m about to throw the towel and use mailgun as my main mail server (on a Flex plan). I plan to use Ghost for my blog anyway and host it within HestiaCP (thru GitHub - JLFdzDev/hestiacp-nodejs: HestiaCP-NodeJS | This plugin allow install multiple nodejs apps using HestiaCP). Eventually, I would have used Mailgun, so I don’t feel too bad about it (should I ?).

Within Mailgun, I’ll forward my incoming mails to Gmail (can’t figure how to read them otherwise :frowning: ). As to sum up:

  1. incoming mails using Gmail IMAP server
  2. outgoing mails using Mailgun.

I found this Gmail setup to alias [email protected] as [email protected], so that I can close the loop.

With 1) and 2), is it worth setting an adhoc roundcube site within HestiaCP ? Any opinion as a whole ?

Just in case, this Oracle documentation about SPF setting:

I reckon it should replace the SPF DNS record that HestiaCP generated, shouldn’t it ?

As for DKIM, it looks a two-step setup to me (again, I may be completely wrong):

  1. add a CNAME record in your DNS setup,
  2. add a TXT record in Oracle DNS setup (what Oracle calls a primary zone ? not available on a free plan :face_with_head_bandage:).

That doc is to use the Email Delivery Service provided by Oracle.

If you want to send mails directly from your server, yes, if you plan to send mails using an smtp relay, you should add the params instructed by your smtp relay provider.

It is only one step:

Add TXT record for your domain with the public key that you can see in Hestia, the subdomain that must be used is selector._domainkey.example.net if you are using Hestia, the selector is mail: mail._domainkey.example.net. If you will use an smtp relay, you should create the right TXT record for the right selector assigned by yout smtp relay provider.

This TXT record must be added to your DNS provider;, Hestia, Oracle, etc. the DNS provider you are using.

Also, you must add a DMARC TXT record, you will see the contents for this record in Hestia too.

1 Like