|
Posted by Stan McCann on 01/02/06 22:38
"Shelly" <sheldonlg.news@asap-consult.com> wrote in
news:OJSdnRa8789hCCXenZ2dnUVZ_sOdnZ2d@comcast.com:
> I submitted this to comp.mail.sendmail, but maybe someone here can
> help me as well.
>
> OK, this has most likely been asked and answered several times, but
> I am still confused after searching. Here is the background and
> situation:
>
> Background:
> I know nothing about sendmail. It is being set up on the system by
> someone else on a Red Hat Linux system.
> I know Unix, but it has been a while and I am not an expert on that
> OS. I have programmed for a long time, but am relatively new to web
> programming.
>
> The Task:
> From a web page take the user's information and, among other things,
> -- create a sendmail account
This shouldn't be needed. My servers are set up so that "nobody" is
the username for the server. By not specifying the From: header, mail
appears to come from "nobody@server.domain." You can build your own
From: header using the email and name gathered by a form, just don't
forget to look into header injection and come up with some method of
verifying proper usage as spammers can use your mail form if you don't
protect it in some manner.
> but
> -- not have shell access. Only have access to the mail.
>
> Path:
> I will be using php and so the Apache account will have sufficient
> privilages to run a shell script to create the account.
Have you confirmed this with your server administrator? I am the only
person that can create any type of account on my servers.
> Questions:
> -- Where can I find a script to do this?
Lookup the mail function.
> -- What do I have to do to deny access to everything except the
> email?
Nothing. If your server administrator has done his/her job, it's
already done.
--
Stan McCann "Uncle Pirate" http://stanmccann.us/pirate.html
Webmaster/Computer Center Manager, NMSU at Alamogordo
http://alamo.nmsu.edu/ There are 10 kinds of people.
Those that understand binary and those that don't.
Navigation:
[Reply to this message]
|