Subject: Re: How to turn Sendmail off
To: Iggy Drougge <iggy@kristallpojken.org>
From: Steven M. Bellovin <smb@research.att.com>
List: netbsd-users
Date: 06/20/2002 22:28:03
In message <1735.937T2050T2535975optimus@canit.se>, "Iggy Drougge" writes:
>Jeremy C. Reed skrev:
>
>>On 21 Jun 2002, Iggy Drougge wrote:
>
>>> How come that Sendmail is pestering my console at regular intervals when my
>
>>What messages?
>
>Jun 20 02:00:01 dec newsyslog[6257]: logfile turned over
>Jun 20 03:15:04 dec sendmail[6289]: My unqualified host name (dec) unknown;
>sleeping for retry
>Jun 20 03:16:04 dec sendmail[6289]: unable to qualify my own domain name (dec)
>-- using short name
>Jun 20 03:16:27 dec sendmail[6305]: My unqualified host name (dec) unknown;
>sleeping for retry
>Jun 20 03:17:27 dec sendmail[6305]: unable to qualify my own domain name (dec)
>-- using short name
>Jun 20 03:25:44 dec sendmail[6751]: My unqualified host name (dec) unknown;
>sleeping for retry
>Jun 20 03:26:44 dec sendmail[6751]: unable to qualify my own domain name (dec)
>-- using short name
>
>>> /etc/rc.conf looks like this:
>>> sendmail=NO sendmail_flags="-bd -q30m"
>
>>sendmail is used by numerous tools (like mail which is used by cron).
>
>But I turned it off in rc.conf...
Sendmail can be invoked by rc, as a daemon that receives inbound mail
and/or attempts to deliver email that failed the first time. It can
also be invoked when a process tries to send mail; from the timestamps
on those messages, I'd guess that it was a cron job.
What it boils down to is that you need *some* mailer. The two
choices that come with NetBSD are sendmail and postfix. Unfortunately,
you have to make that choice in two places, rc.conf (which you've done)
and /etc/mailer.conf. Mine reads like this:
sendmail /usr/libexec/postfix/sendmail
send-mail /usr/libexec/postfix/sendmail
mailq /usr/libexec/postfix/sendmail
newaliases /usr/libexec/postfix/sendmail
hoststat /usr/libexec/postfix/sendmail
purgestat /usr/libexec/postfix/sendmail
to select Postfix.
--Steve Bellovin, http://www.research.att.com/~smb (me)
http://www.wilyhacker.com ("Firewalls" book)