1

Topic: Restrict email sending / receiving to specific email addresses

==== Provide basic information to help troubleshoot and get quick answer ====
- iRedMail version: iRedMail-0.7.3
- Linux/BSD distribution name and version: RHEL 5
- Any related log? Log is helpful for troubleshooting.
====

hi I want to achieve below settings

user abc@example.com can sent/receive mail only to example.com or example2.com....if abc@example.com try to send any other domain other than this should bounce and abc@example.com can receive mails only from example.com or example2.com.

user xyz@example.com should able to send/receive mails from anywhere.

can I achieve this using iRedMail??...Please help me on this

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Restrict email sending / receiving to specific email addresses

It's a Postfix built-in feature, and also achieved in iRedAPD (a postfix policy server).

- To achieve it with Postfix directly, refer to this official doc: http://www.postfix.org/RESTRICTION_CLAS … l#internal
- To achieve it with iRedAPD, refer to iRedMail wiki doc:
    + For OpenLDAP backend: http://iredmail.org/wiki/index.php?titl … D/OpenLDAP
    + For MySQL backend: http://iredmail.org/wiki/index.php?titl … dAPD/MySQL

Normally, iRedAPD is installed by default, so you can skip all installation related steps and just check section "Available access policies", then add proper value on user object.

You can easily manage this kind of restriction with iRedAdmin-Pro if you purchased it, screenshot attached for your reference:

http://screenshots.iredmail.googlecode.com/hg/iredadmin/user_profile_restrictions.png

3

Re: Restrict email sending / receiving to specific email addresses

Hi ZhangHuangbin,

Your link was very helpful for me to explore the requirement. I could able to achieve what I want. Thanks so much. What I did was I installed postfix and policyd as check_policy_service . I just wondering can I control policyd (using webui) if I installed through iRedmail ?? Or I need to go for iRedAPD ??

4

Re: Restrict email sending / receiving to specific email addresses

shamjith wrote:

I just wondering can I control policyd (using webui) if I installed through iRedmail ?? Or I need to go for iRedAPD ??

This feature is provided by iRedAPD.