Just use the smart_host:

1. Edit your  /etc/mail/sendmail.mc

2. Add a line like this:

define(`SMART_HOST', `smtp.your.provider')dnl

3. Apply the changes:

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

Then restart the service.

Facebooktwitterredditpinterestlinkedinmail