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.

No mail, but default mail accounts work

Discussion in 'E-mail Discussions' started by Dannymh, Sep 1, 2010.

  1. Dannymh

    Dannymh Member

    Joined:
    Jun 30, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I setup cpanel and setup an account "silvert" I then created an additional email within this account "admin@<domain>.net"

    This was working up until a few weeks ago. I didnt make any configurations changes, but now any mail account I add to any accounts on my site do not work.

    The folder/account is created under /home/<account>/mail/<account>/

    However when I try to login to webmail I it gets me to the page which allows me to select which mail account I want to use (i.e. squirrelmail") I click on this and it asks me to login again. I put in the correct credentials and get an error that says that the user and password are unknown.

    I cant think of anything that I changed and everything I have checked seems correct. I tried restarting IMAP and the entire server but still no luck.

    Any suggestions on what I can check and how, or what may cause/fix this

    Dan
     
  2. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    447
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    Do you get logged in first time into the webmail interface where you get the option of horde/squirrel/roundcube. Normally this interface is visible once you have logged in successfully.

    Is it an issue with only one domain/account. There could be a number of reasons for it. Check if permissions of the /home/user/etc/ are correct. You can recursively chown the /home/user/etc/ folder to user.user and run the command below.

    /scripts/mailperm user

    If this doesn't work, you might want to open a ticket with cPanel.
     
  3. Dannymh

    Dannymh Member

    Joined:
    Jun 30, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    After loggin in I get to the screen to choose the themail client I want to use so it logs in via CPanel but then horde, squirel and roundcube all fail.

    Looking under

    /home/silvert/etc

    No account/folder is created for the admin@domain.com email address

    however under
    /home/silvert/mail

    the account does get created, but the owner is silvert/silvert
     
  4. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    447
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    Did you try the mailperm script. I would recommend you open a ticket with cPanel for a swift solution.
     
  5. Dannymh

    Dannymh Member

    Joined:
    Jun 30, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    with the mail perm script do I just run it as

    mailperm admin@domain.com

    and it will only do the permissions for that user?
     
  6. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    447
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    /scripts/mailperm --verbose user

    where 'user' should be the username of the cPanel account.

     
  7. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Good information

    What JawadArshad said about /scripts/mailperm is correct, and there are also a few other arguments that can be passed on the command line. You can see full usage information by passing the --help argument:

    Code:
    $ /scripts/mailperm --help
    Usage: mailperm <modifier> <user>
    
    Arguments:
        <user> - Optional argument to specify the scope of
            the permissions checks. The specified user must
            be a valid system account.
    
    Modifier Flags:
        --skiplocaldomains - This optional argument bypasses
            addition of missing domains to the /etc/localdomains
            file when specified. The localdomains file specifies
            to Exim that it should always accept delivery for 
            the listed domains. Remote domains are removed from
            /etc/localdomains regardless of this flag.
    
        --skipserverperm - This optional flag prevents modification
            of the mail system files used by Exim and limits the 
            scope of permission modifications to the mail account
            files.
    
        --verbose - This optional flag signals the utility to
            report detected permissions problems per user prior
            to modifying any permissions.
           
        --help - display this message and exit.
    I like to use --verbose, because it will display any errors that it fixes. Also, if you run /scripts/mailperm without any arguments at all, it will check and fix all permissions for all mail accounts on the server, not just those belonging to a specific account.
     
Loading...

Share This Page