Page 1 of 1

creating email aliases on the fly with php?

Posted: Wed Jul 30, 2008 10:10 am
by dm0nkey
Is it possible to create email aliases on the fly with PHP.

For example, if I want users who create an account on my website, I want to create an associated email alias for them with my domain name. So in essence, there can be multiple email aliases that is associated with one mailbox.

1) User comes on my website http://www.mydomain.com
2) Creates an account with the user 'dm0nkey'
3) My script creates an email alias on the fly for 'dm0nkey@mydomain.com'

Re: creating email aliases on the fly with php?

Posted: Wed Jul 30, 2008 10:15 am
by jaoudestudios
Yes but you will have to drop into the shell from php

Re: creating email aliases on the fly with php?

Posted: Wed Jul 30, 2008 10:21 am
by dm0nkey
jaoudestudios wrote:Yes but you will have to drop into the shell from php
do you know of any sample scripts out there that will work for my purposes?

Re: creating email aliases on the fly with php?

Posted: Wed Jul 30, 2008 10:28 am
by jaoudestudios
I went to the obvious place, Google and did a search, there are plenty of results.

Here is one that caught my eye...
http://www.zubrag.com/scripts/cpanel-cr ... ccount.php

Re: creating email aliases on the fly with php?

Posted: Wed Jul 30, 2008 11:18 am
by dm0nkey
jaoudestudios wrote:I went to the obvious place, Google and did a search, there are plenty of results.

Here is one that caught my eye...
http://www.zubrag.com/scripts/cpanel-cr ... ccount.php
Does it matter that I use Plesk instead of CPanel?

Re: creating email aliases on the fly with php?

Posted: Wed Jul 30, 2008 11:20 am
by jaoudestudios
You will have to read the article.

However, it should not do as both access and save everything in a database.

Re: creating email aliases on the fly with php?

Posted: Wed Jul 30, 2008 11:48 am
by dm0nkey
jaoudestudios wrote:You will have to read the article.

However, it should not do as both access and save everything in a database.
It's making a call to this URL which may not be present on my server:

/frontend/$cpskin/mail/doaddpop.html?