1

Topic: Disable receve mail from internet

============ Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: debianx64 8.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====
Hi!
I need to disable some users to receive mail from the Internet by limiting their local domain. How is it better to do?

----

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

2

Re: Disable receve mail from internet

Assume your local user is "user@mydomain.com", try this:

cd /opt/iredapd/tools/
python wblist_admin.py --account 'user@mydomain.com' --add --blacklist '@.'         # Block incoming emails from all (@.)
python wblist_admin.py --account 'user@mydomain.com' --add --whitelist  '@mydomain.com'         # Allow incoming emails from domain 'mydomain.com'

FYI: http://www.iredmail.org/docs/manage.iredapd.html