1

Topic: NGINX NOT properly set up with iRedMail installation - 502 bad gateway

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====

OS: Linux Ubuntu 20.04
Web server: NGINX
Database: MariaDB
The installer ran on the command line
====

I have already made the necessary configuration prior to the installation:

- Set DNS records (A & MX records)
- Set FQDN with setting the '/etc/hosts' file as
My_IP_Address mail.MyWebsite.com mail

- Allowed UFW ports 25, 587, 465
- etc., etc..

Then when I try to go to the login pages for iRedMail & RoundCube, I get nothing but a '502 bad gateway' error page.

I thought that iRedMail says to NOT install anything prior to running their installation. I know that their installation is supposed to be a on 'fresh OS'.

Why doesn't the installation lead me to a working page? What else could I be missing?

Any support is appreciated.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: NGINX NOT properly set up with iRedMail installation - 502 bad gateway

- Did you restart server after iRedMail installation?
- Are services "php7.4-fpm" (for Roundcube) and "iredadmin" running?

3

Re: NGINX NOT properly set up with iRedMail installation - 502 bad gateway

Hi Zhang, and thank you for your answer.
I actually figured it out after installing it about 3 times, but you're absolutely right! I forgot to reboot the system after installation. Thanks again for your support!

ZhangHuangbin wrote:

- Did you restart server after iRedMail installation?
- Are services "php7.4-fpm" (for Roundcube) and "iredadmin" running?