Web Hosting Talk







View Full Version : offering email addresses, not accounts


WebEnzyme
04-16-2006, 12:43 AM
Hello

is there a way to allow members or visitors of a website to automatically register their email addresses? (no actual physical box on the server - so not accounts)

so they would pick their email address, and then be able to also choose the forward they want to have it set to

for example: I register name@website.com then can forward it to joe@yahoo.com

this is usually done manually in cpanel.. but any way to make it automatic?

thanks!

Burhan
04-16-2006, 02:04 AM
Sure, you can just edit the forward aliases file for that domain (however, to do this you would need root-level access to your box). I am not sure if cpanel's API allows you this functionality (last time I checked it did not).

The file for forwards on cpanel boxes is :

/etc/valiases/domain.tld

Format of the file is

foo@domain.com: address1@domain2.com [, address2@domain3.com ]

If you wanted to forward name@website.com to joey@yahoo.com and joey@hotmail.com:

name@website.com: joey@yahoo.com, joey@hotmail.com

Hopefully, I didn't miss anything because I haven't messed with cpanel in a long time :)

Azavia
04-16-2006, 12:25 PM
CPanel's API doesn't allow for it, but you could always use CURL to login to CPanel and submit the necessary data.

WebEnzyme
04-16-2006, 05:54 PM
hey

so this would mean a constant forward address for each email address right? i.e whatever email addresses are created, they will all forward to the same address..

its not what I want actually. I want a visitor to my website to be able to register an email address, and then be able to log in to his profile or whatever, and forward that email address to whatever other email account he already has :)

I suppose thats a little be too much eh?

Azavia
04-16-2006, 07:50 PM
No, you should be able to do what you want with the method I mentioned.

WebEnzyme
04-19-2006, 04:53 PM
Hey

you mean CURL? what is it exactly? I never heard of it

celio
05-18-2006, 07:03 PM
Hello,
I am interested in the same thing. Have you found a way to do it ?

C.