Stopping sendmail from relaying system error/message emails
Details:
Solaris 9 (SPARC)
Mail server is relay host, relaying to outside the firewall.
I want to configure the mail server as a relay to the DMZ'd mailhost.
However, using SMART HOST seems to forward everything on. I want to
configure in such a way that local system generated emails such as
crontab errors ("user" [at] hostname.unknown, root [at] hostname) and such are not
forwarded to the relay host, but to my mail server's defined "root" alias.
Suggestions?
Thanks,
Kevin
Re: Stopping sendmail from relaying system error/message emails
Hi Kevin,
did you check your "local-hosts" file in "/etc/mail". It should contain
loopback, local ip, as well as the local hostname and local domain.
So, local mails should not be forwarded any more, because sendmail
treats them as "local".
Concerning cron job mails, it depends on what email address you used in
your crontab.
Cheers Pascal
Kevin Brammer wrote:
>
> Details:
>
> Solaris 9 (SPARC)
> Mail server is relay host, relaying to outside the firewall.
>
> I want to configure the mail server as a relay to the DMZ'd mailhost.
> However, using SMART HOST seems to forward everything on. I want to
> configure in such a way that local system generated emails such as
> crontab errors ("user" [at] hostname.unknown, root [at] hostname) and such are not
> forwarded to the relay host, but to my mail server's defined "root" alias.
>
> Suggestions?
>
> Thanks,
>
> Kevin