How to email login suspend from cpanel
Suspending email login for a cPanel user is a useful action to take when you want to block a user from accessing their mailbox (via webmail or an email client) without deleting the account or stopping them from receiving new mail. This is often used for security reasons, such as when an account is compromised or an employee leaves a company.
There are a few ways to achieve this, depending on whether you want to suspend an individual email account or an entire cPanel user’s email service.
Method 1: Using the cPanel GUI (for a single email account)
This is the most common and direct method for managing a single email account.
- Log in to cPanel: Access the cPanel account that has the email address you want to suspend.
- Go to “Email Accounts”: In the cPanel dashboard, navigate to the Email section and click on Email Accounts.
- Manage the Email Account: Find the specific email address in the list and click the Manage button next to it.
- Adjust the “Restrictions”: On the management page for the email account, scroll down to the Restrictions section. You will see several options:
- Receiving Incoming Mail:
- Sending Outgoing Email:
- Logging In:
- Suspend Login: For the “Logging In” option, select Suspend. This will immediately prevent the user from logging in to their email account using any method (webmail, IMAP, POP3).
- Update Settings: Click the Update Email Settings button to save the changes. The account will now be unable to log in, but it will still be able to receive incoming mail.
To unsuspend the login, you would simply repeat these steps and select Allow for the “Logging In” option.
Method 2: Using the Command Line (for advanced users and administrators)
If you have root access to your server, you can use the command line to suspend a cPanel user’s email login. This is a powerful and fast method, especially for managing multiple accounts.
You would use the cPanel UAPI (Universal API) to perform this action.
To suspend an email account’s login:
uapi --user=cpaneluser Email suspend_login email=user@yourdomain.com
cpaneluser: The username of the cPanel account that owns the email address.user@yourdomain.com: The full email address whose login you want to suspend.
To unsuspend an email account’s login:
uapi --user=cpaneluser Email unsuspend_login email=user@yourdomain.com
This command works in a similar way, using the unsuspend_login function to re-enable the user’s ability to log in.
Important Considerations:
- Suspending vs. Deleting: Suspending a login is a temporary and reversible action. It’s a great alternative to deleting an account, as it retains all the emails and settings, allowing you to easily restore access later.
- Other Restrictions: Be aware that cPanel allows you to suspend different aspects of an email account independently. You can suspend outgoing mail, incoming mail, or just the login. This gives you granular control over what the user can and cannot do.
- WHM Suspension: For a more comprehensive suspension of an entire cPanel user and all their services (including all email logins), you would use the Manage Account Suspension interface in WHM. This is typically done for a serious violation or non-payment.