From owner-freebsd-ports@FreeBSD.ORG Thu Aug 18 23:11:56 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF69E1065670 for ; Thu, 18 Aug 2011 23:11:56 +0000 (UTC) (envelope-from sahil@tandon.net) Received: from spartan.hamla.org (spartan.hamla.org [206.251.255.30]) by mx1.freebsd.org (Postfix) with ESMTP id 924B78FC13 for ; Thu, 18 Aug 2011 23:11:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by spartan.hamla.org (Postfix) with ESMTP id 44A0A170E5 for ; Thu, 18 Aug 2011 19:12:25 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tandon.net; h= user-agent:in-reply-to:content-disposition:content-type :content-type:mime-version:references:reply-to:message-id :subject:subject:from:from:date:date:received; s=aegis; t= 1313709145; bh=rH0UBw/hCdDjn709QuIsodtGrsFSTrLJnaCPbm938xs=; b=S 1YKCJ30HWg4CEVMOkM7xIpRcSjzbacXDr2YeGc2izgwyCqLNfClhrpJGBPjUuWUP fMq2RPX5Nu2RH7ok5/1qrwciP9YunhHDSR731I4/xCy+SoQNp7oW7Db8msNDaSU6 V2kpf78wj6DXWzmYq6t3zWegAFtVXqCVhiLhRvy5+I= X-Virus-Scanned: by ClamAV at spartan.hamla.org Received: from spartan.hamla.org ([127.0.0.1]) by localhost (spartan.hamla.org [127.0.0.1]) (amavisd-new, port 10027) with LMTP id 3xugVqyTENig for ; Thu, 18 Aug 2011 19:12:25 -0400 (EDT) Date: Thu, 18 Aug 2011 19:11:53 -0400 From: Sahil Tandon To: freebsd-ports@freebsd.org Message-ID: <20110818231152.GB308@magic.hamla.org> References: <00e201cc5def$3faf1ef0$bf0d5cd0$@muni.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00e201cc5def$3faf1ef0$bf0d5cd0$@muni.cz> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: Postfix - Dovecot SASL problem X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-ports@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2011 23:11:56 -0000 [ I agree with Jerry that this question belongs on postfix-users, but I hope my response is helpful ] On Thu, 2011-08-18 at 23:38:58 +0200, Petr Holub wrote: > I'm using mail/postfix with WITH_DOVECOT2=yes and mail/dovecot2 with MySQL > backend for users from FreeBSD ports: > dovecot-2.0.12 > postfix-2.8.4,1 > > I'm unable to get SMTP authentication working using Dovecot SASL with > ---- > postfix/main.cf: Generally, when asking for help with Postfix, it is better to provide the output of 'postconf -n' rather than snippets of your main.cf. > ... > smtpd_sasl_security_options = noanonymous, noplaintext > smtpd_sasl_tls_security_options = noanonymous So you prohibit plaintext SASL authentication unless the session is TLS encrypted. > When attempting to use Dovecot for SMTP SASL auth, what I get is > ---- > 2011-08-18 23:31:57auth: Debug: Loading modules from directory: /usr/local/lib/dovecot/auth > Aug 18 23:31:57 mail postfix/smtpd[57411]: fatal: no SASL authentication mechanisms There are no TLS connection lines in your log excerpt; if we assume that no encrypted session was established, then this error makes sense if ... > MECH PLAIN plaintext > MECH LOGIN plaintext dovecot only offers plaintext authentication mechanisms, which you have configured Postfix to explicitly disallow for non-TLS sessions. -- Sahil Tandon