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 [email protected].

 

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.

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.

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!

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

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.