Re: [PHP-DEV] Re: IMAP/POP3 Administration API?

[email protected] (George Schlossnagle) Sun, 22 Jul 2001 10:50:22 -0400
Newsgroups php.db,php.dev,php.doc,php.general,php.gtk,php.i18n,php.install,php.lang,php.mirrors,php.pear.cvs,php.pear.dev,php.pear.general,php.qa,php.test,php.windows
Message-ID <[email protected]>
Sounds like a cyrus-imap extension for imap (which allows many 
authentication methods, most of which don't need system-level users) 
would be a good thing.

George

On Sunday, July 22, 2001, at 11:32 AM, Dave Mertens wrote:

>>>> Is there any IMAP/POP3 API/Modules of Linux email system (Sendmail)
>> written
>>>> in PHP?
>>>> I am looking for API to write a signup page for users.
>
>>> Have to tried http://www.php.net/imap ?? Great source for API's ;-)
>
>> Have looked through it already. None of them allows me to add/delete 
>> users
>
> Most mailserver use the users that exist on the mail server. An mail 
> user is also an regular user (Althru most of them get an fake shell)
> . To add, modify or delete such user you need root privilegde. 
> Webserver such as Apache run with a user nobody (or similair) which 
> have as less access to the system as possible.
>
> Because php is than also running as user 'nobody'. And then you can't 
> add, modify or delete users.
>
> If you still want to build a mailuser webinterface, here's how to do-it:
> - first make sure only 'localhost' can access the site. Use an port 
> different from '80'.
>
> To edit the /etc/passwd there's a file in the php4 source directory 
> /pear/files. This file is called 'Passwd.php' which you can use to edit 
> the /etc/passwd and similair files..
>
> Because every mail server have it own config files, it's not possible 
> to create an 'generic' API. I advise you to download some other 
> web-interfaces for sendmail
> so you can see how they're handling the files.
>
> Good luck.
>
> Dave Mertens
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> To contact the list administrators, e-mail: [email protected]
>