Jump to content

Recommended Posts

Posted

Greetings!

 

The forum is quiet! So, let's have a discussion!

 

I want to create a website where the users visiting my website can sign up and log in. Not all, but some; who are meant to sign up!

So:

  • eg. for website example.tk, user should get an email id - user@example.tk.
  • I can do it from my control panel, but i don't want to do so.
  • I want users to signup and the username they enter there should be their address and should me added to my domain's email addresses.
  • Users should be able to access their accounts using webmail - which I can simply provide the link!

This is an experimental system. I don't wanna overload tommy. But this can be useful to me someday!

 

Please guide me through this!

I guess the question is clear. If it isn't, let me know. I'll explain.

 

Thanks Alot

Posted

Doing this on our service would get you suspended. Hosting accounts are limited to sending 50 emails a day. We restrict this because the end result would be our server getting blacklisted for sending spam as soon as a script or webmail account gets abused. The email functionality we provide is really intended for the account owner's software and webmail, and maybe a webmail for a few friends/family members. It's not meant to be used to operate a public email service.

 

I just use forwarders to a gmail account myself, that way I can receive email through my domain (which doesn't count against you) but the sent mail comes from Gmail, not HelioHost.

 

If you're looking to run an email service, I'd recommend getting a VPS and setting up a mail server.

Posted

:D Thanks!

 

 

This is an experimental system. I don't wanna overload tommy. But this can be useful to me someday!

 

I care for Heliohost too, since I am a user!

No way creating a spam web system or so. Infact I don't even wanna drive the system on Heliohost ANYHOW. (even if it isn't againt rules and Restricted)

I love my account with heliohost. :PLEASE DONT 'SUSPEND ME! Its just a post! :unsure:

Also, I too have set up my mail client against gmail. No doubt at that!...just wondering to learn something new; courtesy: heliohost!!!!

 

Thought this and posted! To learn how I can build a system!!!

 

Ok wolstech. Just be clear that I don't wanna build a public system. But still, can you guide me how can I create an experimental system? AGAIN REPEATING: NOT AGAINST ANY RULES!

JUST TO LEARN.

Will take care to avoid SUSPENSION. And continue being a Good Guy! :D

 

Please consider once that I don't wanna buy a VPS. But "can" I PROGRAMATICALLY CREATE AN EMAIL ADDRESS FOR MY OWN? AT MY OWN DOMAIN?

 

Not talking about PUBLIC DOMAIN.

JUST WANNA DO IT WITHOUT CONTROL PANEL INTERFACE for MYSELF

Posted

Part of the problem here is that there's actually no way to do this easily. cPanel has an API (manual can be found here in the SDK), but I don't believe we give users enough access to actually make it useful (I've never been able to generate the security token you need to actually use it...every example I've seen or tried required WHM access, which only root admins have).

 

If anyone would know how to use this API and whether a regular user can use it, it's Krydos. He's almost certainly used it for the various integrations with our website.

Posted

It would be possible to do this without even using cpanel api. You could create a default email address in cpanel. What this does is ANYTHING that anyone emails to your domain ends up in this inbox. So even if you don't create krydos@example.com and someone sends an email it would end up in default@example.com if that was your default address. Then you could write a script in php or something to create accounts for people. Then when they log in to your script it looks through the default email address that has everyone's emails and only shows the ones that line up with their username.

  • Like 1
Posted

It would be possible to do this without even using cpanel api. You could create a default email address in cpanel. What this does is ANYTHING that anyone emails to your domain ends up in this inbox. So even if you don't create krydos@example.com and someone sends an email it would end up in default@example.com if that was your default address. Then you could write a script in php or something to create accounts for people. Then when they log in to your script it looks through the default email address that has everyone's emails and only shows the ones that line up with their username.

I've built a variation of this for a charity I do work for. We pick an address (e.g. first.last@clients.example.com), and that person starts to receive mail, typically appointment reminder type stuff. The clients.example.com domain has a catch-all mailbox on it. A cron sorts the mail into folders by "To" address and charity advocates can see the folders and view the mail sorted by person. Client access to own mail would be quite easy to add...

 

The week I spent building my solution taught me more about mail servers, IMAP, and handling mail in PHP than I ever wanted to know. :P

 

I'd left that option out intentionally in my post above since it's not the right way to do it, however it does work when built right, and should work on our servers.

Just remember though: If you do this, it's a shared email account with users that have a filtered view, as opposed to proper separate email accounts. Make sure you use a good password on the default mail account itself (nobody should be accessing it outside of the software you develop, otherwise they'd see everybody's mail!).

  • Like 1
Posted

Pleased to see interesting replies! Thanks a lot.

 

It would be possible to do this without even using cpanel api. You could create a default email address in cpanel. What this does is ANYTHING that anyone emails to your domain ends up in this inbox. So even if you don't create krydos@example.com and someone sends an email it would end up in default@example.com if that was your default address. Then you could write a script in php or something to create accounts for people. Then when they log in to your script it looks through the default email address that has everyone's emails and only shows the ones that line up with their username.

 

Any wiki article about this? Would love to give it a try! FOR MYSELF!

 

The week I spent building my solution taught me more about mail servers, IMAP, and handling mail in PHP than I ever wanted to know. :P

 

Would love to learn too. can you give any suggestions on where to start with. any link to your wiki page on this? or any tutorial link?



It seems awesome to learn the things that you use regularly without knowing.

Thanks again for such an interesting post! Guide - if possible.

Posted

I don't know if there's a wiki link because I just came up with it off the top of my head. Why don't you do some of your own research to see if anyone has done it before? Like wolstech said it's not an original idea. It also depends a lot on what language you're going to use to script it.

Posted

Sure krydos! I will try to find some solution to this! Thanks a lot for your help!

Would love to hear from wolstech over this, if he can guide some!

 

Thanks A lot!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...