Re: pkg upgrade vs building from source

From: Mel Pilgrim <list_freebsd_at_bluerosetech.com>
Date: Sun, 09 Oct 2022 20:37:46 UTC
On 2022-10-08 8:35, paul beard wrote:
> My skepticism over pkg doing what I expect grows after recent events. I 
> decided after I rebuilt this freebsd instance that I would say goodbye 
> to installing from source and allow pkg to manage it all. Surely by now, 
> it's mature enough to handle it.
> 
> Reader, it is not.
> 
> I allowed it to upgrade postfix the other day and discovered that it no 
> longer worked;
> Oct  8 03:15:16 <mail.warn> www postfix/smtp[65148]: warning: 
> unsupported SASL client implementation: cyrus
> Oct  8 03:15:16 <mail.crit> www postfix/smtp[65148]: fatal: SASL library 
> initialization
> Oct  8 03:15:17 <mail.warn> www postfix/master[1157]: warning: process 
> /usr/local/libexec/postfix/smtp pid 65148 exit status 1
> Oct  8 03:15:17 <mail.warn> www postfix/master[1157]: warning: 
> /usr/local/libexec/postfix/smtp: bad command startup -- throttling
> 
> I went to the port directory and did a deinstall/reinstall and all is 
> well. Postfix flush cleared out the test emails I had queued up and no 
> errors in maillog. No changes to teh configuration files, it just worked 
> properly after a proper install.

When you installed postfix via pkg, did you install postfix, or 
postfix-sasl?  The postfix port is flavoured:

$ pkg search -r FreeBSD -x 'postfix(-.+)?-3.7.2'
postfix-3.7.2_1,1              Secure alternative to widely-used Sendmail
postfix-ldap-3.7.2_1,1         Secure alternative to widely-used 
Sendmail (with OpenLDAP and Cyrus SASL support)
postfix-sasl-3.7.2_1,1         Secure alternative to widely-used 
Sendmail (with Cyrus SASL support)