Jump to content


Photo

Create Mail Accounts For My Website

mail accounts giteshss heliohost website management User Management

  • Please log in to reply
8 replies to this topic

#1 giteshss2

giteshss2

    Rank II Member

  • Members
  • PipPip
  • 98 posts
  • Gender:Male

Posted 26 January 2017 - 02:25 PM

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



#2 wolstech

wolstech

    Rank X Member

  • Root Admin
  • 10,755 posts
  • Gender:Male
  • Location:Pennsylvania

Posted 26 January 2017 - 03:22 PM

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.


Please do not PM me for support. Posting on our forums lets all of us learn.
Do you play Minecraft? | Server Monitors | And the Dumbass of the Decade award goes to...


#3 giteshss2

giteshss2

    Rank II Member

  • Members
  • PipPip
  • 98 posts
  • Gender:Male

Posted 26 January 2017 - 03:53 PM

: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



#4 wolstech

wolstech

    Rank X Member

  • Root Admin
  • 10,755 posts
  • Gender:Male
  • Location:Pennsylvania

Posted 26 January 2017 - 05:33 PM

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.


Please do not PM me for support. Posting on our forums lets all of us learn.
Do you play Minecraft? | Server Monitors | And the Dumbass of the Decade award goes to...


#5 Krydos

Krydos

    Rank X Member

  • Root Admin
  • 18,362 posts
  • Gender:Male

Posted 26 January 2017 - 08:36 PM

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.

#6 wolstech

wolstech

    Rank X Member

  • Root Admin
  • 10,755 posts
  • Gender:Male
  • Location:Pennsylvania

Posted 26 January 2017 - 11:13 PM

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 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!).


Please do not PM me for support. Posting on our forums lets all of us learn.
Do you play Minecraft? | Server Monitors | And the Dumbass of the Decade award goes to...


#7 giteshss2

giteshss2

    Rank II Member

  • Members
  • PipPip
  • 98 posts
  • Gender:Male

Posted 27 January 2017 - 12:38 AM

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.



#8 Krydos

Krydos

    Rank X Member

  • Root Admin
  • 18,362 posts
  • Gender:Male

Posted 27 January 2017 - 01:27 PM

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.

#9 giteshss2

giteshss2

    Rank II Member

  • Members
  • PipPip
  • 98 posts
  • Gender:Male

Posted 27 January 2017 - 01:32 PM

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!







Also tagged with one or more of these keywords: mail accounts, giteshss, heliohost, website management, User Management

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users