AMAVISD-NEW ERROR ENCOUNTERED WHILE INSTALLING IREDMAIL 0.9.9
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.
Solution
Configure the domain name in the /etc/hosts file
sudo vim /etc/hosts
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
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.
Solution
Make this directory
sudo mkdir /var/lib/amavis
Give root permissions to this user
chown -R amavis:amavis /var/lib/amavis
Give the user permission
chmod 755 /var/lib/amavis/
List what is contained in this folder
ll /var/lib/amavis