1

Topic: Disable sending email for a certain user

I would like to disable sending mails for a certain user, so the user is only allowed to receive mails.

Thanks, David

----

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

2

Re: Disable sending email for a certain user

We need basic info of your iRedMail server to give you accurate answer, please always add this info while creating a new topic.

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

With this info, i have to write answers for SQL/LDAP backends, it's not good to me. sad

- If you're running SQL backends, update "vmail.mailbox" table, set the column "enablesmtp", "enablesmtpsecured" and "enablesmtptls" to 0. This will disable smtp service for this user.
- If you're running LDAP backend, remove "enabledService=smtp", "enabledService=smtpsecured" and "enabledService=smtptls" from this user's LDIF data.