From nobody Fri Nov 25 23:14:47 2022 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NJrL9008Yz4hhtM for ; Fri, 25 Nov 2022 23:14:56 +0000 (UTC) (envelope-from kh@panix.com) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NJrL81QJsz3jYp for ; Fri, 25 Nov 2022 23:14:56 +0000 (UTC) (envelope-from kh@panix.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=panix.com header.s=panix header.b=I6z5tyDN; spf=pass (mx1.freebsd.org: domain of kh@panix.com designates 166.84.1.89 as permitted sender) smtp.mailfrom=kh@panix.com; dmarc=pass (policy=none) header.from=panix.com Received: from rain.cave (unknown [73.142.21.0]) by mailbackend.panix.com (Postfix) with ESMTPSA id 4NJrL54yfFz4HPm for ; Fri, 25 Nov 2022 18:14:53 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=panix.com; s=panix; t=1669418093; bh=ledzPvC0vYIcTlHzQ4O4lPPOD641X2wGlBQNrEXOGM0=; h=Date:From:To:Subject:References:In-Reply-To; b=I6z5tyDNnWTxiry754rcIBo8Rany4zrcbu1ZiPTfIivDl6j6apOQxfJQzntWHzS4u yZiK2YntsZwuYpoDSmtGSEaMx3EzfLR3aWcgtYNFISFAX8AlD37lQR2xxMI7WEUCtR W+a9ZKZwOSoEKlFP5lhSxACsBlUh12Nhn5dUSHQg= Date: Fri, 25 Nov 2022 18:14:47 -0500 From: Kurt Hackenberg To: questions@freebsd.org Subject: Re: What is this sm-mta? Message-ID: References: List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.9 (2022-11-12) X-Spamd-Result: default: False [-3.08 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.979]; DMARC_POLICY_ALLOW(-0.50)[panix.com,none]; R_SPF_ALLOW(-0.20)[+ip4:166.84.1.64/26:c]; R_DKIM_ALLOW(-0.20)[panix.com:s=panix]; MIME_GOOD(-0.10)[text/plain]; RWL_MAILSPIKE_GOOD(-0.10)[166.84.1.89:from]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2033, ipnet:166.84.0.0/16, country:US]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DKIM_TRACE(0.00)[panix.com:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4NJrL81QJsz3jYp X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N 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".