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 http://www.openspf.org/ to set up an SPF record.

This is a simple example:

example.com. 3600 IN TXT "v=spf1 mx mx:mail.example.com -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 example.com, /var/lib/dkim/example.com.pem
dkim._domainkey.example.com.    3600 TXT (
  "v=DKIM1; p="
  "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC054b34nGjxaxAO2ru3MKtNQws"
  "nrUhgHRgQzxM85RbrmJDLS+gqnEej2pW5kxyuAFPCC/kM5/s/vOngN7TmU2/TG3N"
  "JpEU33WGWat/ikWZfw150fguueZHPbtcinGydfuV2rNGPJ48IuUXf+xGoCohnOdt"
  "YQgaS9n7jfO8tFs+CQIDAQAB")

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

amavisd testkeys

TESTING: dkim._domainkey.example.com      => pass

If it shows 'pass', it works.

Share this page:

14 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Anonymous

you are right, by default,

https://ip/ldap

https://ip/phpmyadmin

you can check the detail

/etc/httpd/conf.d/ssl.conf

 

By: 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

https://www.howtoforge.com/virtual-users-domains-postfix-courier-mysql-squirrelmail-ubuntu8.04

 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. 

By: 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:

https://www.howtoforge.com/virtual-users-domains-postfix-courier-mysql-squirrelmail-ubuntu8.04

Anyone want to help?  Let me know. 

 

By: 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.

By: Zhang Huangbin

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

New forum is here: http://www.iredmail.org/forum/

By: 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-1.1.0.5/"

remove the #

you can restart httpd

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

 hope you enjoy it.

 

By: Anonymous

yes it support smtp auth

check the feature list

http://code.google.com/p/iredmail/wiki/Feature

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-1.1.0.5/"

remove #

restart the httpd service

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

 

 

 

By: 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: http://code.google.com/p/iredmail/wiki/Main_Components


The python-powered admin console is under development, but i'm not familiar with web programming: http://code.google.com/p/iredmail/source/browse/trunk/iRedAdmin


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

By: Arie

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

 regards,

 -ARZ-

 

 

 

By: 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 .


 


 

 

By: Anonymous

The homepage is hosted on google code: http://code.google.com/p/iredmail/ 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?

By: 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.

By: 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 127.0.0.1[127.0.0.1]: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!

By: Abhishek

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