Jump to content

creating email addresses in php code


Chad Seibert

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.