1

Topic: Temporarily switch off user access for all logins on a domain

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.0
- Linux/BSD distribution name and version: Centos 6.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro? yes
- Related log if you're reporting an issue:
====

Hi there, I'm after a simple way to switch off & then back on access to a single domain within iRedAdmin-Pro (basically, it's someone that hasn't paid their hosting fees, and once they pay I'll switch them back on again)

Is un-ticking "Enable this domain" sufficient to do this? or does this also disable receiving of email into the domain - I need to just disable authenticated IMAP/POP access to all accounts within the domain, but still received external email

----

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

2

Re: Temporarily switch off user access for all logins on a domain

You have to do it with SQL command line manually. for example:

sql> USE vmail;
sql> UPDATE mailbox SET enableimap=0, enableimapsecured=0, enablepop3=0, enablepop3secured=0, enablesmtp=0, enablesmtpsecured=0 WHERE domain='THE_DOMAIN';

With this change, it will disable POP3/IMAP/SMTP access, but still accept emails sent to these users.

To grant access, just set value of these columns to 1 (digital number 1, not letter 'L').