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.

Inbox and Domain.com Folders?

Discussion in 'General Discussion' started by Jeff75, Jan 31, 2004.

  1. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    Can somebody tell me why there's space taken up in the /home/login/mail/inbox then in the /home/login/mail/domain.com directories? There's about 4 times as much space taken up in the domain.com directory and I was just curious to know why as it looks like mail is being duplicated.
     
  2. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    Can somebody also tell me where there's duplicate directories for a POP3 account? For example, for an email named mike there's a /home/login/mail/mike and a /home/login/mail/domain.com/mike directory. Are both really necessary? If so, what would happen if I deleted the /home/login/mail/mike directory?

    All these freakin mail directories/files sure do make things confusing. :confused:
     
  3. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    Anybody???
     
  4. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    They are hard links. I believe they're necessary to keep backwards compatibility with Cpanel's old mail system (when subdomains and parked domains couldn't have their own accounts).

    Actually, they *should* be hard links. Try this:

    # cd /home/username/mail
    # ls -i login/inbox
    2508332 login/inbox
    # ls -i domain.com/login/inbox
    2508332 domain.com/login/inbox

    The number on the left (which will be different of course) is the inode number. Both names should be linked to the same inode.

    If they aren't then there's a problem which you might solve by running the check mail boxes function in WHM.

    Note that the space taken by the inbox files isn't doubled. They just happen to have two names. For more on links:

    # info ln

    See also here: http://forums.cpanel.net/showthread.php?s=&threadid=1358
     
    #4 Juanra, Feb 1, 2004
    Last edited: Feb 1, 2004
  5. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    I did this, and the inode numbers are not the same. Here is one example:

    root@www3 [/home/login/mail]# ls -i bob/inbox
    2486225 bob/inbox
    root@www3 [/home/login/mail]# ls -i domain.com/bob/inbox
    1014279 domain.com/bob/inbox

    I ran the "fix mailboxes" but it didn't find any mailboxes with problems.

    Any other suggestions on how to clean this up? Would it be save to remove all the user directories under mail, and leave everything the way it us under mail/domain.com ?

    - Scott
     
    #5 sneader, Sep 28, 2004
    Last edited: Sep 28, 2004
  6. jrehmer

    jrehmer Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    287
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Denver, CO

    I agree, I have the same problem and the files are indefinately NOT hard-linked.

    Anyone have any more ideas as to why this is happening? Apparently exim is delivering to both files?

    Jesse Rehmer
    www.blueworldhosting.com
     
  7. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    the latest news from C-panel confirms that we do not require that hard-link any more since they have removed it because of issues with add-on and parked domains. The e-mails will work without these inboxes linked.
     
  8. Przemek

    Przemek Active Member

    Joined:
    Jan 20, 2003
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    I have a client who reported problems with it. There is a mailbox with /home/user/mail/user/inbox and /home/yser/mail/domain.com/user/inbox

    Usually all mails are delivered to second mailbox but recently he discovered that sometimes mails are delivered to first mailbox and he can't download it with mail program. What can it be?
     
  9. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    If cPanel really said that, they're talking rubbish. You do need the hardlink, otherwise the mailbox quota will be calculated incorrectly and cause havoc for users.

    It's a long running problem that has been known about and reported for a very long time and something that cPanel still has not fixed.
     
  10. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    ===============================================================
    cPanel does not hardlink these 2 mail boxes anymore. It was causing problems with addon domains, etc. I would suggest moving the /home/user/mail/username file to another location and testing mail after you have done that. (Please move it instead of deleting it completely jsut to be safe) If that does not solve your mail issues, please let me know. Thanks.
    --
    Shanna Cote
    cPanel Support Staff
    ===============================================================
    and after this we had a long fight and then they just proved to me that the mails will work fine; by deleting what they have said and sending mails.

    But at the same time iam not aware of mailbox quota issue involved; but iam convinced that the mails will work in the way they say.
     
  11. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Nice, so to fix one problem they've created another major one and not fixed it. Charming.
     
  12. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    :rolleyes: i will clear that with them. :)
     
Loading...

Share This Page