iRedOS-0.6.0: Open Source Mail Server With Postfix, Dovecot, Amavisd, ClamAV, SpamAssassin, RoundCube - Page 2

4 Test The Mail System

4.1 Webmail RoundCube

Since RoundCube 0.31, it starts to support plugins. By default, iRedMail enables the two plugins "password" and "managesieve", so you can change the password and set up a vacation autoresponder. You can also enable the other plugins according to your needs.

Log into the RoundCube, use the first user [email protected]:

The account has received two emails, read them carefully.
Note: because [email protected] is a root alias, it receives system emails.

Setting up a vacation autoresponder:


4.2 iRedAdmin Open Source Edition

iRedAdmin Open Source Edition is a web-based iRedMail admin panel, it allows you to add, remove and edit domains, users and domain admin accounts. If you need more features, you can check the full-featured edition.

Log into iRedAdmin: [email protected]


Mail Domains:

Mail Users:

Mail Admin:

Create new mail user:

Select language:


4.3 phpLDAPAdmin

Log into phpLDAPAdmin: cn=manager,dc=example,dc=com

Manage the mail account:


4.4 Awstats

Log into Awstats: [email protected]

Check the statistics:


5 Important Things You Should Know After Installation



6.1 Why do I receive my email with a delay?

iRedMail provides greylisting features with Policyd (v1.8.x), Greylisting is effective because many mass e-mail tools utilized by spammers are not set up to handle temporary failures (or any failures for that matter) so the Spam is never received. This feature can reduce e-mail traffic up to 50%, but would cause the first time receive email delay. You can enable or disable the greylisting.

On RHEL/CentOS, config file is /etc/postfix-policyd.conf:

#   1=on  0=off 

Restart Policyd and reload Postfix.


6.2 How to upgrade iRedMail to the newest version?

You can use YUM to update the packages. There's an official iRedMail Upgrade Tutorial.


6.3 How to enable disclaimers for outgoing mails?

Find the below lines in /etc/amavisd.conf:

# ------------ Disclaimer Setting ---------------
# Uncomment this line to enable singing disclaimer in outgoing mails.
#$defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ];

Uncomment the line and restart amavis/amavisd service, then you get it. Don't forget to read @disclaimer_options_bysender_maps in /etc/amavisd.conf for disclaimer content settings.


6.4 How to batch create users?

You must modify the script first, change ldap suffix, bind dn and bind password.

# cd /path/to/iRedMail-x.y.z/tools/
# sh user01 user02 user03


6.5 Anti-Virus & Anti-Spam - how to turn them on or off?

iRedMail uses Amavisd-new as interface between MTA and MDA, it will invoke SpamAssassin for anti-spam and ClamAV for anti-virus. You can turn them on or off in /etc/amavisd.conf.

# @bypass_virus_checks_maps = (1);  # controls running of anti-virus code
# @bypass_spam_checks_maps  = (1);  # controls running of anti-spam code
# $bypass_decode_parts = 1;         # controls running of decoders&dearchivers 

Default settings are both enabled, you can uncomment them to bypass (turn off) them. Value '1' means disabled.


6.6 How to create your own SSL key?

If you want to create your own SSL key, you can download:

# wget

Edit the related info in the script:

# SSL key.
export SSL_CERT_FILE="${ROOTDIR}/certs/iRedMail_CA.pem"
export SSL_KEY_FILE="${ROOTDIR}/private/iRedMail.key"
export TLS_STATE='GuangDong'
export TLS_CITY='ShenZhen'
export TLS_ADMIN="[email protected]${HOSTNAME}"

Run the script:

# bash

SSL keys were generated:
- /root/certs/iRedMail_CA.pem
- /root/private/iRedMail.key

Back up the old ssl_key, and copy the new key to:


Share this page:

Suggested articles

1 Comment(s)

Add comment


By: Oscar B.

This is an excellent article, I followed it and everything is working as expected, but I think you aimed it to medium-expert audience, cuase there are some missing things like how to access roundcube (http://localhost/roundcube) and to do it from another machine, cuase iRedOS has no X (GUI).

 And accessing other resources has to be done via https. You may have to do some workarounds on /etc/http/conf.d/ssl.conf to be able to access e.g awstats (https://localhost/