Anand Biligiri S rearranged electrons thusly:
> In /etc/mail/access and the IP of the client from which you want to realay or
> you can add the range of IPs from which to relay.
Range of IPs w/o the leading dot (192.168 for the entire thing from 192.168.0.0
to 192.168.255.255). Then give a TAB and RELAY
192.168 RELAY
> Then run makemap hash access.db < access in /etc/mail/
> Restart sendmail as /etc/rc.d/init.d/sendmail restart
If you restart sendmail on redhat, it does all this without being asked
from /etc/rc.d/init.d/sendmail -
..............
# Start daemons.
echo -n "Starting sendmail: "
/usr/bin/newaliases > /dev/null 2>&1
for i in virtusertable access domaintable mailertable ; do
if [ -f /etc/mail/$i ] ; then
makemap hash /etc/mail/$i < /etc/mail/$i
fi
done
...............
--
Suresh Ramasubramanian <--> mallet <at> efn <dot> org
EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin
----------------------------------------------
Find out more about this and other Linux India
mailing lists at http://lists.linux-india.org/