From owner-freebsd-questions@freebsd.org Tue Jul 3 20:39:11 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 680841024DE3 for ; Tue, 3 Jul 2018 20:39:11 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0AC5B9744D for ; Tue, 3 Jul 2018 20:39:10 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id 88A3A6261A for ; Tue, 3 Jul 2018 16:39:04 -0400 (EDT) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vwwWHCp_Hvqo for ; Tue, 3 Jul 2018 16:39:01 -0400 (EDT) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id 414966260F for ; Tue, 3 Jul 2018 16:39:01 -0400 (EDT) Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Tue, 3 Jul 2018 16:39:01 -0400 Message-ID: <523ffb82f14da9944a5368f28eddecac.squirrel@webmail.harte-lyne.ca> Date: Tue, 3 Jul 2018 16:39:01 -0400 Subject: Postfix-sasl on FreeBSD will not authenticate From: "James B. Byrne" To: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-5.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jul 2018 20:39:11 -0000 On server A we have cyrus-imapd running with spiped listening on TCP:143. On server B we have postfix-sasl-3.3.0 running with spiped listening on TCP:143 linked to server A. On server A saslauthd is configured in rc.conf to use rimap to the localhost: saslauthd_flags="-a rimap \ -O localhost" # Use Remote IMAP to authenticat Postfix is configured to use saslauth to authenticate outgoing senders: smtpd_sasl_auth_enable = yes smtpd_sasl_authenticated_header = no smtpd_sasl_exceptions_networks = smtpd_sasl_local_domain = smtpd_sasl_path = smtpd smtpd_sasl_security_options = noanonymous smtpd_sasl_service = smtp smtpd_sasl_tls_security_options = $smtpd_sasl_security_options smtpd_sasl_type = cyrus But I cannot find any such file named smtpd.conf which, according to the Postfix documentation, should exist and should contain: pwcheck_method: saslauthd mech_list: PLAIN It appears to me that postfix is directly looking in /usr/local/etc/sasldb2.db itself and, finding no entries, failing to authenticate. How do I tell postfix to use the saslauthd daemon instead? -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3