0

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?

1
  • 2
    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, 2011 at 1:50

1 Answer 1

1

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/sendmail.cf

2) Search for "DS"

You'll find a section that looks like this:

# "Smart" relay host (may be null)
DSrelay:[]

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.

-M

2
  • 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, 2011 at 3:43
  • 1
    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 sendmail.org mailer).
    – adamo
    May 16, 2011 at 15:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .