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.

Adding Email Alias

Discussion in 'E-mail Discussions' started by Tux-e-do, Jul 29, 2002.

  1. Tux-e-do

    Tux-e-do Member

    Joined:
    Jul 17, 2002
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Hi all,

    If someone could help me with a question this would be great help...thanks.

    I'm looking at setting up a free web based email service where users can sign up and obtain a free email account as part of my usergroup portal.

    Can email alias' be added through a script? or can I only add them through CPanel?

    Your help is greatly appreciated.

    Tux
     
  2. Tux-e-do

    Tux-e-do Member

    Joined:
    Jul 17, 2002
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    No problems I worked it out.
     
  3. mattbates

    mattbates Registered

    Joined:
    Jul 31, 2002
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    ..the solution?

    I've just posted a new topic on a similar query...

    what was the solution for you?
     
  4. Tux-e-do

    Tux-e-do Member

    Joined:
    Jul 17, 2002
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Its a combination of inserting a user into the etc/passwd and etc/shadow file and then creating a folder under mail

    This then allows the user to login to the email client.
     
  5. carperman

    carperman Well-Known Member

    Joined:
    Feb 7, 2002
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    any chance of some more info on this?

    cheers
     
  6. Tux-e-do

    Tux-e-do Member

    Joined:
    Jul 17, 2002
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    What do you mean more info?

    I can't get any more specific.

    Under your home directory there will be a folder called etc under this is a passwd and shadow file, the shadow file will have the encrypted password.

    Under your home directory there will also be a folder called mail, you need to create the users name under this folder.

    e.g. if your users names is carperman then the folder will also be carperman

    E.g. mail/carperman

    Thats it.

    Good luck

    Tux
     
  7. jimcarter

    jimcarter Well-Known Member

    Joined:
    Jun 30, 2002
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    UK
    he means more info like code examples or how the password file is encrypted, the way you explain it there could be loads of different ways to do it,
    anyway here is my code
    http://www.1337ster.com/newmailuser.phps
    dont forget to chmod the mail and etc directories so that you can edit the files and create a new mail directory
    hope this helps :)
     
  8. Tux-e-do

    Tux-e-do Member

    Joined:
    Jul 17, 2002
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Well there you go!
     
  9. carperman

    carperman Well-Known Member

    Joined:
    Feb 7, 2002
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for replies, i was thinking more of an automated method of creating a webmail only user for one of my websites.

    User could signup via form which would create webmail user, account would then need to be authorised by admin.

    cheers
     
Loading...

Share This Page