1 From Cpanel to virtualmin
═══════════════════════════
Hi I’m trying to migrate a cpanel installation handling 3 domains,
including mails, to a Virtualmin installation. I’m no professional
(yet :)), so for now I’m free to fail :).
I did not renew the cpanel licence of my first OVH VPS server (I’ll
call VPS1 ), because it was too much for my needs. In fact, I “only”
need an easy email server configuration to handle personal mails with
specific domain without passing by Google. Once upon a time, I had
managed to set this up by hand, without a graphical interface,
fiddling with postfix, dovecote, mu, offlineimap, MailBox… and some
other MUA, MDA, MTA… strange A Acronyms config files that I still
don’t understand. Has it took me literally months, you will
understand that I’m not really willing to do it again. Especially
since I can admire what webmin is able to achieve automatically.
Thank you webmin
But, let me Focus !
I’ve just made necessary backups. Installed a fresh Debian 10 OS on
my second VPS (I’ll call it VPS2) also hosted at OVH. It has about 7G
RAM.
I’ve checked the OVH DNS zone for each of my domains and made sure to
replace VPS1 IP’s by VPS2 IP’s. Mails where working on the previous
VPS1 cpanel installation so MX records should be correct and I left
them sets to IN MX 1 smtp.mydomain.foo.
with the A records smtp IN A MY.VPS.2.IP
Virtualmin installation’s script (with default) when all green.
Although it’s my third installation at least because I don’t really
know what to do once it installed.
1.1 What I did
──────────────
and I think I should do, but please correct my if I’m wrong or missing
something:
1.1.1 DONE Create a new Virtual Server using mydomain.foo
╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌
◊ 1.1.1.1 Enable the Setup SSL website feature
◊ 1.1.1.2 leave IP address and forwarding to defaults.
1.1.2 DONE Add a user to this server
╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌
it already has the admin user but I add the one I want to test the
email for.
◊ 1.1.2.1 This is where I choose the email address with a specific domain name
For example alice@mydomain.foo
◊ 1.1.2.2 I can increase the quota and leave the rest to defaults
1.1.3 DONE Login to usermin with that new user
╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌
1.1.4 DONE Tests sending and receiving mails
╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌
◊ 1.1.4.1 Sending to alice@mydomain.foo form alice@mydomain.foo
No error message but NO MESSAGE back in my mailbox
◊ 1.1.4.2 Sending to alice@gmail.com form alice@mydomain.foo
No error message and the MESSAGE MAKES IT to gmail
◊ 1.1.4.3 Replying from alice@gmail.com to alice@mydomain.foo
No reception
1.1.5 Look for logs and ask for help
╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌
I guess it has something to do with my OVH DNS zone MX field not
pointing to the correct Virtualmin server, or the MDA not knowing
where to drop its mail.
◊ 1.1.5.1 TODO logs are not easy to find
Looking for the logs I thought about creating a master DNS zone but
wait for your reply first
◊ 1.1.5.1.1 in Webmin, Postfix Mail Server, debugging features ??