[CentOS] preventing apache from being a mail relay

Mon Mar 4 23:04:08 UTC 2013
Les Mikesell <lesmikesell at gmail.com>

On Mon, Mar 4, 2013 at 4:49 PM, Gordon Messmer <yinyang at eburg.com> wrote:
> On 03/03/2013 02:54 PM, Robert Moskowitz wrote:
>> Once upon a time, it worked this way out of the box.
>
> You can go all the way back to the first release of Fedora or RHEL and
> check the configuration files.  mod_proxy has never been enabled by
> default, and the included example was not an open one:
>
> #<IfModule mod_proxy.c>
> #ProxyRequests On
> #
> #<Proxy *>
> #    Order deny,allow
> #    Deny from all
> #    Allow from .example.com
> #</Proxy>
>
> If you go back as far as Apache 1.0 (late 90s), you'll find a
> configuration file that still does not enable proxy by default, but did
> not include an example of limiting the Proxy command as above.

I remember having a problem back in the RH (not RHEL) 5 or 6 era where
I was using ProxyPass or rewriterules with [P} and it somehow enabled
random proxy requests which I noticed when the logs filled up with
requests that were intended to run up to run up some other sites ad
counters.  It is too far back to remember if that was the default from
the install or was related to what I did to enable the specific proxy
functions I needed, though.

-- 
   Les Mikesell
    lesmikesell at gmail.com