Find the desired product help

Configure Sendmail to use a Smarthost

 

You should provide the hostname of the DAS server that you are using as your preferred CSEG service domain.


* Edit sendmail configuration sendmail.mc file


vi /etc/mail/sendmail.mc


* Append or modify macro that read as follows:

For US customers:


define(`RELAY_MAILER_ARGS',`TCP $h 587')dnl


define(`SMART_HOST',`mxpool1.us.spamgateway.comodo.com') dnl

For EU customers:


define(`RELAY_MAILER_ARGS',`TCP $h 587')dnl


define(`SMART_HOST',`mxpool1.spamgateway.comodo.com') dnl


* Regenerate a new sendmail.cf config file with m4 command:


m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

* Restart sendmail service:


/etc/init.d/sendmail restart


OR


systemctl restart sendmail