1

Topic: Deny domains from sending

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.8.5
- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
- Linux/BSD distribution name and version: Debian 6.0.10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  LDAP
- Web server (Apache or Nginx): Apache/2.2.16
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi

As you may see in the versions, this is regarding an incredibly old mail server. We have migrated over to a new (iredmail) mail server, but we want to keep the old mail server for a while still.

I have been looking the internet up and down about this, but whatever I do, I simply cannot get it to work.
I want to keep our old mail accounts available to *receive* mail, but want to block *sending* mail, and it *has* to be domain specific, because there are still functioning domains from customers on the old mail server (they'll be moved as well, just quite a bit later; company prioritization).

I have tried so many things, like adding ".@" in the blacklisting on a per user basis, I have used various postfix settings and postfix DBs to deny sending with domain or user, and I have also tried deny on a per client basis, and nothing works, they're still sending mails.

Do any of you have any tricks up your sleeve? What can I do to deny sending on a per domain/per user basis?

----

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

2

Re: Deny domains from sending

Remove ldap attribute/value pairs from these LDAP users:

enabledService=smtp
enabledService=smtpsecured
enabledService=smtptls

Note: you may not have the 3rd key/value pair since it's introduced in newer iRedMail releases.