Ok. So I got this working and most things seem to be working. What I have:
- example.com: 10.20.30.40 our main website hosted elsewhere. (NameCheap A record: host->example.com value->10.20.30.40)
- our main webmin/virtualmin server : emailbox.example.com 50.60.70.80 (NameCheap A record: host->emailbox.example.com value->50.60.70.80)
- I created a virtualmin virtual server: example.com (This has no web site associated with it http://prnt.sc/awugf8)
- I created a virtualmin virtual server: webmail.example.com. (NameCheap A record: host->webmail.example.com value->50.60.70.80)
- On our virtualmin virtual server: webmail.example.com I installed round cube at the “top level”.
- I added the Virtualmin > Server Configuration > Suggested DNS records: to name cheap. Ie the SPF record, the mx record, the mail.example.com A record, etc.
- I added two users:
jimmyh
andjaned
to the virtual server example.com
Results:
- From https://webmail.example.com it comes up with roundcube. I can login with users I have added to the virtual server example.com. I can send and receive email with the web interface.
- The users for email turned out to be:
jimmyh.example
andjaned.example
. I had thought the user would just be the plainjimmyh
andjaned
- I can use email programs (I tested using Nylas N1) with imap:
mail.example.com
, smtp:mail.example.com
. (I haven’t tested pop3 yet but assume it would work) - I can access usermin from https://emailbox.example.com:20000 and virtualmin from https://emailbox.example.com:10000
- I can also access usermin from https://webmail.example.com:20000 and virtualmin from https://webmail.example.com:10000
- I can add mailman mailing lists on example.com.
- I can manage the mailman mailing lists through VirtualMin > Services > Mailing Lists.
Remaining problems: I can’t seem to view mailman archives for example.com. It seems to be going to eg (for a list named devops) https://example.com/pipermail/devops/
I looked in /etc/mailman/mm_cfg.py
and couldn’t see a setting to change the webhost to emailbox.example.com? (The urls already had emailbox.example.com) Would you know where the correct setting for mailman is? I looked around on google but didn’t immediately see anything. (there was some talk of using something like:
./withlist -l -r fix_url list_name --urlhost=host2.domain.com
But that is list by list and not all the lists freshly created in the future, etc…