virtdomains & PAM
nkulynych at gotshell.org
nkulynych at gotshell.org
Wed Sep 10 14:45:20 EDT 2003
Hello,
I'v got small problem with cyrus, sasl & pam combination.
I am using cyrus as imap server and sasl+pam+mysql backend for
authentication. Everything works if my username in mysql is "username"
but when I change to "username at mydomain.com" and I do login as
username at mydomain.com authentication fails, looking back through sql
access queries show just "username" and somewhere in between it chops
of the "@mydomain.com" part. Thus not allowing to do virtual domains.
My imap.conf and cyrus.conf are attached
useraccount has been created in cyradm as
cm user.username at mydomain.com
Versions:
os: fbsd 4.8
cyrus: v2.2.1-BETA
sasl: 2.1.15
### CYRUS.CONF
cat /etc/cyrus.conf
# standard standalone server implementation
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="imap" prefork=0
imaps cmd="imapd -s" listen="imaps" prefork=0
pop3 cmd="pop3d" listen="pop3" prefork=0
pop3s cmd="pop3d -s" listen="pop3s" prefork=0
sieve cmd="timsieved" listen="sieve" prefork=0
# these are only necessary if receiving/exporting usenet via NNTP
# nntp cmd="nntpd" listen="nntp" prefork=0
# nntps cmd="nntpd -s" listen="nntps" prefork=0
# at least one LMTP is required for delivery
# lmtp cmd="lmtpd" listen="lmtp" prefork=0
lmtpunix cmd="lmtpd" listen="/www/data/spool/cyrus/socket/lmtp" prefork=0
# this is only necessary if using notifications
# notify cmd="notifyd" listen="/var/imap/socket/notify" proto="udp" prefo
rk=1
}
EVENTS {
# this is required
checkpoint cmd="ctl_cyrusdb -c" period=30
# this is only necessary if using duplicate delivery suppression,
# Sieve or NNTP
delprune cmd="cyr_expire -E 3" at=0400
# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" at=0400
}
### IMAPD.CONF
# cat /etc/imapd.conf
postmaster: default
configdirectory: /www/data/spool/cyrus
partition-default: /www/data/spool/messages
admins: cyrus
defaultdomain: mydomain.com
allowanonymouslogin: no
allowplaintext: yes
sasl_mech_list: PLAIN
servername: mail.mydomain.com
autocreatequota: 10000
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
sasl_pwcheck_method: saslauthd
sievedir: /www/var/sieve
sendmail: /usr/sbin/sendmail
sieve_maxscriptsize: 32
sieve_maxscripts: 5
#unixhierarchysep: yes
virtdomains: yes
loginrealms: mydomain.com
-------------------------------------------------
This mail sent from IMP: http://webmail.gotshell.org/
More information about the Info-cyrus
mailing list