Has anyone setup a mailserver and Nextcloud in one Ubuntu VPS

If you don’t ask you may be left :thinking: has anyone ever done it

It’s easily achievable.

Nextcloud tutorial: Install NextCloud on Ubuntu 22.04 (Nginx + PostgreSQL + PHP8)
Mail server tutorial series: Build Your Own Email Server on Ubuntu: Basic Postfix Setup - LinuxBabe

If you want to use iRedMail, install iRedMail first, then install Nextcloud: How to Easily Set Up a Full-Featured Mail Server on Ubuntu 22.04 with iRedMail

Note that iRedMail uses /etc/nginx/sites-enabled/ directory for virtual hosts. Whenever you see /etc/nginx/conf.d/ directory in the articles, you should replace it with /etc/nginx/sites-enabled/.

1 Like