Topic: Installing on Gentoo
==== Provide required information ====
- iRedMail version and backend (LDAP/MySQL/PGSQL):
0.8.0/MySQL
- Linux/BSD distribution name and version:
Gentoo from latest Stage 3
- Any related log? Log is helpful for troubleshooting.
====
After wrestling with iRedMail for a few days, I finally got it installed and (almost) working on 2 Gentoo servers. My experience leads me to point out the following in the hope it might help someone else:
1. The default kernel config in Gentoo does not include support for "multiport" in network settings. This must be enabled in order for iptables to load the iRedMail rules.
2. The latest Gentoo stages have a "run" symlink in /var pointing to /run rather than the actual directory /var/run. This breaks clamd - i.e. it cannot create it's socket so fails to load.
3. The iRedMail.sh script creates an /etc/portage/package.mask file that does exactly the opposite of what is intended. The "<" needs to be changed to ">". I found it necessary to do the following to get everything working without error:
Make sure python 2.7 is installed
"eselect python set 1" (to select the 2.7 version as default)
"emerge -C python" (to remove python 3.2. It will leave python 2.7 alone)
"python-updater" (to make sure everything is using python 2.7)
There actually seem to only be a few syntax errors preventing iRedMAil from running with python 3.2. Maybe you could look into that?
Just one little niggle remains with my 2 installations - logging in to awstats returns a "You do not have permission" error. I guess this is because Apache runs as the apache user and the files reside in /usr/share/wwwroot.
All-in-all, I'm pretty impressed with iRedMail. Thank you for your hard work.
Be lucky,
Neil
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.