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

Want to support HowtoForge? Become a subscriber!
 
Submitted by eddiechen (Contact Author) (Forums) on Fri, 2009-04-10 16:57. ::

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.


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Abhishek (not registered) on Fri, 2012-08-17 00:14.
Do I need to buy an active and paid SSL certificate to make httpS work for me??
Submitted by axolotl7 (not registered) on Wed, 2009-08-26 09:16.

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!

Submitted by Scrummie02 (not registered) on Wed, 2009-04-15 15:53.

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:

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

Anyone want to help?  Let me know. 

 

Submitted by Zhang Huangbin (not registered) on Thu, 2009-04-16 06:23.
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.
Submitted by Scrummie01 (not registered) on Wed, 2009-04-15 15:50.

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

http://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. 

Submitted by Anonymous (not registered) on Mon, 2009-04-13 14:01.
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.
Submitted by Anonymous (not registered) on Wed, 2009-04-15 03:08.

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 .


 


 

 

Submitted by Anonymous (not registered) on Tue, 2009-04-14 14:49.
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?
Submitted by Arie (not registered) on Wed, 2009-04-15 12:41.

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

 regards,

 -ARZ-

 

 

 

Submitted by Zhang Huangbin (not registered) on Thu, 2009-04-16 06:41.
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). :)

Submitted by Anonymous (not registered) on Thu, 2009-04-16 06:34.

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

 

 

 

Submitted by Anonymous (not registered) on Thu, 2009-04-16 06:23.

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.

 

Submitted by Zhang Huangbin (not registered) on Thu, 2009-04-16 09:29.

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

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

Submitted by Anonymous (not registered) on Fri, 2009-04-17 06:47.

you are right, by default,

https://ip/ldap

https://ip/phpmyadmin

you can check the detail

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