From nobody Fri Dec 31 20:22:42 2021 X-Original-To: freebsd-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 96BB7191985A for ; Fri, 31 Dec 2021 20:22:50 +0000 (UTC) (envelope-from doug@safeport.com) Received: from fledge.watson.org (fledge.watson.org [147.160.157.40]) (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 "A1-48603", Issuer "A1-48603" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JQc5P5qTcz4RfR for ; Fri, 31 Dec 2021 20:22:49 +0000 (UTC) (envelope-from doug@safeport.com) Received: from fledge.watson.org (doug@localhost [127.0.0.1]) by fledge.watson.org (8.16.1/8.16.1) with ESMTPS id 1BVKMgrD079068 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Fri, 31 Dec 2021 20:22:43 GMT (envelope-from doug@safeport.com) Received: from localhost (doug@localhost) by fledge.watson.org (8.16.1/8.16.1/Submit) with ESMTP id 1BVKMgGB079065 for ; Fri, 31 Dec 2021 20:22:42 GMT (envelope-from doug@safeport.com) X-Authentication-Warning: fledge.watson.org: doug owned process doing -bs Date: Fri, 31 Dec 2021 20:22:42 +0000 (UTC) From: doug Reply-To: doug@safeport.com To: freebsd-questions@FreeBSD.ORG Subject: Re: postfix can't send mail In-Reply-To: Message-ID: <695ba60-6519-b11-f0bd-0db3814758c@safeport.com> 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 X-Rspamd-Queue-Id: 4JQc5P5qTcz4RfR X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=fail (mx1.freebsd.org: domain of doug@safeport.com does not designate 147.160.157.40 as permitted sender) smtp.mailfrom=doug@safeport.com X-Spamd-Result: default: False [-0.74 / 15.00]; HAS_REPLYTO(0.00)[doug@safeport.com]; R_SPF_FAIL(1.00)[-all]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.87)[-0.871]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; NEURAL_SPAM_MEDIUM(0.23)[0.230]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; REPLYTO_ADDR_EQ_FROM(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[safeport.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6405, ipnet:147.160.157.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Fri, 31 Dec 2021, Doug Denault wrote: > I have "identical" postfix/cyrus/mysql systems on in a jail and one is not. > The jailed system will not send. main.cf is virtually the same and master.cf > an exactly copy. The only different aside from the jailed environment is that > localhost=127.0.1.1 as iocage jails can not share 127.0.0.1. Posfix seems to > demand that localhost exists. > > I've posted this with details to the posfix list. I was thinking that the if > the issue was due to the jail environment, I might get some help here. > > The failing errors are: > > cyrus postfix/smtpd[51745]: warning: SASL: Connect to smtpd failed: No such > file or directory > cyrus postfix/smtpd[51745]: fatal: no SASL authentication mechanisms > > Following is installed for SASL: > > cyrus-sasl-2.1.27_2 > cyrus-sasl-sql-2.1.27 > p5-Authen-SASL-2.16_1 It was not a jail thing, it was a package thing. The postfix-3.5.6,1 package is built with cyrus support however postfix-3.6.2_1,1 (the default as of Dec 2021) is built without cyrus support. So cyrus users need postfix-sasl. Jeez-Luise package guys. Maybe you could name the non cyrus one postix-gotcha. Both require cyrus-sasl so its clear that one was dovecot only. The postfix mailing list is great by the way. The unwary or those that think they know what's what's postfix-wise (both apply to me) can easily get lost in the many and perhaps changing options. I've done this several times and gotten guidence in pretty much real time.