Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Nov 2022 18:14:47 -0500
From:      Kurt Hackenberg <kh@panix.com>
To:        questions@freebsd.org
Subject:   Re: What is this sm-mta?
Message-ID:  <Y4FMZ5hXa9W9fTAo@rain.cave>
In-Reply-To: <Y4EZLd31fdDWHkmd@rain.cave>
References:  <NHkB6x4--3-9@tutanota.com> <Y4EZLd31fdDWHkmd@rain.cave>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 25, 2022 at 02:36:13PM -0500, Kurt Hackenberg wrote:

>On Fri, Nov 25, 2022 at 08:07:59PM +0100, iio7@tutanota.com wrote:
>
>>I have the following options set in /etc/rc.conf
>>
>>sendmail_enable="NO"
>>sendmail_msp_queue_enable="NO"
>>
>>Yet I keep seeing a lot of sendmail activitity in /var/log/maillog:
>
>You need two more:
>
>sendmail_submit_enable="NO"
>sendmail_outbound_enable="NO"

Oh, you also need to shut off some sendmail background housekeeping in 
/etc/periodic.conf, like this:

daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"
daily_status_include_submit_mailq="NO"
daily_submit_queuerun="NO"

"sm-mta" in your log messages -- maybe that stands for "sendmail MTA"? 
That might go away when you disable sendmail.

The other log messages

Nov 25 03:35:41 foo sendmail[90110]: 2AP2ZeZo090110: to=root, 
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=37944, 
relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Nov 25 03:35:41 foo sendmail[90110]: 2AK23ccD044156: to=postmaster, 
delay=5+00:32:03, xdelay=00:00:00, mailer=relay, pri=487250, 
relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Nov 25 03:35:41 foo sendmail[90110]: 2AK23ccD044156: 2AP2ZeZp090110: 
return to sender: Cannot send message for 5 days

That looks like some local email message, probably one sent by the 
nightly "periodic" stuff, couldn't be delivered, because no MTA was 
running on the local computer to receive it. Did you replace sendmail 
with some other MTA? You pretty much have to run something, so at least 
local mail (within the computer) will work. A number of things assume 
they can send email, including the "periodic" stuff and cron.

This is all covered in the FreeBSD Handbook, section 29.4, "Changing 
the Mail Transfer Agent". You should probably read that, and maybe all 
of chapter 29, "Electronic Mail".



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Y4FMZ5hXa9W9fTAo>