1

Topic: Email inbound and outbound restrictions

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.3
- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
- Linux/BSD distribution name and version: Ubuntu 24
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
We would like to configure IRedMail server to meet the following requirements:

1. Allow incoming emails from all external domains to all users.
2. Restrict outgoing emails for all users so they can only send to a list of allowed domains.
3. Privileged users will receive and send to all external domains.

Could you please review this and advise on the correct configuration?

Thanks,
Srinivasa Gowd.

----

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

2

Re: Email inbound and outbound restrictions

you would need to implement this on your own

it is handled in smtpd_recipient_restrictions

2. Restrict outgoing emails for all users so they can only send to a list of allowed domains.

this is kinda easy, but a combination of both will get a bit tricky

3

Re: Email inbound and outbound restrictions

Some AI query give starting hints.  FYI

4

Re: Email inbound and outbound restrictions

Srinivasa Gowd S wrote:

1. Allow incoming emails from all external domains to all users.
2. Restrict outgoing emails for all users so they can only send to a list of allowed domains.
3. Privileged users will receive and send to all external domains.

All could be done with iRedAPD "throttle" plugin. Read the comment lines in throttle plugin:
https://github.com/iredmail/iRedAPD/blo … hrottle.py