While attempting to access the webmail interface, you may see an error like the following.
[INFO]=[You do not have a user named "firstname.lastname@example.org". at /usr/local/cpanel/Cpanel/API.pm line 261.
at cpanel.pl line 1126.
cpanel::cpanel::cptt_exectag("/usr/local/cpanel/base/frontend/paper_lantern/mail/webmailfor"..., 1) called at cpanel.pl line 4606
cpanel::cpanel::run_standard_mode() called at cpanel.pl line 930
cpanel::cpanel::script("cpanel::cpanel", "./frontend/paper_lantern/mail/webmailform.html.tt") called at cpanel.pl line 326
This can be caused by the mailbox for the email account having incorrect permissions or being missing.
The mailbox will be located in the account's home directory at the following, where, DOMAIN.TLD is the domain the email address is under, and EMAILUSER is the part of the email address before the @ symbol.
The permissions should be 751 (rwxr-x--x). If it is not, the following articles cover fixing the permissions.
If the mailbox is missing, it will need to be recreated. The commands below will recreate the mailbox, where EMAILUSER is the part of the email address before the @ symbol, and ACCOUNT is the cPanel account username. /home in the first command may need to be changed if the cPanel account resides in a different home directory.
chown ACCOUNT.ACCOUNT EMAILUSER
chmod 751 EMAILUSER