Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My host provides an smtp server for sending mail. I want to setup sendmail to relay all emails to the hosts smtp server. How do you do that?

share|improve this question
I can tell you the term you want is "smart host" but I don't know how to set it up in sendmail. – DerfK May 13 '11 at 1:50

It's a little difficult to answer your question without more context on your email environment. That being said, the general steps would be:

1) Edit /etc/mail/

2) Search for "DS"

You'll find a section that looks like this:

# "Smart" relay host (may be null)

3) Put the downstream mail server IP in the square brackets.

4) Save changes. Bounce sendmail service.

Again, I have to reiterate that this is a general guideline. Your mileage may vary.


share|improve this answer
Well normally I just point any program that needs to send email to the hosts smtp server but I didn't see an option for it in Anope and I read that it sends mail only by using sendmail. – Will May 13 '11 at 3:43
One thing to note though is that since this is a Debian system, the sendmail binary might actually be part of exim and not sendmail (the mailer). – adamo May 16 '11 at 15:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.