I still see a problem. While I am going through each step, I see a little discrepancy. In the Installation Document of iRedAPD, http://iredmail.org/wiki/index.php?titl … /OpenLDAP, it says
* Daemon listen on port 7777: Used in postfix smtpd_recipient_restrictions, for mail list deliver restriction.
* Daemon listen on port 7778: Used in postfix smtpd_sender_restrictions, for per-user blacklist and whitelist.
But in the iredapd-rr.ini and main.cf, the port is on 7778. Will the posfix ever check for restrictions ? I am not sure how its working for you.
I have spent some time to understand actually there is typo in the installation document where the ports should be swapped in the above two lines. Finally I have managed to find the root cause of the problem and solved it.
I am here with attaching the configs.zip file containing problem_config.zip and working_config.zip. Just in case if some on in the forum wants to use it.
Also your code suggestion along with my modification worked fantastic for me. I really love iRedMail and iRedAdmin-Pro.
Please excuse me if I am wrong.