vi /etc/mail/access
Add your allowed relay locationas
Connect:localhost.localdomain RELAY
Connect:localhost RELAY
Connect:127.0.0.1 RELAY
Connect:192.168.0 RELAY
makemap hash /etc/mail/access </etc/mail/access
vi /etc/mail/instance1sendmail.mc
Add
FEATURE(`access_db', `hash -T<TMPF> -o /etc/mail/access.db')dnl
m4 /etc/mail/instance1sendmail.mc > /etc/mail/instance1sendmail.cf
restart mail service
ps –ef | grep sendmail
kill –9 <processid>
sendmail -L instance1sendmail -C /etc/mail/instance1sendmail.cf -bd –q30m
sendmail -L instance2sendmail -C /etc/mail/instance2sendmail.cf -bd –q30m
netstat -lan | grep 25