|
|
 Petar | 2007-10-08 18:21:58 |
Hi,
I am searching for script to create cPanel email aliases at my website.
I now how to create emails and setup forwarders, but I am searching for aliases. The main difference I am searching for is to create one main mail box and unlimited aliases. Every mail sent to eny of existing aliases will be stored into the main account. I do not want to waste space storing mails in tho places as forwarders work.
Thank you |
| |
2. Re: Mail aliases |
|
Reply |
|
|
 David Barnes | 2007-10-17 08:21:34 - In reply to message 1 from Petar |
If you create a fowarder for an email address which doesn't exist the mail will be forwarded and only stored in 1 place.
For example:
include('cPanelTools.php');
$cpanel = new cPanelTools('username','password','example.com');
// create main email address
$cpanel->emailCreate('bigemail@example.com','mypass');
// create a email forward for "smallemail@example.com" without actually creating the email address
$cpanel->emailForward('smallemail@example.com','bigemail@example.com');
All emails sent to smallemail@example.com would be forwarded and stored at bigemail@example.com |
|