Re: SMTP authentication for sendmail using binary-only host system

From: bob prohaska <fbsd_at_www.zefox.net>
Date: Thu, 14 Mar 2024 00:18:19 UTC
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 <fbsd@www.zefox.net> 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
> > 
> > 
>