I was setting up a mail server using the new updated iRedMail where you can deploy an OPEN SOURCE, FULLY FLEDGED, FULL-FEATURED mail server in several minutes.

You can download it from here.

I fired up iredmail

./iredmail.sh

I got the below errors

Error One

Please configure a fully qualified domain name (FQDN) in /etc/hosts before we go further.

[iRedmail1.png]

Solution

Configure the domain name in the /etc/hosts file

sudo vim /etc/hosts

[iRedmail2.png]

Replace this section

127.0.1.1 MS-Build MS-Build
127.0.0.1 localhost

with this commands

127.0.0.1 <mail.domainName> mail localhost
127.0.0.1 localhost

[iRedmail3.png]

Change the hostname to:

sudo vim/etc/hostnames

From MS-Build to mail

Then Reboot

Error Two:

Once you run iredmail

It automatically generates a user called amavis

An error has occured:

Non-system user amavis found. I will not overwrite a non-system user. Remove the user and reinstall amavisd-new.

[iRedmail4.png]

Solution

Make this directory

sudo mkdir /var/lib/amavis

[iRedmail5.png]

Give root permissions to this user

chown -R amavis:amavis /var/lib/amavis

[iRedmail6.png]

Give the user permission

chmod 755 /var/lib/amavis/

[iRedmail7.png]

List what is contained in this folder

ll /var/lib/amavis

References

  1. https://bugs.launchpad.net/update-manager/+bug/226891