Tux-e-do

Member
Jul 17, 2002
14
0
151
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
 

mattbates

Registered
Jul 31, 2002
2
0
151
..the solution?

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

what was the solution for you?
 

Tux-e-do

Member
Jul 17, 2002
14
0
151
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.
 

Tux-e-do

Member
Jul 17, 2002
14
0
151
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
 

jimcarter

Well-Known Member
Jun 30, 2002
152
0
166
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 :)
 

carperman

Well-Known Member
Feb 7, 2002
150
0
316
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