Stephan A. Rickauer wrote:
Joel Dinel wrote:
But yeah, the default sendmail with a simple smarthost setting
(DSmachine.whatever.com in sendmail.cf) would have also done the trick.
It would keep on delivering local mail, which is nice (think all of the
weekly/daily reports).
I'd like to have it the other way around: Mail should not be accepted at
all from remote and locally generated mail (reports etc.) should go to
smart host.
Seems to be so easy ... any ideas?
Sure, edit the following file (or copy it under a new name) :
/usr/share/sendmail/cf/submit.mc
Then change the following line :
FEATURE(`msp', `[127.0.0.1]')dnl
to
FEATURE(`msp', `[your.mailserver.com]')dnl
Then add :
sendmail_flags=NO
to rc.conf.local
This way, every messages will be sent to your.mailserver.com and the
sendmail daemon will not need to be started.
Regards,
Antoine