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.

/home/$user/public_html/mail - why is it for??

Discussion in 'E-mail Discussions' started by WMS, Oct 27, 2003.

  1. WMS

    WMS Active Member

    Joined:
    Jul 18, 2003
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Moscow
    I've noticed that wwwacct now creates directory "mail" under "public_html" for every new account.

    Why?

    What for?
     
  2. easyhoster1

    easyhoster1 Well-Known Member

    Joined:
    Sep 25, 2003
    Messages:
    659
    Likes Received:
    0
    Trophy Points:
    16
    Same here and now we have authentication problems, on this machine the default usr can no longer pop the box. On another machine, the default is fine, but the addon mailboxes are not able to authenticate. We need this fixed asap. Here is an error in the log file.

    Oct 27 08:51:29 1colo cpanelpop[91408]: User not found user=mistyw homedir= passwd=/etc/master.passwd
    Oct 27 08:51:29 1colo cpanelpop[91408]: User not found user=mistyw homedir=/home/planoguy passwd=/home/planoguy/etc/shadow

    As you can see, the user mistyw is trying to authenticate. However, that user does not belong under planoguy home directory. How can we get this fixed. I have over 500 users having problems.

    And yes, why is the mail directory being created under /public_html now?
     
  3. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    probably a bug, submit a bug.
     
  4. NeutralGold

    NeutralGold Well-Known Member

    Joined:
    Jun 5, 2002
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Did you place a folder called mail in your cpanel skel directory? You might want to see if there's one in there and remove it, or it is infact a bug caused by the creation of the mail folder above public_html placing it in the wrong place or making a duplicate folder below public.
     
  5. WMS

    WMS Active Member

    Joined:
    Jul 18, 2003
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Moscow
    I'm not so stupid.:) First of all, I've checked my skel.
    It's a bug (or feature).

    It's from /scripts/wwwacct (line #18845):
    Code:
    mkdir("$mnt/$user",0755);
    mkdir("$mnt/$user/mail",0770);
    mkdir("$mnt/$user/public_html",0755);
    mkdir("$mnt/$user/public_html/mail",0700); <-- LOOK HERE
    mkdir("$mnt/$user/public_html/cgi-bin",0755);
    mkdir("$mnt/$user/public_ftp",0750);
    mkdir("$mnt/$user/public_ftp/incoming",0777);
    
    You can check it.
     
    #5 WMS, Oct 29, 2003
    Last edited: Oct 29, 2003
  6. Imai

    Imai Well-Known Member

    Joined:
    Aug 11, 2003
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
     
  7. easyhoster1

    easyhoster1 Well-Known Member

    Joined:
    Sep 25, 2003
    Messages:
    659
    Likes Received:
    0
    Trophy Points:
    16
    Hi Imai

    I submitted a tckiet and c-panel told me to run this as root.

    touch /home/username/mail/inbox ; /scripts/mailperm

    Replace the username above to the account username. This fixed our problem.

    Thanks
     
  8. Lamar

    Lamar Well-Known Member

    Joined:
    Jan 9, 2002
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    6
    Was this for the default email address alone?....or all mail accounts?
     
  9. easyhoster1

    easyhoster1 Well-Known Member

    Joined:
    Sep 25, 2003
    Messages:
    659
    Likes Received:
    0
    Trophy Points:
    16
    One box it was the default users only, another box it was just the add on mail boxes. The command will fix any user that has the problem.
     
  10. Priest

    Priest Registered

    Joined:
    Jul 31, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    New York City
    So... anyone know why the new "mail" directory is being created inside the public_html directory, in addition to where the regular mail directory is created?

    Thanks,
    -p-
     
  11. markie

    markie BANNED

    Joined:
    Oct 5, 2003
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    0
    I was wondering the same thing. All my resellers, who create accounts, are seeing /mail directory inside of public_html. :confused:
     
  12. WMS

    WMS Active Member

    Joined:
    Jul 18, 2003
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Moscow
    Cpanel support???

    Maybe someone from cpanel team explains what it is?????

    Whare are you???
     
  13. Joshfrom

    Joshfrom Well-Known Member

    Joined:
    Jun 3, 2003
    Messages:
    157
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    White Haven, PA, US
    As mentioned in another thread this is a glitch that served no real purpose and has been removed in the latest EDGE build.
     
Loading...

Share This Page