Category Archives: Postfix

Email Forwarding with iRedMail and phpLDAPadmin – How to?

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:

http://www.iredmail.org/forum/post9958.html#p9958

Slow to receive emails? – Disable Postfix Greylisting

Once you install iRedMail on your own VPS you might encounter issues by mails not being received on time or not being received at all. In my case I just had to disable the Postfix Policyd greylisting. I have seen many reject error messages in /var/www/mail.log :

Jun 11 18:13:55 ProcessingEngine postfix/smtpd[13562]: connect from gateway01.websitewelcome.com[69.41.242.19]
Jun 11 18:13:56 ProcessingEngine postfix-policyd: rcpt=16, greylist=abuse, host=69.41.242.19 (gateway01.websitewelcome.com), from=ORIGIN@EMAILREMOVED.COM, to=DESTINATION@EMAILREMOVED.COM, size=0
Jun 11 18:13:56 ProcessingEngine postfix/smtpd[13562]: NOQUEUE: reject: RCPT from gateway01.websitewelcome.com[69.41.242.19]: 450 4.7.1 : Re cipient address rejected: Policy Rejection- Please try later.; from= to= proto=SMTP helo=
Jun 11 18:13:56 ProcessingEngine postfix/smtpd[13562]: disconnect from gateway01.websitewelcome.com[69.41.242.19]

After a bit of a research I have figured that the postfix-policyd configuration file contains the entry where you can disable greylisting. Once I have done that I have been able to send and receive mails instantly.

The config file on my ubuntu 10.4.2 LTS server is located at:

/etc/postfix-policyd.conf

Just set the GREYLISTING paramter to 0

#####################################################################
#
# enable greylisting                                  default: on
#
#   whether greylisting should be enabled or disabled.
#
#                                                     1=on  0=off
GREYLISTING=0