Adding smtp records to mailertable for sendmail

vi /etc/mail/mailertable

Add your smtp record

snapdedo.com smtp:[192.168.0.220]

makemap hash /etc/mail/mailertable </etc/mail/mailertable

vi /etc/mail/instance1sendmail.mc

Add

FEATURE(`mailertable', `hash -o /etc/mail/mailertable.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