Following FIX Helped, take backup of file
- Comment out the below entry
cd /etc/mail
[root@mail]# cat sendmail.mc | grep -v ^dnl | grep -i smart
define(SMART_HOST',
relaymail.sapient.com')dnl
[root@mail]#
[root@mail]#
- Below entry should be commented out
[root@ mail]# cat sendmail.mc | grep -v ^dnl | grep -i mailerta
FEATURE(
mailertable',
hash -o /etc/mail/mailertable.db')dnl
[root@mail]# cp -p sendmail.mc sendmail.mc.bkp.date +%F
[root@mail]#
[root@mail]# m4 sendmail.mc > sendmail.cf
- Add below entry in /etc/mail/mailertable to disable offsite mail relay
gmail.com smtp:[192.168.100.x]
. error:Mail to external domain is prohibited
[root@ mail]#
it helped to fix.
Hopefully will help, i searched a lot and finally this worked so thought to share.