koure Posted February 20, 2008 Share Posted February 20, 2008 Hi I'm trying to develop a web mail system. Any user can create an e-mail account and then enjoy the features that are provided by email applications(send-receive emails). The problem is that I don't know how to register a new user. For example I save their details to my db but how the names can be created in the email server list. And also does anybody know how to create such a server? Thanks in advance Quote Link to comment Share on other sites More sharing options...
trq Posted February 20, 2008 Share Posted February 20, 2008 Unless your an experienced *nix admin I would suggest this is a fairly coomplex task. What mail server are you using and do you have root access to the OS it is operating on? Quote Link to comment Share on other sites More sharing options...
steviewdr Posted February 20, 2008 Share Posted February 20, 2008 I suggest looking at either: squirrelmail roundcube horde They have all the features you would need. Squirrelmail would be the most lightweight to use. -steve Quote Link to comment Share on other sites More sharing options...
trq Posted February 20, 2008 Share Posted February 20, 2008 Aren't the mentioned applications simply mail clients? They don't actually create accounts on the mail server? Quote Link to comment Share on other sites More sharing options...
koure Posted February 20, 2008 Author Share Posted February 20, 2008 I am not using any program yet from mail server. I just developed the functions of the email system. send and email, receive, inbox etc. I would like to know how can I implement the "backend" of the system. Quote Link to comment Share on other sites More sharing options...
steviewdr Posted February 20, 2008 Share Posted February 20, 2008 Aren't the mentioned applications simply mail clients? They don't actually create accounts on the mail server? Indeed. I dont think koure wants to code a mailserver in php :-) Koure, is it the imap features in php that you developed? Putting all the individual imap_open() functions into a working client will be quite a lot of work, and to be honest would require a large tutorial. -steve Quote Link to comment Share on other sites More sharing options...
trq Posted February 20, 2008 Share Posted February 20, 2008 Aren't the mentioned applications simply mail clients? They don't actually create accounts on the mail server? Indeed. I dont think koure wants to code a mailserver in php :-) I'm not suggesting he was trying to build a mail server in php, simply stating that the applications you pointed out will not create accounts on a mail server either. all they do is access existing accounts. Configuring a mail server to be able to host multiple accounts on the same domain is quite a complex task. By default, mail servers can only host mail accounts for actual system users. That is to say, users whom have a shell account on the server machine. In order to dynamically add virtual users (that is users whom do not have shell access to the server machine) you will need to reconfigure the mail server to read its users from a database (rather than the default flat file setup). Last time I had to do such a thing I followed this guide,. Once you have configured the mail server to host multiple virtual accounts it is then quite simple to add new users by running a simple INSERT query. As I said, this really isn't a simple task and you will need root access to the server machine. Have fun. Quote Link to comment Share on other sites More sharing options...
koure Posted February 21, 2008 Author Share Posted February 21, 2008 Thanks a lot for your replies. thorpe I followed the link you sent me. Thanks. But these seem very complex for me. Is there any more easy way to implement this? Quote Link to comment Share on other sites More sharing options...
trq Posted February 22, 2008 Share Posted February 22, 2008 Is there any more easy way to implement this? I'm afraid not. Quote Link to comment Share on other sites More sharing options...
koure Posted February 22, 2008 Author Share Posted February 22, 2008 Can I setup the mail server using Fedora Core 8? Thanks again Quote Link to comment Share on other sites More sharing options...
trq Posted February 24, 2008 Share Posted February 24, 2008 Yes, its no different in any distro. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.