#
#imapd.conf on frontend
#
configdirectory: /var/lib/cyrus
defaultpartition: default
partition-default: /var/spool/cyrus/mail
partition-news: /var/spool/cyrus/news
newsspool: /var/spool/news
altnamespace: no
unixhierarchysep: yes
admins: cyrus cyrusse
proxyservers: cyrus cyrusse
allowanonymouslogin: no
popminpoll: 1
autocreatequota: 0
umask: 077
sieveusehomedir: false
sievedir: /var/spool/sieve
hashimapspool: true
allowplaintext: yes
loginrealms: mydomain.com cyrfro cyrbak cyrmup
sasl_pwcheck_method: auxprop
sasl_auto_transition: no
tls_ca_path: /etc/ssl/certs
tls_session_timeout: 1440
tls_cipher_list: TLSv1:SSLv3:SSLv2:!NULL:!EXPORT:!DES:!LOW:@STRENGTH
mupdate_server: cyrmup.mydomain.com
mupdate_port: 3905
mupdate_username: cyrusse
mupdate_authname: cyrusse
mupdate_password: cyrus
cyrmup_password: cyrus
cyrbak_password: cyrus
proxy_authname: cyrusse
lmtpsocket: /var/run/cyrus/socket/lmtp
idlesocket: /var/run/cyrus/socket/idle
notifysocket: /var/run/cyrus/socket/notify
# END IMAPD.CONF

cyrfro:~# sasldblistusers2
cyrusse@cyrfro: userPassword
laurent@cyrfro: userPassword
sylvain@cyrfro: userPassword

cyrfro:~# cyradm -u cyrusse localhost
Password:
localhost> lm
SharedTest (\HasNoChildren)
user/laurent (\HasNoChildren)
user/laurent/Trash (\HasNoChildren)
user/sylvain (\HasNoChildren)


#
#imapd.conf on backend
#
configdirectory: /var/lib/cyrus
defaultpartition: default
partition-default: /var/spool/cyrus/mail
partition-news: /var/spool/cyrus/news
newsspool: /var/spool/news
altnamespace: no
unixhierarchysep: yes
lmtp_downcase_rcpt: yes
admins: cyrus cyrusse
lmtp_admins: postman
allowanonymouslogin: no
popminpoll: 1
autocreatequota: 0
umask: 077
sieveusehomedir: false
sievedir: /var/spool/sieve
hashimapspool: true
allowplaintext: yes
loginrealms: mydomain.com cyrfro cyrbak cyrmup
sasl_pwcheck_method: auxprop
sasl_auto_transition: no
tls_ca_path: /etc/ssl/certs
tls_session_timeout: 1440
tls_cipher_list: TLSv1:SSLv3:SSLv2:!NULL:!EXPORT:!DES:!LOW:@STRENGTH
mupdate_server: cyrmup.mydomain.com
mupdate_port: 3905
mupdate_username: cyrusse
mupdate_allowplaintext: true
mupdate_authname: cyrusse
mupdate_realm: cyrmup
mupdate_password: cyrus
lmtpsocket: localhost:lmtp
idlesocket: /var/run/cyrus/socket/idle
notifysocket: /var/run/cyrus/socket/notify

cyrbak:~# cyradm -u cyrusse localhost
Password:
localhost> lm
SharedTest (\HasNoChildren)
user/laurent (\HasNoChildren)
user/sylvain (\HasNoChildren)

cyrbak:~# imtest -u laurent localhost
S: * OK stc093srcyrbak Cyrus IMAP4 v2.1.16-IPv6-Debian-2.1.16-8 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE MUPDATE=mupdate://128.69.69.72/ AUTH=NTLM AUTH=DIGEST-MD5 AUTH=CRAM-MD5 LISTEXT LIST-SUBSCRIBED ANNOTATEMORE
S: C01 OK Completed
C: A01 AUTHENTICATE DIGEST-MD5
S: + bm9uY2U9Ikk3OHJzSCt4azRub28ySXNpOWt6YUFrZi9IVzdjeStyQ0c1UzFFeVVVWWc9IixyZWFsbT0ic3RjMDkzc3JjeXJiYWsiLHFvcD0iYXV0aCxhdXRoLWludCxhdXRoLWNvbmYiLGNpcGhlcj0icmM0LTQwLHJjNC01NixyYzQsZGVzLDNkZXMiLG1heGJ1Zj00MDk2LGNoYXJzZXQ9dXRmLTgsYWxnb3JpdGhtPW1kNS1zZXNz
Please enter your password:
C: dXNlcm5hbWU9InJvb3QiLHJlYWxtPSJzdGMwOTNzcmN5cmJhayIsYXV0aHppZD0ibGF1cmVudCIsbm9uY2U9Ikk3OHJzSCt4azRub28ySXNpOWt6YUFrZi9IVzdjeStyQ0c1UzFFeVVVWWc9Iixjbm9uY2U9IjMzUTZSckJFZklKWEV1cUVwSWRqRDVhVEV4MTlpVXhyMUhLelgxUUFUbDQ9IixuYz0wMDAwMDAwMSxxb3A9YXV0aC1jb25mLGNpcGhlcj1yYzQsbWF4YnVmPTEwMjQsZGlnZXN0LXVyaT0iaW1hcC9sb2NhbGhvc3QiLHJlc3BvbnNlPTBlMGZlODIyNDJkN2Y4MTdhMzFhYjM3ZjdhNTk3YmJi
S: A01 NO user not found
Authentication failed. generic failure
Security strength factor: 128
C: Q01 LOGOUT


SUCCESSFULL LOGIN from an IMAP Client (Thunderbird)
Sep 14 17:47:35 localhost cyrus/master[4122]: about to exec /usr/lib/cyrus/bin/imapd
Sep 14 17:47:35 localhost cyrus/imap[4122]: executed
Sep 14 17:47:35 localhost cyrus/imapd[4122]: accepted connection
Sep 14 17:47:46 localhost cyrus/imapd[4122]: login: client.dhcp[128.69.201.231] laurent plaintext
Sep 14 17:47:46 localhost cyrus/imapd[4122]: skiplist: recovered /var/lib/cyrus/user/l/laurent.seen (0 records, 144 bytes) in 0 seconds
Sep 14 17:47:46 localhost cyrus/imapd[4122]: seen_db: user laurent opened /var/lib/cyrus/user/l/laurent.seen
Sep 14 17:47:46 localhost cyrus/imapd[4122]: open: user laurent opened INBOX


Interesting log entries
*** ON Frontend 
Sep 15 08:51:41 localhost postfix/lmtp[21889]: B69927F812: to=<laurent@cyrbak>, relay=/var/run/cyru
s/socket/lmtp[/var/run/cyrus/socket/lmtp], delay=138535, status=deferred (host /var/run/cyrus/socket/lmtp[/
var/run/cyrus/socket/lmtp] said: 421 4.3.0 deliver: can't connect to backend lmtp server (in reply to end o
f DATA command))

*** On backend
Sep 15 08:56:40 localhost cyrus/lmtp[4995]: executed
Sep 15 08:56:40 localhost cyrus/lmtpd[4995]: accepted connection
Sep 15 08:56:40 localhost cyrus/lmtpd[4995]: connection from cyrfro.mydomain.com [128.69.69.44]
Sep 15 08:56:43 localhost cyrus/lmtpd[4991]: badlogin: 128.69.69.44 DIGEST-MD5 SASL(-13): user not found: no secret in database

