From owner-freebsd-questions@FreeBSD.ORG Wed Sep 14 09:40:35 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 722DE16A41F for ; Wed, 14 Sep 2005 09:40:35 +0000 (GMT) (envelope-from dvorakv@vdsoft.org) Received: from mail.vdsoft.org (poseidon.vdsoft.org [193.85.147.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id E71D243D45 for ; Wed, 14 Sep 2005 09:40:34 +0000 (GMT) (envelope-from dvorakv@vdsoft.org) Received: from [10.10.0.110] (195.70.144.6.adsl.nextra.cz [195.70.144.6]) by mail.vdsoft.org (Postfix) with ESMTP id 7F33847E012; Wed, 14 Sep 2005 11:40:31 +0200 (CEST) Message-ID: <4327F035.10009@vdsoft.org> Date: Wed, 14 Sep 2005 11:41:09 +0200 From: Vladimir Dvorak User-Agent: Debian Thunderbird 1.0.6 (X11/20050802) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Erik Norgaard References: <432693A9.5010706@vdsoft.org> <4326998C.1080600@locolomo.org> <43269C73.30003@vdsoft.org> <43269EFF.8060501@vdsoft.org> <4326A9F1.2040507@locolomo.org> <4326C2F5.2000304@vdsoft.org> <4326D127.5010403@locolomo.org> <4326D2BB.2030209@vdsoft.org> <4326D583.7060704@locolomo.org> <4327DD31.1020602@vdsoft.org> <4327E607.1010809@locolomo.org> <4327E94F.2020703@vdsoft.org> <4327EE8F.4040200@locolomo.org> In-Reply-To: <4327EE8F.4040200@locolomo.org> Content-Type: multipart/mixed; boundary="------------090209000306060605000108" Cc: freebsd-questions@freebsd.org Subject: Re: cyrus-imap + virtualdomains X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 09:40:35 -0000 This is a multi-part message in MIME format. --------------090209000306060605000108 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Erik Norgaard wrote: > Vladimir Dvorak wrote: > >> Erik, we both are about to solve the problem. ;-) Yes, you are probably >> right. When I cyradm -u cyrus, I have in maillog: >> >> Sep 14 09:08:37 devel imap[9491]: badlogin: localhost.localdomain >> [127.0.0.1] plaintext cyrus@localdomain SASL(-13): user not found: >> checkpass failed >> >> When I add cyrus@localdomain, it will manage 'localdomain' users and I >> will be on the same place (probably, for now not tried). :-( Erik, how >> can I log as cyrus without domain ? > > > Please post your imapd.conf (remove comments) - I posted mine > yesterday. Check the content of the admins entry, does it specify > domain? > > I think that cyradm authenticates against sasldb and not system > password (or maybe falls back on system password) - this I understand > - is to separate ordinary users and administrators - but can also be > quite annoying. > > If you have added an entry to sasldb with saslpasswd2 then it could be > for the "devel" realm. > > You can try to rename sasldb and see what happens, then if it doesn't > work create it with new entries where you make sure not to specify realm: > > # saslpasswd2 cyrus > > Also, reading above there may be a difference between: > > # cyradm -u cyrus > > and > > # cyradm -u cyrus localhost > > Cheers, Erik > config is in attachement --------------090209000306060605000108 Content-Type: text/plain; name="imapd.conf" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="imapd.conf" configdirectory: /var/lib/cyrus defaultpartition: default partition-default: /var/spool/cyrus/mail-new partition-news: /var/spool/cyrus/news newsspool: /var/spool/news altnamespace: no unixhierarchysep: yes admins: cyrus allowanonymouslogin: no popminpoll: 1 autocreatequota: 0 umask: 077 sieveusehomedir: false sievedir: /var/spool/sieve hashimapspool: true allowplaintext: yes sasl_auto_transition: no tls_cert_file: /etc/cyrus-global.pem tls_key_file: /etc/cyrus-global.key tls_ca_path: /etc/ssl/certs tls_session_timeout: 1440 tls_cipher_list: TLSv1:SSLv3:SSLv2:!NULL:!EXPORT:!DES:!LOW:@STRENGTH lmtpsocket: /var/run/cyrus/socket/lmtp idlesocket: /var/run/cyrus/socket/idle notifysocket: /var/run/cyrus/socket/notify sasl_pwcheck_method: auxprop sasl_auxprop_plugin: sql sasl_sql_engine: mysql sasl_mech_list: PLAIN LOGIN sasl_sql_user: mysqluser sasl_sql_passwd: xyxyxy sasl_sql_database: hosting sasl_sql_hostnames: localhost sasl_sql_select: SELECT password FROM email WHERE address = '%u@%r' virtdomains: yes --------------090209000306060605000108--