Question
Do you sometimes get an error as follows when logging into Webmail and, more specifically, Horde?
User emailuser@domainname.tld is not authorized for Mail
Answer
There are a few reasons that this error may occur. This article will go over those reasons.
- The domain name in question is the same as the hostname.
The WHM software does not permit you to use or set a hostname that is the same as a domain name, but there are ways around that and therefore, if you have accidentally set your hostname to a domain name that is reporting this issue, then that is likely the issue. To address this, simply change your hostname via WHM => Network Setup => Change Hostname
- TLS1.2 has been removed from the dovecot.conf configuration file.
This issue can be fixed within WHM => Service Configuration => Mailserver Configuration and making sure TLS1.2 is selected within the SSL Minimum Protocol section.
- The email user may have been blocked by cPHulkd. Too many login failures can cause the user to be blocked, resulting in that same error.
Check within WHM => Security Center => cPHulk Brute Force Protection (in the History Reports tab) to see if the email account is blocked.
- The Horde database may be empty or corrupted.
You can run the following command to repair any Horde SQLite database issues.
/usr/local/cpanel/bin/update_horde_config --dbonly --user=cPUsername
- Horde permissions may have been inadvertently modified.
Horde's "imp" application may have been added without correct permissions to the permissions tree. To address this issue, you can go into the Horde settings menu (gear icon) -> Administration -> Permissions, and remove "imp" from the Permissions tree so that it uses the default settings and allows Authenticated Users to use the application.
- Finally, the cpsrvd service may need a hard restart. To do that, you can just run the following:
/usr/local/cpanel/scripts/restartsrv_cpsrvd --hard
Following the above steps may solve the issue for you.