Eric on 20 Aug 2009 04:48:07 -0700

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] postfix question

Michael Bevilacqua wrote:
> On Wed, Aug 19, 2009 at 7:02 PM, Eric <
> <>> wrote:
>     The script that runs the php code runs as root so the FROM of the
>     email is <>.
> Very bad idea. Linux comes with an apache user and group for this very
> reason (known as httpd on some systems). Use that. Don't use root.

Actually went one step further and use an ordinary un-privileged user to run the

> Yes,  if that machine is handling email strictly for
> <>, it should be configured to handle only that
> and nothing else. Else, postfix will deliver locally. The myhostname
> directive in <> controls this. If you want it to
> receive mail, you should setup it's own MX with an FQDN of
> <>. 
> So yes, there is some reconfiguration that needs to happen.
> -- 
> Michael D. Bevilacqua
> <>

Got it working.  One thing that was curious was that the parent domain would not
accept email from this box.  Researching the error indicated that it needed to
do some kind of reverse look-up on the sender's address (host?).  Since the only
world-visible domain address this box has is I changed it's
name to "www".

That worked.

#  Eric Lucas
#                "Oh, I have slipped the surly bond of earth
#                 And danced the skies on laughter-silvered wings...
#                                        -- John Gillespie Magee Jr
Philadelphia Linux Users Group         --
Announcements -
General Discussion  --