1

Topic: WTF are you doing?

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.1 PGSQL edition
- Linux/BSD distribution name and version: Ubuntu 24.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Nginx
====

Why was I not warned during the installation of your "wonderful" software that it operates barbarically, disregarding the fact that there are websites running on the server? If iRedMail is intended to run exclusively on a server by itself, where is the warning about this?

It destroyed all Nginx configuration. It completely wiped out the primary working site as if it shouldn’t exist. Why does iRedMail allow itself to occupy primary paths like "/"? Or override paths like "/static/"? Are you aware that these paths are used by websites or not? Are you even aware that an email service is just an addition to the main website? Why iRadMail overrides the common paths?

How can I now remove all this garbage with one command or script and restore everything to how it was before the installation?

----

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

2

Re: WTF are you doing?

Well, a good question.

Let's look into install guide:

iRedMail is designed to be deployed on a FRESH server system, which means your server does NOT have mail related components installed, e.g. MySQL, OpenLDAP, Postfix, Dovecot, Amavisd, etc. iRedMail will install and configure them for you automatically. Otherwise it may override your existing files/configurations

So i assume you did not read anything at all, right?

Why does iRedMail allow itself to occupy primary paths like "/"

Simple answer is, because it creates users, downloads/installs stuff, modifes databases, and much more, thats why it needs root priv to start the script, and root has access to everything automatically, that's not limited to the iredmail installer, that happens to EVERY single script that you run with root priv

How can I now remove all this garbage with one command or script and restore everything to how it was before the installation?

Well that is easy, since i assume you did backups from everything before you installed iredmail, just restore them manually one by one, then uninstall every component manually, (there is an install logfile, so have fun with that) and in the end you consider your life choices, mostly not to blame others for your own mistakes and poor decisions

Oh, and if you want constructive answers, maybe something like "i fucked up my server really bad because i didn't read the Install guide and now need help to recover some stuff" would have resulted in an way more friendly reply, but not if your post sounds like it is everyone else fault but not yours

3

Re: WTF are you doing?

It seems like you didn't understand at all that the issue is not about the root user privileges but about the root path of the domain. The question was about what right a secondary server has to overwrite the settings of the main site. At the address domain.com or '/' in any router, the main site should open, not some sh### email admin panel. Developers are out of their minds if they think this is perfectly normal to override main site url paths.

And I see you are clearly enjoying the problems you're creating for people who fell for the so-called "easy" installation. But there's no information even with the asterisk that it completely ruins everything you had set up before.

And I'm afraid to disappoint you, but I followed the instructions precisely as provided at the address - docs_iredmail_org/install_iredmail_on_debian_ubuntu_html (I've changed dots to underscores because on your backwards site there's no way to post normal links)
And here's not a word that Nginx configuration will be completely replaced!!!

Or are there some other instructions available? I thought it's official one.

4

Re: WTF are you doing?

So I'm waiting a link to the instruction where I could have read all this to avoid all the problems. I think you're dreaming and there's no such instruction ever existed.

5

Re: WTF are you doing?

aynotes wrote:

So I'm waiting a link to the instruction where I could have read all this to avoid all the problems. I think you're dreaming and there's no such instruction ever existed.

Well, you are in the Forum. At the top, you can click on "Documents" where you'll find the section: "Install iRedMail".
Each of the Install documents I looked at have the following:

"System Requirements
Warning

iRedMail is designed to be deployed on a FRESH server system, which means your server does NOT have mail related components installed"

Are you in the habit of installing software without reading the directions? And do you always install something new on a live or production system instead of on a test bed or virtual machine to test?

I see that you noted that you installed on Ubuntu, here's your Ubuntu install link: https://docs.iredmail.org/install.iredm … buntu.html

6 (edited by aynotes 2024-09-18 03:07:55)

Re: WTF are you doing?

So write the full phrase please!!!

"iRedMail is designed to be deployed on a FRESH server system, which means your server does NOT have mail related components installed, e.g. MySQL, OpenLDAP, Postfix, Dovecot, Amavisd, etc. iRedMail will install and configure them for you automatically. Otherwise it may override your existing files/configurations although it will backup files before modifying, and it may not be working as expected."

I've extracted the key phrase:
<b>which means your server does NOT have mail related components installed</b>

I had no any mail related components installed! Not a single component mentioned.

"e.g. MySQL, OpenLDAP, Postfix, Dovecot, Amavisd, etc. iRedMail"
I don't see in this f#### list Nginx and Postgres.

And that's the question how can I know that it's going to f### up my Nginx conf and Postgres?
And why does it even touch other services configs? It's just sh### secondary mail service which can only add its configs to existing one not override it.

7

Re: WTF are you doing?

I'm pretty sure with your attitude, noone is willing to help you at all, since you still blame everyone else except you for your mistakes

8 (edited by GerryM 2024-09-19 02:56:16)

Re: WTF are you doing?

aynotes wrote:

If iRedMail is intended to run exclusively on a server by itself, where is the warning about this?

I would think that this is covered by this:

aynotes wrote:

iRedMail is designed to be deployed on a FRESH server system

And again in the Debian instructions:

"To install iRedMail on Debian or Ubuntu Linux, you need:
    A FRESH, working Debian/Ubuntu Linux. Supported releases are listed on Download page."

But I think I understand your issue now. Nginx is not listed because you don't have to use SoGo or RoundCube for a functioning mail system. They are not listed as "mail related components" since I can use Thunderbird or something else to read my mail. But apparently iRedMail messed up your Nginx and PGSQL configurations.
So again I ask why did you install it on your 'live' system instead of trying it first on a test system?

Ok, I totally missed this-

aynotes wrote:

..I followed the instructions precisely as provided at the address - docs_iredmail_org/install_iredmail_on_debian_ubuntu_html (I've changed dots to underscores because on your backwards site there's no way to post normal links)

Odd, I had no problem posting that same link!

Back to your original question:

aynotes wrote:

How can I now remove all this garbage with one command or script and restore everything to how it was before the installation?

With your backup that you made before installing iRedMail. I shouldn't have to ask if you have backups.

9

Re: WTF are you doing?

I cannot believe people don't read installation guide / tutorial before installing iRedMail.
ok, consider it's my fault that not warn you on setup wizard.

Just added text on first dialog page to warn sysadmin that iRedMail requires a fresh server:
https://github.com/iredmail/iRedMail/co … 5637a1534a