Mail relay host in sendmail

I wanted sendmail on my Ubuntu server to relay all outgoing e-mails to one specific server, this is what i did.

Install sendmail
# sudo aptitude install sendmail -y

Confiure sendmail
# sudo nano /etc/mail/sendmail.cf

Edit the “Smart” relay host.
DSmyrelayserver.domain.com

Restart sendmail
# sudo /etc/init.d/sendmail restart

Leave a Comment