From owner-freebsd-questions@FreeBSD.ORG Wed Jun 25 20:59:39 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 63BC2A8E for ; Wed, 25 Jun 2014 20:59:39 +0000 (UTC) Received: from smtpb.telissant.net (smtpb.telissant.net [199.233.230.156]) by mx1.freebsd.org (Postfix) with ESMTP id 3804F24D4 for ; Wed, 25 Jun 2014 20:59:38 +0000 (UTC) Received: from barrida.3dresearch.com (localhost [127.0.0.1]) by smtpb.telissant.net (Postfix) with ESMTP id 9CDC8273BC for ; Wed, 25 Jun 2014 16:54:24 -0400 (EDT) X-Virus-Scanned: amavisd-new at telissant.net Received: from smtpb.telissant.net ([127.0.0.1]) by barrida.3dresearch.com (barrida.3dresearch.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1ReQ8YoGhL3k for ; Wed, 25 Jun 2014 16:54:00 -0400 (EDT) Received: from doncurzio.3dresearch.com (pool-108-3-92-199.pitbpa.east.verizon.net [108.3.92.199]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtpb.telissant.net (Postfix) with ESMTPSA id DB5D427342 for ; Wed, 25 Jun 2014 16:54:00 -0400 (EDT) Received: from doncurzio.3dresearch.com (localhost [127.0.0.1]) by doncurzio.3dresearch.com (Postfix) with SMTP id 6EEFBA1E2D for ; Wed, 25 Jun 2014 16:53:59 -0400 (EDT) Date: Wed, 25 Jun 2014 16:53:41 -0400 From: Janos Dohanics To: FreeBSD Questions Subject: sieve/websive authentication problem Message-Id: <20140625165341.e45ec9292f95fc1fb9b5b5ed@3dresearch.com> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.19; amd64-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jun 2014 20:59:39 -0000 Hello List, I am unable to make sieve authentication work. Cyrus uses saslauthd for authentication. I can telnet to the sieve port: # telnet localhost sieve Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. "IMPLEMENTATION" "Cyrus timsieved v2.4.17" "SASL" "PLAIN" "SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify envelope relational regex subaddress copy" "STARTTLS" "UNAUTHENTICATE" Saslauthd seems to work: # testsaslauthd -u mcsmith -p ******** 0: OK "Success." I can authenticate with Cyrus IMAP: # imtest -a mcsmith WARNING: no hostname supplied, assuming localhost S: * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=PLAIN SASL-IR] [mailserver] Cyrus IMAP v2.4.17 server ready Please enter your password: C: A01 AUTHENTICATE PLAIN AG1jc21pdGgAVGVscy1vZDY= S: A01 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY LOGINDISABLED COMPRESS=DEFLATE IDLE] Success (no protection) SESSIONID=<[mailserver]-62840-1403727961-1> Authenticated. Security strength factor: 0 However, sivtest gives "Authentication Error": # sivtest -a mcsmith WARNING: no hostname supplied, assuming localhost S: "IMPLEMENTATION" "Cyrus timsieved v2.4.17" S: "SASL" "PLAIN" S: "SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify envelope relational regex subaddress copy" S: "STARTTLS" S: "UNAUTHENTICATE" S: OK Please enter your password: C: AUTHENTICATE "PLAIN" {24+} AG1jc21pdGgAVGVscy1vZDY= S: NO "Authentication Error" Authentication failed. generic failure Security strength factor: 0 Trying sieveshell: # sieveshell -a mcsmith localhost connecting to localhost Please enter your password: unable to connect to server at /usr/local/bin/sieveshell line 170, line 1. What am I missing? -- Janos Dohanics