1

Topic: How to block all outbound mail

I am using iredmail with mysql. Now I want to build an inbound only server (strange, Huh?) I don't want any mail left my server. I would do this by setting a ufw rule and block port 35, this works,but not gracefully, since it would wait in the mail queue.

----

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

2

Re: How to block all outbound mail

Two solutions, you can try either or both.

1) You can use a global blacklist with iRedAPD to block all outgoing emails. For example:

cd /opt/iredapd/tools/
python3 wblist_admin.py --outbound --add --blacklist "@."

TIP: "@." (@ and a dot, without quotes) catches all addresses.

FYI: https://docs.iredmail.org/manage.iredap … blacklists

2) In "vmail" sql database, set value of SQL column "mailbox.enablesmtp" and "mailbox.enablesmtpsecured" to 0, this will disable SMTP service for user directly, hence no one can send email.