Linux – Fastest way to allow sendmail relay through smarthost

linuxsendmailsmarthostsmtp

I only want sendmail to relay through my ISP's smtp server, nothing else. How do i set it up?

Best Answer

You have specified answer in the question itself. You can do that using

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

Are you facing any problem using this. After editing /etc/mail/sendmail.mc you should go to directory /etc/mail. Type make and then restart sendmail service for changes to take effect. Then send a test mail and see message headers (Received:) to see if configuration worked.