The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

User is not authorized for Mail

Discussion in 'E-mail Discussions' started by Jcats, Nov 10, 2016.

Tags:
  1. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    588
    Likes Received:
    88
    Trophy Points:
    153
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    This isn't affecting everyone, its a specific user. When they log into webmail they get:

    Code:
    User user@domain.com is not authorized for Mail (Host: x.x.x.x).
    Their ISP IP is in a few blacklists which I think is the problem, I tried to whitelist it in Exim Configuration but still no go. I can see in cPanel logs them getting 401's.

    Code:
    x.x.x.x - - [11/10/2016:19:14:27 -0000] "POST /cpsess0753969736/horde/services/ajax.php/horde/topbarUpdate HTTP/1.1" 401 0 "https://server.domain.com:2096/cpsess0753969736/horde/services/portal/" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0" "-" "-" 2096
    
    Any ideas?
     
    #1 Jcats, Nov 10, 2016
    Last edited by a moderator: Nov 10, 2016
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    543
    Likes Received:
    39
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi,

    It usually happens when cpanel update has issue OR you migrate the account.

    Try to update cPanel forcefully using below command.

    Code:
    /scripts/upcp --force
    
    If problem persists then Horde database might be corrupt. Then you have check HORDE database using command

    Code:
    mysqlcheck horde
    The above command will the table which is corrupted

    It will show the table which is corrupted
     
  3. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    588
    Likes Received:
    88
    Trophy Points:
    153
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    No because its literally only affecting the user with a specific IP that is blacklisted, their ISPs IP is blacklisted.
     
  4. Eminds

    Eminds Well-Known Member

    Joined:
    Nov 10, 2016
    Messages:
    177
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    So it must be a dedicated IP assigned to the website with which the user's email ID is associated , changing the IP of the website account may resolve the things.
     
  5. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    588
    Likes Received:
    88
    Trophy Points:
    153
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Maybe I'm not being clear here ;) the user's ISP IP, meaning the IP that is assigned to the user's home internet is what is being blocked.
     
  6. Eminds

    Eminds Well-Known Member

    Joined:
    Nov 10, 2016
    Messages:
    177
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Well , I dont think the ISP IP will cause such issues since he is using different mail server to send the emails. You may try the below solution

    Check the HORDE database if its corrupted with the command

    mysqlcheck horde

    It will show the table which is corrupted. Replace horde_TableName.MYI with corrupted horde table name.

    myisamchk -r -o /var/lib/mysql/horde/horde_TableName.MYI

    Check webmail is working or not. If you still get the same message, then it’s time to completely reset horde database.

    Take Horde database backup with the command

    mysqldump horde > horde.sql

    Reset Horde with command below.

    /scripts/fullhordereset
     
  7. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    588
    Likes Received:
    88
    Trophy Points:
    153
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    That doesn't fix it and again, its specific to 1 persons ISP, the actual email accounts are fine, I can log into all webmail apps including horde without issue, using the same exact email addresses they are using.

    The only time the problem arises is when the person logs into their webmail account from an IP address(ISP) that is black listed. It even shows it right in the error message:

    User user@domain.com is not authorized for Mail (Host: x.x.x.x).

    where (Host: x.x.x.x) is the user's ISP IP address.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,086
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know what's configured for "SSL Protocols" on this system in "WHM >> Home >> Service Configuration >> Mailserver Configuration"? Also, what version of cPanel, and what OS is installed?

    For the specific user, could you verify their OS, and the browser they are using?

    Thank you.
     
Loading...

Share This Page