Re: [PHP] Creating mail account on Linux server

2002-05-07 Thread Miguel Cruz

On Tue, 7 May 2002, Rosen wrote:
> How can I create a mail account on Linux server with PHP ?

Not sure what you mean by a "mail account", but if you mean a regular
system account, I'd suggest that you look into various setups (vpopmail,
Cyrus IMAP, etc.) that will let you create private mailboxes without
accompanying system accounts. Otherwise, as so many have said, 
without a serious understanding of the implications, jyou're 
pretty much just asking to have your system broken into.

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Creating mail account on Linux server

2002-05-07 Thread Liam MacKenzie

I don't know, can it be done?
http://scripts.operationenigma.net/adduser.php



- Original Message - 
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 08, 2002 12:06 AM
Subject: Re: [PHP] Creating mail account on Linux server


On Tuesday 07 May 2002 22:02, Rosen wrote:
> Hi,
> How can I create a mail account on Linux server with PHP ?

Depends on what mail server you have and how it is set up.

> Can I do it ?

In theory yes.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Don't tell me what you dreamed last night for I've been reading Freud.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Creating mail account on Linux server

2002-05-07 Thread Sysadmin

Ok, so it's a bad idea :-)  I'm aware of the security risks I'm dealing 
with here, but thanks to all those who gave me some ideas to go with.  
This WILL NOT be on a production machine, it's on my internal network 
and I'm just playing with it to see what I can do.  Have a nice day and 
thanks to all for the help.

-Original Message-
From: Dan Hardiker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 07, 2002 10:47 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Creating mail account on Linux server


>> I'm curious about the same thing.  RedHat 7.2 with default IMAP.
>> > How can I create a mail account on Linux server with PHP ?

If you check the list, you will see a reply from myself with a list of
questions you need to answer for us to begin to help you.

> In general, if people need to ask such a question, then they really 
are
> not  ready, or do not understand the security implications of creating
> mail  accounts on a server.

I agree with Jason here.

1. An IMAP account != a mail account, thats just a MAA (Mail Access 
Agent)
which allows you to read mail from a file/dir/storage space on your
machine. I use Courier IMAP for that (using ./Maildir).
2. We need to know your MTA and MDA in order to even begin to help
3. On a "default" RedHat setup you need root access (as in you need give
your php script root access) in order to perform what your asking. If 
that
doesnt ring alarm bells, please type "halt" at your RedHat console now.

> The first thing you need to ask yourself is why would you want to do
> it?

For the most part, I use these sort of functions from a PHP script to
administrate my system and give customers automated access to modify 
their
own domains. (This is all done through a MySQL firewall [as in data gets
put into MySQL from the interface, and then read by backend scripts 
that do
the dirty work - unconnected to the frontend interface for security ...
incase anyone was about to tell me what they think a firewall is])

Although I can't see these two people having the unix know-how in order 
to
build such a system, let alone securely.

I would make some bitchy underhanded comments about their Mother's and 
the
local Ameaoba slut relating to their IQ ... but I wont, cuz Im not like
that ;) heh

Jason: what dya recon on people being licensed to be able to run a unix
style operating system? heh Hell lets license people to use computers.

-- 
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Creating mail account on Linux server

2002-05-07 Thread Dan Hardiker

> I can create the popuser account, but my problem comes with setting the
>  password.  I realize that when you do a "useradd" command you can
> specify a -p option for password, but it hasn't worked for me.  Is
> there a better way then calling system commands?

PLEASE tell me your aware that the "useradd" command will add a unix user,
not just for mail - but for access to the machine itself over a terminal
(SSH / Telnet / whatever else you may have left open)... and should the
script your trying to make ever be exploited, that the hacker could then
very easily create a user account on your system and then just walk
straight in??

Given your current attitude (and awareness) of security, I doubt that it
would take long for your machine to be anhilated.

-- 
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Creating mail account on Linux server

2002-05-07 Thread Dan Hardiker

>> I'm curious about the same thing.  RedHat 7.2 with default IMAP.
>> > How can I create a mail account on Linux server with PHP ?

If you check the list, you will see a reply from myself with a list of
questions you need to answer for us to begin to help you.

> In general, if people need to ask such a question, then they really are
> not  ready, or do not understand the security implications of creating
> mail  accounts on a server.

I agree with Jason here.

1. An IMAP account != a mail account, thats just a MAA (Mail Access Agent)
which allows you to read mail from a file/dir/storage space on your
machine. I use Courier IMAP for that (using ./Maildir).
2. We need to know your MTA and MDA in order to even begin to help
3. On a "default" RedHat setup you need root access (as in you need give
your php script root access) in order to perform what your asking. If that
doesnt ring alarm bells, please type "halt" at your RedHat console now.

> The first thing you need to ask yourself is why would you want to do
> it?

For the most part, I use these sort of functions from a PHP script to
administrate my system and give customers automated access to modify their
own domains. (This is all done through a MySQL firewall [as in data gets
put into MySQL from the interface, and then read by backend scripts that do
the dirty work - unconnected to the frontend interface for security ...
incase anyone was about to tell me what they think a firewall is])

Although I can't see these two people having the unix know-how in order to
build such a system, let alone securely.

I would make some bitchy underhanded comments about their Mother's and the
local Ameaoba slut relating to their IQ ... but I wont, cuz Im not like
that ;) heh

Jason: what dya recon on people being licensed to be able to run a unix
style operating system? heh Hell lets license people to use computers.

-- 
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Creating mail account on Linux server

2002-05-07 Thread Sysadmin

I can create the popuser account, but my problem comes with setting the 
password.  I realize that when you do a "useradd" command you can 
specify a -p option for password, but it hasn't worked for me.  Is 
there a better way then calling system commands?

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 07, 2002 10:37 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Creating mail account on Linux server


On Tuesday 07 May 2002 22:23, [EMAIL PROTECTED] wrote:
> I'm curious about the same thing.  RedHat 7.2 with default IMAP.

> > How can I create a mail account on Linux server with PHP ?

In general, if people need to ask such a question, then they really are 
not 
ready, or do not understand the security implications of creating mail 
accounts on a server.

The first thing you need to ask yourself is why would you want to do it?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
I finally went to the eye doctor.  I got contacts.  I only need them to
read, so I got flip-ups.
-- Steven Wright
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Creating mail account on Linux server

2002-05-07 Thread Jason Wong

On Tuesday 07 May 2002 22:23, [EMAIL PROTECTED] wrote:
> I'm curious about the same thing.  RedHat 7.2 with default IMAP.

> > How can I create a mail account on Linux server with PHP ?

In general, if people need to ask such a question, then they really are not 
ready, or do not understand the security implications of creating mail 
accounts on a server.

The first thing you need to ask yourself is why would you want to do it?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
I finally went to the eye doctor.  I got contacts.  I only need them to
read, so I got flip-ups.
-- Steven Wright
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Creating mail account on Linux server

2002-05-07 Thread Sysadmin

I'm curious about the same thing.  RedHat 7.2 with default IMAP.

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 07, 2002 10:06 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Creating mail account on Linux server


On Tuesday 07 May 2002 22:02, Rosen wrote:
> Hi,
> How can I create a mail account on Linux server with PHP ?

Depends on what mail server you have and how it is set up.

> Can I do it ?

In theory yes.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Don't tell me what you dreamed last night for I've been reading Freud.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Creating mail account on Linux server

2002-05-07 Thread Jason Wong

On Tuesday 07 May 2002 22:02, Rosen wrote:
> Hi,
> How can I create a mail account on Linux server with PHP ?

Depends on what mail server you have and how it is set up.

> Can I do it ?

In theory yes.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Don't tell me what you dreamed last night for I've been reading Freud.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Creating mail account on Linux server

2002-05-07 Thread Dan Hardiker

And I quote, from the [EMAIL PROTECTED] which you posted to no more
than 30 mins ago. Im hoping you dont have the IQ of a fish.

> How can I create a mail account on Linux server with PHP ?

More information is required for that question to be answer (such as what
MTA and MDA are you using and a few others which would give the impression
you dont quite have a grasp on the question your really asking).

In anycase - wrong list. The PHP Developers list is for people who develop
PHP, not with it. I think your after [EMAIL PROTECTED] ... send an
email to [EMAIL PROTECTED] to sign up.

If you choose to pursue the question in that forum, please include the
following information in your question:

 1. Linux Distro & Version
 2. Mail Transfer Agent [MTA] (qmail, sendmail, etc)
 3. Mail Delivery Agent [MDA] (vpopmail, etc)
 4. Your experiance with creating / using unix mail boxes outside of PHP
(eg: how would you go about the problem using shell scripts / command line
typing)

This will give the people who try to help a better impression of the
situation and give you more targeted advice.

-- 
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Creating mail account on Linux server

2002-05-07 Thread Rosen

Hi,
How can I create a mail account on Linux server with PHP ?

Can I do it ?

Thanks,
Rosen




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php