sed -i .bak 26d /etc/mail/sendmail.mc
will delete line 26
sed -i .bak "26i\\
define('SMART_HOST', 'mail.mailser.com ')dnl" /etc/mail/sendmail.mc
will insert define('SMART_HOST', 'mail.mailser.com ')dnl
sed -i .bak "/dnl define('SMART_HOST', ;smtp.your.provider')dnl/d" /etc/mail/sendmail.mc
will delete the line dnl define('SMART_HOST', ;smtp.your.provider')dnl