On Fri, 8 Sep 2000 [EMAIL PROTECTED] wrote:
> There is a very important reason for having to fork qmail-inject. Qmail
> by default will not allow mail relaying as a good security measure. You
> don't want your mail server to be used for spamming especially if you
> have a T3 or a T1 link. Anyone who is allowing sendmail to relay is in
> for trouble - there has been occassions when people have been sued just
> because the spamming originated from their servers.
>
> You cant use Net::SMTP because when you try to send out emails to other
> domains by connecting to the localhost Qmail will reject it because the
> reciepient is not defined as a local user or a virtual domain.
You add these lines to /etc/hosts.allow and sleep peacefully:
tcp-env: 192.168. : setenv = RELAYCLIENT
tcp-env: 10. : setenv = RELAYCLIENT
tcp-env: <host-ip-address> : setenv = RELAYCLIENT
tcp-env: 127.0.0.1 : setenv = RELAYCLIENT
(the last one there might not be necessary).
Oh, and ensure your firewall doesn't allow incoming users pretending to
come from 10.* or 192.168.*
--
<Matt/>
Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org