From nobody Thu Mar 14 00:18:19 2024 X-Original-To: freebsd-ports@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 4Tw7KL6RgHz5DlMh for ; Thu, 14 Mar 2024 00:19:02 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "generic", Issuer "generic" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tw7KK1G7Cz4CrB for ; Thu, 14 Mar 2024 00:18:56 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Authentication-Results: mx1.freebsd.org; none Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.17.1/8.17.1) with ESMTPS id 42E0IN5B076546 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 13 Mar 2024 17:18:32 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.17.1/8.17.1/Submit) id 42E0ILtm076545; Wed, 13 Mar 2024 17:18:21 -0700 (PDT) (envelope-from fbsd) Date: Wed, 13 Mar 2024 17:18:19 -0700 From: bob prohaska To: Hiroo Ono Cc: George Mitchell , freebsd-ports@freebsd.org Subject: Re: SMTP authentication for sendmail using binary-only host system Message-ID: References: <4577e583-5b2a-4413-846b-9a6f25c60c94@m5p.com> <20240313101615.5208ad02@nowhere.oikumene.ukehi.net> List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240313101615.5208ad02@nowhere.oikumene.ukehi.net> X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_RCPT(0.00)[freebsd]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US] X-Rspamd-Queue-Id: 4Tw7KK1G7Cz4CrB On Wed, Mar 13, 2024 at 10:16:15AM +0900, Hiroo Ono wrote: > No, If you installed sendmail from packages, you have to follow the instructions > in the package message. > Also, cyrus-sasl should be installed as a dependency. My situation doesn't quite match. Sendmail came with the base system, cyrus-sasl was installed later using pkg. Pkg installed files in /usr/local/share containing instructions, but those instructions required /usr/src. Would installing sendmail via pkg get around lack of source files? Thanks for writing! bob prohaska > See pkg query %M sendmail. > > excerpt: > --------------------------------------------------- > To use the binaries supplied by the port you should add the following lines > to your sendmail.mc file before any mailer or feature definition: > > define(`confEBINDIR', `/usr/local/libexec')dnl > define(`UUCP_MAILER_PATH', `/usr/local/bin/uux')dnl > > --------------------------------------------------- > To activate sendmail as your default mailer, run: > $ cd /usr/local/etc/mail && cp mailer.conf.sendmail mailer.conf > > Your '/usr/local/etc/mail/mailer.conf' should look like this: > # > # Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail > # > sendmail /usr/local/sbin/sendmail > send-mail /usr/local/sbin/sendmail > mailq /usr/local/sbin/sendmail > newaliases /usr/local/sbin/sendmail > hoststat /usr/local/sbin/sendmail > purgestat /usr/local/sbin/sendmail > > You may also need to update /etc/rc.conf. > > > On Tue, 12 Mar 2024 11:48:30 -0700 > bob prohaska wrote: > > > On Tue, Mar 12, 2024 at 02:01:19PM -0400, George Mitchell wrote: > > > There's a port (package) for sendmail, and it would appear that the > > > necessary options (SASL and SASLAUTHD) are on by default. And TLS > > > is also on. -- George > > > > The host in question is running > > 14.0-RELEASE-p5 FreeBSD 14.0-RELEASE-p5 #0: Tue Feb 13 23:49:05 UTC > > 2024 > > root@arm64-builder.daemonology.net:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC > > arm64 > > > > Sendmail was configured using > > cp /usr/share/examples/sendmail/mailer.conf /etc/mail/mailer.conf > > so no local customizations. Might it be sufficent to run > > pkg install cyrus-sasl > > and accept the defaults? > > > > Thanks for writing! > > > > bob prohaska > > > > >