Page 1 of 1

Tutorial: setup mail server the right way

Posted: Sun Nov 04, 2018 5:01 am
by Aldoseri
I followed these steps to solve all mail server problems once and for all.

1- Get a domain name
2- Get any cheap VPS
3- Install debian or centos minimal system
4- Install Modoboa https://modoboa.org/en/
5- login to Modoboa mail server admin panel
6- Update password
7 Add domain to domains section on mail server
8- Redirect your MX record to the new server FQDN hostname
9- Update mail A record to point to new server IP Address
10- Update PTR to point to new server FQDN hostname
11- Generate DKIM - copy and paste in DNS area of your dns provider
12- Add email accounts (Identities)
13- Test, and Viola! everything works like a charm
14- Never look back, you're now a free admin.

Now your mail will reach the INBOX of intended users. you won't need any third party smtp services.
It took me around 4 hours to do this setup, but then I didn't have this quick cheat sheet. I had to figure it out by trial and error. I will say one hour or so is all you need to forget about Vesta's mail problems for ever.

Re: Tutorial: setup mail server the right way

Posted: Tue Apr 30, 2019 11:36 pm
by Elfy
Did you install Modoboa "on top of" Vesta? Can users still create email accounts within Vesta for them to become visible for administration within Modoboa? This would be ideal for me.

If you just created a new VPS for your email server outside of Vesta, this kind of defeats the purpose of Vesta being a web-hosting panel, because you will have to manually create all the email accounts yourself for any of your Vesta users.

Re: Tutorial: setup mail server the right way

Posted: Sat May 04, 2019 8:44 pm
by dreiggy
Elfy wrote:
Tue Apr 30, 2019 11:36 pm
Did you install Modoboa "on top of" Vesta? Can users still create email accounts within Vesta for them to become visible for administration within Modoboa? This would be ideal for me.

If you just created a new VPS for your email server outside of Vesta, this kind of defeats the purpose of Vesta being a web-hosting panel, because you will have to manually create all the email accounts yourself for any of your Vesta users.
Most probably it possible, but vesta should be installed without mail support (exim, dovecot, spamassassin, clamav). And another thing is to do some magic with modoboa web configuration.

Re: Tutorial: setup mail server the right way

Posted: Mon May 13, 2019 1:31 am
by lotnomore
Aldoseri wrote:
Sun Nov 04, 2018 5:01 am
I followed these steps to solve all mail server problems once and for all.

1- Get a domain name
2- Get any cheap VPS
3- Install debian or centos minimal system
4- Install Modoboa https://modoboa.org/en/
5- login to Modoboa mail server admin panel
6- Update password
7 Add domain to domains section on mail server
8- Redirect your MX record to the new server FQDN hostname
9- Update mail A record to point to new server IP Address
10- Update PTR to point to new server FQDN hostname
11- Generate DKIM - copy and paste in DNS area of your dns provider
12- Add email accounts (Identities)
13- Test, and Viola! everything works like a charm
14- Never look back, you're now a free admin.

Now your mail will reach the INBOX of intended users. you won't need any third party smtp services.
It took me around 4 hours to do this setup, but then I didn't have this quick cheat sheet. I had to figure it out by trial and error. I will say one hour or so is all you need to forget about Vesta's mail problems for ever.
This is wonderful. Just wonder if the same procedure applies to Mail-in-a-box, a modoboa alternative which is much easier to set up.

Re: Tutorial: setup mail server the right way

Posted: Fri Jun 14, 2019 5:23 pm
by thunderclap
dreiggy wrote:
Sat May 04, 2019 8:44 pm
Elfy wrote:
Tue Apr 30, 2019 11:36 pm
Did you install Modoboa "on top of" Vesta? Can users still create email accounts within Vesta for them to become visible for administration within Modoboa? This would be ideal for me.

If you just created a new VPS for your email server outside of Vesta, this kind of defeats the purpose of Vesta being a web-hosting panel, because you will have to manually create all the email accounts yourself for any of your Vesta users.
Most probably it possible, but vesta should be installed without mail support (exim, dovecot, spamassassin, clamav). And another thing is to do some magic with modoboa web configuration.
Why do you recommend installing Vesta without mail support?

Re: Tutorial: setup mail server the right way

Posted: Wed Jun 19, 2019 7:57 pm
by dreiggy
thunderclap wrote:
Fri Jun 14, 2019 5:23 pm
Why do you recommend installing Vesta without mail support?
Because vesta use exim, modoboa postfix and other dovecot configuration and etc... https://modoboa.readthedocs.io/en/lates ... stallation