[wplug] Running apache with user other than 'www' or 'httpd'?

Mike Griffin mike at nbi.edu
Fri May 12 10:31:05 EDT 2006


To expand on this a little more. AOL, among others, will only accept mail
from a known static IP (your ISP will typically give you a reverse NS
address with the IP, you may have to contact them to configure your own)

Your php script may look like something such as:

mail($mailto, $subject, $messageproper,
        "From: \"$name\" <$email>" . $headersep . "Reply-To: \"$fname
$lname\" <$email>" . $headersep . "X-Mailer: your.domain" );


-----Original Message-----
From: wplug-bounces+mike=nbi.edu at wplug.org
[mailto:wplug-bounces+mike=nbi.edu at wplug.org] On Behalf Of Christopher
DeMarco
Sent: Friday, May 12, 2006 9:50 AM
To: General user list
Subject: Re: [wplug] Running apache with user other than 'www' or 'httpd'?

On Fri, May 12, 2006 at 09:39:12AM -0400, Russ Schneider wrote:

> Could I create a user such as "sugapablo" to run apache?  How would I do 
> that?  Do you think that get around the AOL problem?  

Yes.

RTFM ;-D

No.


...


Most well-configured MTAs will reject mail FROM localhost.  Running
Apache as fnord23 is fairly easy (one directive in httpd.conf IIANM)
but I'd bet gonads to gazpacho that upwards of 50% of MTAs will reject
your @localhost envelope.

Ask a PHP wiz about how PHP is configured to send mail; if it's using
the local /sbin/sendmail binary then the configuration is entirely
under your control.  If OTOH PHP sends mail with an internal SMTP
implementation that does its own DNS and talks directly to remote
MXen, then there should be configuration available.  The second
scenario is, IMHO, brain-damaged.  I can't imagine that PHP wouldn't
use the system's own MTA, in which case you've just got to look at
your Postfix/Qmail/Exim/Sendmail/Mega-Frob config to fixit.

-- 
Christopher DeMarco <cmd at alephant.net>
Alephant Systems (http://alephant.net)
PGP public key at http://pgp.alephant.net
+1-412-708-9660
_______________________________________________
wplug mailing list
wplug at wplug.org
http://www.wplug.org/mailman/listinfo/wplug



More information about the wplug mailing list