Installation iRedMail
System Requirements
To install iRedMail on Debian or Ubuntu Linux, you need:
- A FRESH, working Debian/Ubuntu Linux. Supported releases are listed on Download page
- At least 4 GB memory is required for a low traffic production mail server with spam/virus scanning enabled
- Make sure 3 UID/GID are not used by other user/group: 2000, 2001, 2002
First steps
Install Debian server from scratch
Run ubuntusecure.sh
Installation
https://docs.iredmail.org/install.iredmail.on.debian.ubuntu.html#start-iredmail-installer
Postinstallation
install webmin
install phpldapadmin
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-openldap-and-phpldapadmin-on-ubuntu-16-04
https://forum.iredmail.org/topic14529-install-phpldapadmin-nginx.html
install check_mk agent
Firewall Configuration
apt remove nftables
open ports:
| Protocol |
port |
misc |
| HTTP |
80 |
|
| HTTPS |
443 |
recommended |
| LDAP |
389 |
|
| LDAPS |
636 |
recommended |
| POP3/STARTTLS | 110 |
recommended |
| POS3/SSL | 995 |
|
| IMAP/STARTLS | 143 |
recommended |
| IMAP/SSL | 993 |
|
| SMTP/STARTTLS | 587 |
recommended |
| SMTP/SS |
465 |
|
| SSH |
22 |
|
| Webmin |
12321 | |
| check_mk |
LDAP Repl
LDAP Schema update
| Schema openldap.simmy.ch | Schema mail.simmy.ch |
| core | core |
| collective | collective |
| corba | corba |
| cosine | cosine |
| duaconf | duaconf |
| dyngroup | dyngroup |
| inetorgperson | inetorgperson |
| java | java |
| kerberos | |
| ldapns | |
| misc | misc |
| nis |
nis |
| openldap | openldap |
| openssh-lpk | |
| pmi | pmi |
| ppolicy | |
| samba | |
| namedobject | |
| msuser | |
| iredmail | |
| dsee | |
| amavis | |
| calentry | |
| calresource |