After installation of iRedMail I was quite happy with the product up until the point that I realized that there is no mail forwarding option in iRedMail backend. I was browsing forums but I only could find very complicated solutions or hints that you can do it either from the postfixadmin backend ( which is not coming with the iRedMail product anymore ) or you can use the phpLDAPadmin backend to configure this.
I was playing around with phpLDAPadmin and finally got to this solution:
First create a mail user using your iRedMail backend. I am not going into detail on how to do this it is quite self explanatory.
After iRedMail installation there is a very helpful summary file in the folder where you are kicking of the installation from. It contains all passwords, userids, and URLs you might need to use iRedMail and all underlying products. I does in fact installs many including Dovecot, Postfix, phpLDAPadmin, etc. This summary file is iRedMail.tips
Get your phpLDAPadmin URL, password and master user id from this file and log in to phpLDAPadmin backend. The URL is usually:
https://www.yourdomain.com/phpldapadmin/htdocs/cmd.php
Log in go to and drill down to the email user you have previously created and click on it.
You will have a couple of options on the right panel, select default, then select add new attribute.
Select mailForwardingAddress from the dropdown list and fill in the email address where you would like to forward emails from this account. Please note that you can set both internal or external email addresses. Click on Update Object at the bottom of the page.
Click on Commit at the next screen to confirm changes and it is done 🙂
There are other ways to enable this and if you use iRedAdmin-Pro you can even do it from the Admin backend. I am only covering the phpLDAPadmin part. Please read this post for more information:
That works, and its prety easy to implement. But Forwarding doesnt leave a copy of the e-mail into the host mailbox. It forwards the incoming mail directly to the destination mailbox. How can we keep a copy of that mail into the host mailbox.?
Hmmm I am never keeping any email of a mailbox that is being forwarded so I wouldn’t know.
Just want to say thanks for posting this, saved me a lot of time! Got it book marked. 🙂
Thanks for this! Great and clear explanation. I still hate that virtually everything has to be done in the LDAP backend, but it’s good to know how to get things done.
Hello,
Here is my situation : I have an intranet with 3 servers with the configurations below :
//==========================================================================================
– Server 1 :
Linux distribution : CentOS 6.4
IPadress : 192.168.16.200/21
DNS : 192.168.16.200
Domain name : emat.fan.def
Hostname : ns
IREDMAIL with LDAP
– Server 2 :
Linux distribution : CentOS 6.4
IPadress : 192.168.16.200/21
DNS : 192.168.16.200
Domain name : dcim.fan.def
Hostname : ns
IREDMAIL with LDAP
– Server 3 :
Linux distribution : CentOS 6.4
IPadress : 192.168.5.6/21
DNS : 192.168.5.200
Domain name : fan.def
Hostname : ema
IREDMAIL with LDAP
//==========================================================================================
The network is ok between the 3 server, the ping works well between the 3.
I’d like to make to make my mail users to communicate beetween them from on server to an other.
Example : test@emat.fan.def (user form server 1) to send an email to test@dcim.fan.def (user form server 2)
How can I do this ? I suppose that I should add entries in my named.conf ????
Can you please help me.
Thanks.
Hi unfortunately I haven’t used this on more servers than one so I wouldn’t know. Sorry about this buddy.
once above setup is done click on value below mailForwardingAddress attribute mention your email address to retain a local copy
Retail a copy by adding own email address in the emailForwardingAddress attribute.