Web Hosting Talk







View Full Version : Email Alias File?


web2k6
11-27-2007, 04:28 PM
Hi,

Are email aliases (forwarders) stored in a file on a Linux server? Does anyone know where this file is located exactly, so I can modify it using PHP? In other words instead of using the web host control panel I will add/modify/delete using a PHP page.

Thanks.

activelobby4u
11-28-2007, 08:40 AM
Are you using a hosting control panel ?

In either case , if you own just a domain, you will not be able to do it as the alias path is in the system directories inaccesible to normal domain users .

Steve_Arm
11-28-2007, 08:47 AM
Normally this file is only writable by root.

kainazzzo
11-28-2007, 10:24 AM
What mail exchanger are you using? Different software packages store this info in different places. Personally, I think your best bet is to get your hands on something like cPanel. That will make this sort of thing much easier for everyone.

activelobby4u
11-28-2007, 12:16 PM
I think your best bet is to get your hands on something like cPanel. That will make this sort of thing much easier for everyone.

I bet he is using one of cpanel or plesk. web2k6 , please make it clear :)

kainazzzo
11-28-2007, 12:34 PM
If that's the case, then there would be no need to write a separate php application.. that is all built-in to cPanel or plesk, which is why I didn't think he was using anything like that since he wouldn't have a need.

I guess he could be doing something other than making it easier for clients to edit their email aliases/forwarders, though.