I’ve recently worked on setting up virtualmin email accounts as an alternative to setting up my own mail server. Because I manage a few sites, I’ve decided to go use this instead of setting up an individual server such as mail-in-a-box. For the record, I think Mail in a Box is a great idea, just not what I needed.
Why set up your own mail if gmail or other free providers offer gigabytes of free stuff? Its because your email data is on their cloud, not your your hands.
Here are some tips, that may help you with virtualmin email:
- Create Virtual virtual server: – under enable options do not tick Setup DNS zone? if you are running a Bind connection (I had this ticked and nothing would work) and also Setup IP-based virtual FTP? (which documentation says: You almost certainly don’t need this, even if you think maybe you do) – Note if you are using 3rd mail service like Google apps or tutanota, do NOT click on the mail option.
- Install Scripts: Install roundcube in the ‘roundcube’ directory (not top level/root) as this will conflict the website installed there.
- Ensure you have all your DNS records in order – these are shown at Server configuration -> suggested dns records. Don’t forget the MX, TXT records in in your hosting/admin panenl.
- Server Configuration -> SSL Certificates and generate a Let’s Encrtypt cert for example.com, www.example, mail.example.com (there may be others listed in addition to www and mail, just leave them if they do not cause errors)
- Set up a user, Edit User -> Add User to this server. Email only permissions are fine.
- See if domain has propagated yet: https://dnschecker.org/, if not, give it time.
- If ready, use your email/pass to login, and test your emails at example.com/roundcube. If they are not working check https://dnschecker.org/ again.
- for dkim, visit this. https://www.esecurityplanet.com/applications/how-to-set-up-implement-dmarc-email-security.html and add txt record.
- for dmarc, visit this: https://mxtoolbox.com/DMARCRecordGenerator.aspx
- use this for problems: https://mxtoolbox.com/SuperTool.aspx
Please note, these are quick crib notes that I use of where to go, you’ll have to fill in any missing gaps!