[Dovecot] When dovecot delivery, nested maildir (<user>/maildir/maildir) is "auto"created
Nunzio Falcone
nunzio.falcone at gmail.com
Thu Mar 7 13:27:40 EET 2013
Scenario: Sogo/Mysql+Postfix+Dovecot(only IMAP)+LDAP (Active Directory)
To make clean the understand of my issue I've performed those step
go to /var/vmail/utente2 and perform in this directory "rm -rf *"
After I send email to utente2 via "telenet localhost 25"
I return to /var/vmail/utente2 and perform "ls -la" that shows me:
maildir
|-maildir
|-cur
|-new
|-tmp
but the expected results was
|-maildir
|-cur
|-new
|-tmp
the relevant part of telnet session is:
Mar 05 19:53:17 auth: Debug: Loading modules from directory:
/usr/lib64/dovecot/auth
Mar 05 19:53:17 auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libauthdb_ldap.so
Mar 05 19:53:17 auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libdriver_sqlite.so
Mar 05 19:53:17 auth: Debug: Module loaded:
/usr/lib64/dovecot/auth/libmech_gssapi.so
Mar 05 19:53:17 auth: Debug: auth client connected (pid=3286)
Mar 05 19:54:35 auth: Debug: master in: USER 1
utente2/maildir/@domain.local service=lda
Mar 05 19:54:35 auth: Debug: master out: USER 1
utente2/maildir/@domain.local uid=500 gid=500
home=/var/vmail/utente2/maildir/@domain.local
Mar 05 19:54:35 lda: Debug: auth input: utente2/maildir/@domain.local
uid=500 gid=500 home=/var/vmail/utente2/maildir/@domain.local
Mar 05 19:54:35 lda(utente2/maildir/@domain.local): Debug: Effective
uid=500, gid=500, home=/var/vmail/utente2/maildir/@domain.local
Mar 05 19:54:35 lda(utente2/maildir/@domain.local): Debug: Home dir not
found: /var/vmail/utente2/maildir/@domain.local
Mar 05 19:54:35 lda(utente2/maildir/@domain.local): Debug: maildir++:
root=/var/vmail/utente2/maildir//maildir, index=, control=,
inbox=/var/vmail/utente2/maildir//maildir
Mar 05 19:54:35 lda(utente2/maildir/@domain.local): Debug: none: root=,
index=, control=, inbox=
Mar 05 19:54:35 lda(utente2/maildir/@domain.local): Info:
msgid=<20130305185423.6E56B407B6 at posta.domain.local>: saved mail to INBOX
NB: note the wrong path of inbox inbox=/var/vmail/utente2/maildir//maildir
From SOGO when I login the "autocreate" work well: in root folder of
"utente2" I can see
|-maildir
|-cur
|-new
|-tmp
But if I send email from SOGO frontend, same error of "telnetting"
*What is wrong in my config?*
dovecot -n
# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-279.el6.x86_64 x86_64 CentOS release 6.3 (Final) ext4
auth_debug = yes
auth_username_chars =
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@/
auth_username_format = %Lu
first_valid_gid = 500
last_valid_gid = 500
last_valid_uid = 500
log_path = /var/log/dovecot
mail_debug = yes
mail_location = maildir:/var/vmail/%n/maildir
mbox_write_locks = fcntl
passdb {
driver = pam
}
postmaster_address = administrator at domain.local
protocols = imap
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
unix_listener auth-userdb {
group = vmail
mode = 0600
user = vmail
}
}
ssl = no
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
args = uid=500 gid=500 home=/var/vmail/%Lu allow_all_users=yes
driver = static
}
valid_chroot_dirs = /var/vmail
/etc/postfix/master.cf (relevant)
# Dovecot LDA
dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail
argv=/usr/libexec/dovecot/deliver -f ${sender} -d ${recipient}
/etc/postfix/ldap-groups.cf
server_host = domain.local
search_base = CN=users,DC=domain,DC=local
bind = yes
bind_dn = query at domain.local
bind_pw = **********
query_filter = (&(objectclass=group) (mail=%s))
leaf_result_attribute = mail
special_result_attribute = member
version = 3
--
*Nunzio Falcone*
nunzio.falcone at gmail.com
*Cell * +39 320 1167923
*Voip*+39 081 0117933
*Fax * +39 081 0113049
More information about the dovecot
mailing list