Problem with mailbox name using virtual domains (sasl plugin problem?)

Adam D. Oliver Adam.Oliver at fblaw.com
Fri Dec 17 09:57:28 EST 2004


I'm trying to get virtual hosting up and running with cyrus imapd and sasl.
The problem is that I create a mailbox for a user that will be in a domain
other than the default domain.

cm user/username at domain1.com

When I log in as the user (testing with Outlook Express) it wants to use the
following format instead.

user/username/foldername at domain1.com

I've been searching and the only thing close to even discussing this is
mention that some auxprop plugins do not pass on the domain/realm to the
imap server.  If that is the case how is it getting the domain name to tack
onto the folder name?  I am using the sasldb plugin.  I added the user to
sasldb with the following:

saslpasswd2 -c -u domain1.com username

I log in through outlook express using username at domain1.com as the username.

Cyrus SASL version 2.1.20
Cyrus Imapd version 2.2.10

**imapd.conf************************************************
# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/files/imapd.conf,v
1.5 2004/08/27 06:02:45 langthang Exp $

# Don't forget to use chattr +S (if you are using ext[23]) 
# when you change these directories (read the docs).
configdirectory:	/var/imap
partition-default:	/var/spool/imap
sievedir:		/var/imap/sieve

tls_ca_path:            /etc/ssl/certs
tls_cert_file:		/etc/ssl/cyrus/server.crt
tls_key_file:		/etc/ssl/cyrus/server.key

# Don't use an everyday user as admin.
admins:			cyrus

hashimapspool:		yes
allowanonymouslogin:	no
#allowplaintext:		no

# Allow renaming of top-level mailboxes.
#allowusermoves:         yes

# Use this if sieve-scripts could be in ~user/.sieve.
sieveusehomedir:	no

postmaster: postmaster
servername: fbtux.fblaw.com
sendmail: /usr/sbin/sendmail

# Use saslauthd if you want to use pam for imap.
# But be warned: login with DIGEST-MD5 or CRAM-MD5 
# is not possible using pam.
# sasl_pwcheck_method:	auxprop

####################################################
## This is a recommended authentication method if you
## emerge cyrus-sasl with 'postgres' or 'mysql'
## To use with mysql database uncomment those lines below.

sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: sasldb

## possible values for sasl_auxprop_plugin 'mysql', 'pgsql', 'sqlite'.
#sasl_sql_engine: mysql

## all possible values.
#sasl_mech_list: LOGIN PLAIN CRAM-MD5 DIGEST-MD5 NTLM
## or limit to CRAM-MD5 only
sasl_mech_list: PLAIN

## change below to suit your setup.
#sasl_sql_user: mailsqluser
#sasl_sql_passwd: password
#sasl_sql_database: mailsqldb
#sasl_sql_hostnames: localhost
#sasl_sql_select: SELECT clear FROM users WHERE email = '%u@%r'

altnamespace: 0
unixhierarchysep: 1
virtdomains: userid
defaultdomain: default.com
#loginrealms: domain1.com


**cyrus.conf******************************************************
# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/files/cyrus.conf,v
1.4 2004/07/18 04:02:23 dragonheart Exp $

# Standard standalone server configuration.

START {
  # Do not delete this entry!
  recover	cmd="ctl_cyrusdb -r"

  # This is only necessary if using idled for IMAP IDLE.
  #idled		cmd="idled"
}

# UNIX sockets start with a slash and are put into /var/imap/socket.
SERVICES {
  # Add or remove based on preferences.
  imap		cmd="imapd" listen="imap2" prefork=0
  pop3		cmd="pop3d" listen="pop-3" prefork=0

  # Don't forget to generate the needed keys for SSL or TLS
  # (see doc/html/install-configure.html).
  #imaps		cmd="imapd -s" listen="imaps" prefork=0
  #pop3s		cmd="pop3d -s" listen="pop3s" prefork=0

  sieve		cmd="timsieved" listen="sieve" prefork=0

  # at least one LMTP is required for delivery
  #lmtp		cmd="lmtpd" listen="lmtp" prefork=0
  lmtpunix	cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0

  # this is only necessary if using notifications
  #notify	cmd="notifyd" listen="/var/imap/socket/notify" proto="udp"
prefork=1
}

EVENTS {
  # This is required.
  checkpoint	cmd="ctl_cyrusdb -c" period=30

  # This is only necessary if using duplicate delivery suppression.
  delprune	cmd="ctl_deliver -E 3" period=1440

  # This is only necessary if caching TLS sessions.
  tlsprune	cmd="tls_prune" period=1440
}

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list