Page 1 of 1

Removing sendmail?

Posted: Fri Dec 02, 2016 11:16 am
by gormank
Hi,
There's a push to remove sendmail from any and all hosts and Nagios uses sendmail by default. Is there a reason sendmail installs and uses sendmail rather than a lighter solution?

I'm not trying to ask dumb questions, this is what I'm being asked (I'm familiar w/ sendmail so I like it)...

BTW, when I set up to use SMTP, and remove the user/password, they get put back in so authentication fails, since none should be used...

Re: Removing sendmail?

Posted: Fri Dec 02, 2016 12:25 pm
by dwhitfield
Page 6 of https://assets.nagios.com/downloads/nag ... ios-XI.pdf has information on using SMTP instead of sendmail.

Does that answer your question, or would you like more detail about the actual reasons for choosing sendmail as default?

Re: Removing sendmail?

Posted: Fri Dec 02, 2016 12:29 pm
by avandemore
Nagios doesn't use Sendmail, it uses /usr/sbin/sendmail eg your local MTA. In CentOS 6/7 this is:

Code: Select all

[root@avandemore-centos6 etc]# ls -la /usr/sbin/sendmail
lrwxrwxrwx. 1 root root 21 Sep 28 16:41 /usr/sbin/sendmail -> /etc/alternatives/mta
[root@avandemore-centos6 etc]# ls -la /etc/alternatives/mta
lrwxrwxrwx. 1 root root 26 Sep 28 16:41 /etc/alternatives/mta -> /usr/sbin/sendmail.postfix
You are free to use whatever MTA you like as long as /usr/sbin/sendmail is compatible.

Re: Removing sendmail?

Posted: Fri Dec 02, 2016 12:33 pm
by gormank
Thanks, free to close.

Re: Removing sendmail?

Posted: Fri Dec 02, 2016 12:48 pm
by avandemore
NP, on a personal note I think Sendmail itself is a fine MTA. At least part of the discussion around it resembles more witchhunt than logic discussion, but YMMV.