Jump to content

Archived

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

glenelkins

Question about controling server email accounts

Recommended Posts

Hi

Im interested in knowing how to setup, delete etc email addresses on a server, such as web hosting control panels work. Like cPanel etc

Share this post


Link to post
Share on other sites
Cpanel, its easy
click Mail
Then Manage mail or something
then type the first part of the email, then choose the domain from the drop down
Then a password
email account created

Share this post


Link to post
Share on other sites
Hi

I dont think I explained myself properly here. I mean I want to create a PHP script to function as the cpanel email creation script

Share this post


Link to post
Share on other sites
it depends on what os  and what mail server you are using.

Share this post


Link to post
Share on other sites
Hi

Lets just say we use a standard linux box

Share this post


Link to post
Share on other sites
Now that would depend , once again, on the os. If you are using Fedroa you need to be aware of the restraints on Program Execution Functions. Here is a quote from the manual on this issue.

[quote author=The manual]When using Red Hat Fedora, beware of Security Enhanced Linux, SELinux.

Quoted from Red Hat: "The security goal is to make sure that Apache HTTP is only reading the static Web content, and not doing anything else such as writing to the content, connecting to database sockets, reading user home directories, etc."

These limitations include, among many other things, using exec to run external applications that happen to use sockets (or maybe access some files) such as HylaFAX "faxstat" as invoked from nweb2fax recvq.php and sendq.php.

For debugging, one could try running such commands using PHP Shell (see http://mgeisler.net/php-shell/) which might fail while execution from the real command line (as Unix user apache or httpd) yields no problem whatsoever.

See /var/log/messages for any denials due to the SELinux policy. To disable it:

- System, Administration, Security Level and Firewall
- open the SELinux tab
- click the Transition tree
- check Disable SELinux protection for Apache HTTP
- execute /etc/init.d/httpd restart

See also http://fedora.redhat.com/docs/selinux-faq/ and http://php.net/results.php?q=selinux&p=wholesite
[/quote]

Share this post


Link to post
Share on other sites

×

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.