iRedMail: Build A Full-Featured Mail Server With LDAP, Postfix, RoundCube, Dovecot, ClamAV,SpamAssassin, DKIM, SPF On CentOS 5.x - Page 2

Set a password for the virtual domain administrator.

Add the first normal user for our virtual domain. e.g.: www.

Set a password for the above normal user.

Enable SPF verification and DKIM verification/sign feature:

Enable the Managesieve service:

Enable POP3, POP3S, IMAP, IMAPS services:

Select webmail, RoundCube is recommended:

Choose the default language for webmail:

Optional components, recommended: select all:

MySQL root password:

Set an alias mail address for the root user:

Now the configuration wizard is finished; afterwards, you just need to restart the machine. You can use http://ip/mail to access the RoundCube webmail.


Set Up DNS Record For SPF

Please refer to to set up an SPF record.

This is a simple example: 3600 IN TXT "v=spf1 mx -all"


Set Up DNS Record For DKIM

After the installation, please reboot your system, then use amavisd to help you set up the DNS record:

amavisd showkeys

; key#1, domain, /var/lib/dkim/    3600 TXT (
  "v=DKIM1; p="

You should add a 'TXT' type DNS record. After you added this in DNS, type this command to verify it:

amavisd testkeys

TESTING:      => pass

If it shows 'pass', it works.

Share this page:

14 Comment(s)

Add comment


From: Anonymous

you are right, by default,



you can check the detail



From: Scrummie01

This is fantastic.  I set it up on a CentOS VM with no problem.

I usually don't use CentOS though, I'm a Debian/Ubuntu guy.  This has inspired me into possible making something similiar for Ubuntu/Debian server.  I could use this as a guide to get started

 This walkthrough by Falko gives you all the packages you need.  Since I'm not much of a programmer this is going to take some time, but if anyone is willing to help let me know. 

From: Scrummie02

This is fantastic, the setup went without a hitch on my vm installation of CentOS

 I'm going to use this a guide ans start something similiar for Ubuntu/Debian using this as a guide:

Anyone want to help?  Let me know. 


From: Zhang Huangbin

Hi, Scrummie02. I'm a member of iRedMail project, why not join us and make it work on Debian/Ubuntu? :) Yes, it's open source.

From: Zhang Huangbin

No. do *NOT* change apache configuration files. Just use httpS:// to access them.

New forum is here:

From: Anonymous

if you use mysql as backend. you can select the postfixadmin

use ldap as backend, use the phpldapadmin

for security reason, the iredmail by default setting, you can not access the tools.

cd /etc/httpd/conf.d/

you would find the  phpldapadmin.conf  or postfixadmin.conf

you can edit

#Alias /ldap "/var/www/phpldapadmin-"

remove the #

you can restart httpd

then you can use http://ip/ldap manage the user

 hope you enjoy it.


From: Anonymous

yes it support smtp auth

check the feature list

the manage tools ,

mysql backend is postfixadmin

ldap backend is phpldapadmin

for security resaon, you can not acccess by default

 cd /etc/httpd/conf.d/

 #Alias /ldap "/var/www/phpldapadmin-"

remove #

restart the httpd service

now you can use http://ip/ldap access




From: Zhang Huangbin

Hi, Arie. iRedMail doesn't have its own admin tool yet (web-based admin console or command line), but it ships several programs you may need, take a look:

The python-powered admin console is under development, but i'm not familiar with web programming:

And of course it support SMTP AUTH (via dovecot sasl). :)

From: Arie

How to manage iredmail ? Is there any mail manager for this ? And does it support for SMTP-AUTH ? 






From: Anonymous

you want to receive email,you need to check you dns mx record and you must have static ip address.

you can try to send the email to gmail . I believe you would receive .




From: Anonymous

The homepage is hosted on google code: And its another website is wrotten in Chinese, it will be re-write in English later. >> "it makes you worry about the safety of your data." What do you mean "the safety of your data"? It is open source, you can read the scripts yourself, why did you worry about this?

From: Anonymous

This guide is good.
I cannot recieve mail though, but this is likely my fault... I have tried to set up an email server a few times and they never seem to be able to recieve mail.
I went to the iRedMail website and saw that there was no English there. This is a bit concerning to people who do not know the language and it makes you worry about the safety of your data.

I set this up in a virtual machine.

From: axolotl7

What a great project... I haven't had an "all-in-one" like this succeed so completely in ages.  Just a quick note, just in case people run into the same minor issue as I did.  CentOS 5.3, MySQL, SPF, DKIM...

When restarting, everything appeared to come up clean, but the server wouldn't send mail.  I was getting errors in /var/log/maillog like this...

 Aug 25 22:50:49 mail postfix/smtp[14558]: connect to[]:10024: Connection refused

Issue was that amavisd hadn't started up... it couldn't open the DKIM cert due to a permissions issue.  Changed /var/lib/dkim/[domain].pem permissions so user:group amavis:amavis could read, and everything's been going swimmingly.

Thanks, all!

From: Abhishek

Do I need to buy an active and paid SSL certificate to make httpS work for me??