Topic: Restrict users to send mail to the Internet
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Debian 8 Jessie
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache2
- Manage mail accounts with iRedAdmin-Pro?: no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I have an iRedMail server which serves for local only mails (and other exchange servers as other subdomains) and one server with exim4 which serves as a mail gateway to Internet. Everything is ok, but our chief wants to restrict several users (about 70% of all users) to send mail to Internet.
I'm new to postfix and cannot find out how to accomplish this. Please help
Is there a way to accomplish this using LDAP backend? Something like black/white relay list? I've tried to use per-user-relayhost, but it works incorrect with subdomains.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.