Setup a mail server or host for sending and receiving mail for Laravel on Ubantu server

I want to create a mail server and want to create mail like, to sending and receiving mail. The last thing I want to do is sent mail from my Laravel application and for that, I need to config this below thing in Laravel


I already have 2 droplets over here. one for testing and one for production. I don’t want to screw my production droplet (Laravel hosted droplet). I will buy another droplet for email hosting. So I need a proper solution for it. my domain is


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


You could follow the steps on how to set up an email server here:

This would include Postfix for sending out emails and Dovecot for the inbound emails.

However, keep in mind that running your own mail server could be quite challenging as described here:

Alternatively, you could use a control panel like cPanel which comes with an email server pre-setup and a graphical interface where you will be able to create and manage your email accounts. You can install it with One-Click via this link here:

Hope that this helps! Best, Bobby