Denis Gasparin <[EMAIL PROTECTED]> wrote:
> The qmail server displays in the Received line of the header field the HELO
> command given by the remote client.  I would like to change qmail behaviour
> so that it displays the HELO command only for hosts coming from the internet
> and not for hosts coming from the internal local network.

qmail-smtpd gets that information from environment variables set up by
tcpserver (or tcp-env).  If you clear those environment variables before
qmail-smtpd gets run, it'll log blank/meaningless values.

You can do this with a tcprules file if running from tcpserver.  Set up so
your internal addresses have something like the following.  Note I've also
added the RELAYCLIENT variable, to allow relaying from the internal addresses:

192.168.1.:allow,TCPREMOTEIP="",TCPREMOTEHOST="",TCPREMOTEINFO="",RELAYCLIENT=""
:allow

Of course you'll need to compile this rules file into a cdb for tcpserver.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------

Reply via email to