Subject: Re: NetBSD 2.0_BETA: sendmail configured wrong (daily, security not delivered)
To: David Howland <metalliqaz@fastmail.fm>
From: Eric Haszlakiewicz <erh@jodi.nimenees.com>
List: tech-install
Date: 09/07/2004 17:29:58
On Tue, Sep 07, 2004 at 12:16:31PM -0400, David Howland wrote:
> I have a brand new NetBSD setup, 2.0_BETA. To make sure this problem
> hadn't been fixed, I just yesterday updated my sources via CVS, and
> installed with the standard...build.sh distribution; build.sh install=/
>
> I get no emails send to root from the daily or security secripts, or
> when cron fails a job. /var/log/maillog is full of the following:
> --------------------------------------------
> Sep 7 09:30:01 micron sendmail[1136]: i87DU1dU001136: from=root,
> size=287, class=0, nrcpts=1,
> msgid=<200409071330.i87DU1dU001136@h00500483e41d.ne.client2.attbi.com>,
> relay=root@localhost
> Sep 7 09:30:01 micron sendmail[1136]: i87DU1dU001136: to=root,
> ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay,
> pri=30287, relay=localhost.ne.client2.attbi.com. [127.0.0.1], dsn=4.0.0,
> stat=Deferred: Connection refused by localhost.ne.client2.attbi.com.
> --------------------------------------------
> I see that this issue has been discussed before on the mailing list,
> mostly sometime in 2003, but I cannot find a direct answer (it is mostly
> ranting, arguing, and patches for dirty hacks)
>
> Why is sendmail configured wrong on a fresh install? How do I get this
> working? All I want is to recieve output from daily and security
> scripts and nothing more. I don't want to run sendmail or any other
> MTA. 1.6.2 had no trouble with this...It worked out of the box with no
> configuration needed.
As I understand it, you are required to run an MTA if you want to receive
any kind of mail. However, the default config is to only accept connnections
from localhost.
Do you actually have any sendmail lines in rc.conf? The default setting
is _not_ sendmail=NO. Read the comment in /etc/default/rc.conf for details.
eric