sendmail null client

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
dreamgear
Posts: 11
Joined: 2006/04/15 19:04:09

sendmail null client

Post by dreamgear » 2008/04/07 16:54:51

How does one configure sendmail on Centos 4 to just send all outgoing mail to a local smtp server ? I think what I want is a "null client" config. I've tried a few things without much luck.

markske
Posts: 77
Joined: 2007/03/19 10:12:59
Location: Belgium/brussels

Re: sendmail null client

Post by markske » 2008/04/07 19:51:32

Do you meen a local smtp in your network (not localhost?)

you can define in your sendmail.mc a smarthost (relay all to one address)

edit /etc/mail/sendmail.mc and add this line in your config (make a copy first for rollback)

[code]
define(`SMART_HOST',`esmtp:[123.123.123.123]')dnl
[/code]

activate this
[code]
cd /etc/mail
make
[/code]

stop/start sendmail (make sure you stop all deamons if one keeps running its possible that the routing is not correct)
(if you run stop 2 times it will kill all instanses)
[code]
service sendmail stop
service sendmail start
[/code]

Post Reply

Return to “CentOS 4 - Server Support”