Chad Seibert Posted March 13, 2007 Share Posted March 13, 2007 Hello, Community! Is it possible to create email addresses in php code? I have checked the documentation and can't find it anywhere. Sorry if this is a dumb question. Thanks for any assistance, Chad Seibert Quote Link to comment Share on other sites More sharing options...
aebstract Posted March 13, 2007 Share Posted March 13, 2007 What exactly do you mean by create email addresses? Quote Link to comment Share on other sites More sharing options...
Chad Seibert Posted March 13, 2007 Author Share Posted March 13, 2007 When someone comes and registers on my website, like Bob Smith, I want to be able to create the email address bob_smith@mywebsite.com. Quote Link to comment Share on other sites More sharing options...
boo_lolly Posted March 13, 2007 Share Posted March 13, 2007 When someone comes and registers on my website, like Bob Smith, I want to be able to create the email address bob_smith@mywebsite.com. well, you're getting into some complicated stuff right there. i'd look into shell scripting and perl to create email addresses on the fly. let's not forget you're going to need to integrate all of this with a mail server. Quote Link to comment Share on other sites More sharing options...
Chad Seibert Posted March 14, 2007 Author Share Posted March 14, 2007 Any resources/help to guide me along. Thanks for the assistance ! Quote Link to comment Share on other sites More sharing options...
brad Posted March 14, 2007 Share Posted March 14, 2007 do you own the server? unless you have pretty advanced hosting im not sure this will be very easy at all. Quote Link to comment Share on other sites More sharing options...
Chad Seibert Posted March 14, 2007 Author Share Posted March 14, 2007 Yes, I own the server. It's running Slackware 11. Quote Link to comment Share on other sites More sharing options...
trq Posted March 14, 2007 Share Posted March 14, 2007 All you need do is figure out the steps you take to create amail accounts now, and place those stpes into a script. php would be fine, but its probably going to be simpler through bash. Have yuo got virtual mailboxes setup on your server or do mail accounts also need a system account? On my systems its easy to add a new email address, I simply add a new system account, but you want really want to do this on a public access server. Quote Link to comment Share on other sites More sharing options...
boo_lolly Posted March 14, 2007 Share Posted March 14, 2007 just google it man. http://shilo.is-a-geek.com/slack/sendmail18.html http://www.slackbook.org/ http://www.hypexr.org/linux_mail_server.php http://www.flatmtn.com/computer/Linux-EmailServer.html http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch21_:_Configuring_Linux_Mail_Servers by the way, this is just between you and me, i'm glad you're running slackware. slackware is no piece of cake, it definitely takes an avid user to learn a distribution that takes so much manual configuration. there is no handholding with gentoo, either =). good luck! Quote Link to comment Share on other sites More sharing options...
Chad Seibert Posted March 15, 2007 Author Share Posted March 15, 2007 Hello, I just got my email system setup using sendmail. But now, how can I create a script to create the new user. "adduser -D test" still prompts for information, so how can I set it to used the default uid, group, etc. Thanks for your help ! Chad Seibert Quote Link to comment Share on other sites More sharing options...
per1os Posted March 15, 2007 Share Posted March 15, 2007 Probably do a grep for the userid and than look at the manpage for adduser on the smtp to look at the parameters needed. Quote Link to comment Share on other sites More sharing options...
Chad Seibert Posted March 15, 2007 Author Share Posted March 15, 2007 There is no manpage for adduser. Quote Link to comment Share on other sites More sharing options...
per1os Posted March 15, 2007 Share Posted March 15, 2007 What happens when u just do adduser, does it display help information? Or adduser --help Quote Link to comment Share on other sites More sharing options...
boo_lolly Posted March 15, 2007 Share Posted March 15, 2007 Hello, I just got my email system setup using sendmail. But now, how can I create a script to create the new user. "adduser -D test" still prompts for information, so how can I set it to used the default uid, group, etc. Thanks for your help ! Chad Seibert personally, to save server load, i'd write a shell script in perl, and use the shell_exec() command in my php script to run it and add a user to the mail accounts list. does that make sense? 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.