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.

Mail account created - but it's not listed

Discussion in 'E-mail Discussions' started by Mnemonyss, Jul 2, 2005.

  1. Mnemonyss

    Mnemonyss Registered
    PartnerNOC

    Joined:
    Apr 6, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I and several others have tested this. The account is capable of 10 email addresses.


    It appears to be creating the emails - however it's simply not showing them for some odd reason nor can I log into any of them except the default account:

    If I log in via SSH I show there are 7 accounts - but cpanel is showing only the main/default account.
    I am not getting ANY error messages at all.

    The following also has been done:
    Tried running
    /scripts/fixmailman
    /scripts/exim4
    /scripts/reinstallmailman
    /scripts/fixvalisases
    /scripts/fixeverything

    no change

    Anyone have any ideas about what's going on?
     
    #1 Mnemonyss, Jul 2, 2005
    Last edited: Jul 2, 2005
  2. lankyb

    lankyb Well-Known Member

    Joined:
    Sep 21, 2004
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Peterborough, UK
    Check the following files for your mail account details:

    /home/<<USERNAME>>/ect/<<DOMAIN>>/passwd
    /home/<<USERNAME>>/ect/<<DOMAIN>>/shadow

    I did a test by removing one of my mail account, and the account disappered from cPanel.

    the file should look like this:

    Code:
    PASSWD: 
    testaccount1:x:504:506::/home/myusername/mail/mydomain.co.uk/testaccount1:/usr/local/cpanel/bin/jailshell
    testaccount2:x:504:506::/home/myusername/mail/mydomain.co.uk/testaccount2:/usr/local/cpanel/bin/jailshell
    
    This is how the layout is done (please correct me if this is wrong). I have used numbers to represent their placement, use the above example to what it should look like.

    Code:
    1:2:3::4:5
    
    (1) the mail accounts username, you do not have to include the domain name.
    (2) the skin of which cpanel will use.
    (3) this is the user account number, this number should be the same number as the cPanel account. You can get this number from this file: /ect/passwd
    (4) this is the directory to which will the mail account's files will be kept
    (5) this is file which will deal with the login of the account. By default its '/bin/bash', but i have jailsshell running on my cPanel server, so mine is '/usr/local/cpanel/bin/jailshell'

    Set all these details to your mail's PASSWD file, then within cpanel reset their passwords, this will repopulate the SHADOW file.

    -----------------------------

    Sorry this is very sketchy, and i'm sure there is a easier way but i dont know it :)
    Hopefully it will still help you!
     
  3. Mnemonyss

    Mnemonyss Registered
    PartnerNOC

    Joined:
    Apr 6, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    You are awesome :)

    Thanks so much - the server was missing the whole directory structure for that.

    I recreated it all and everything is working beautifully now :)

    Thank you so much for you wonderful help!
     
Loading...

Share This Page