Eric Dahnke wrote/schrieb/scribsit:
> First, there is no way set RELAYCLIENT (via inetd, tcpserver, or some
> patch) based on domain name rather than IP, correct?
There is a patch to tcpserver to make it act on the remote hostname.
But you can of course wrap it in sth. like:
#!/bin/sh
case "$TCPREMOTEHOST" in
*.domain.com)
export RELAYCLIENT=""
;;
esac
exec /var/qmail/bin/qmail-smtpd
#end
> Second, with inetd it is not possible to set RELAYCLIENT with a wildcard
> * (24.232.12.*), but with tcpserver yes, correct?
According to hosts_access.5 it is possible to use both:
"tcp-env: 10.0.0.: sentenv=RELAYCLIENT"
and
"tcp-env: 10.0.0.0/255.255.255.0: setenv=RELAYCLIENT".
Stefan