Re: [Dovecot] imapsync, namespaces and Dovecot 2.x

2012-04-04 Thread Aleix Dorca
El 04/04/2012, a les 3:49, Timo Sirainen va escriure:

 On 2.4.2012, at 19.11, Aleix Dorca wrote:
 
 I recently tried to migrate from Exchange using imapsync. It didn't work 
 because it complained that dovecot had no namespace capablity. After looking 
 through Dovecot's config files I found that namespaces could be defined, but 
 if you did not a 'private' default one was created.
 
 The problem is that Dovecot doesn't advertise NAMESPACE capability before 
 client has logged in. The better solution would be to change imapsync to 
 figure this out automatically. The other solution would be to set in Dovecot:
 
 imap_capability = +NAMESPACE
 

Dead on! Thanks a lot.

Aleix.

[Dovecot] imapsync, namespaces and Dovecot 2.x

2012-04-02 Thread Aleix Dorca
Hi people,

I recently tried to migrate from Exchange using imapsync. It didn't work 
because it complained that dovecot had no namespace capablity. After looking 
through Dovecot's config files I found that namespaces could be defined, but if 
you did not a 'private' default one was created.

In the 2.x wiki documentation (http://wiki2.dovecot.org/Migration) it says 
nothing about Namespaces. I don't know if I have to create one or not. If I add 
the parameters --sep2 . --prefix2 '' to imapsync then it works fine.

I'm proxying using dovecot as frontend and backend, version 2.0.18 (The one 
that comes with Debian Wheezy).

Any thoughts, please?

Thanks,

Aleix.

[Dovecot] Problem with LDAP query

2010-06-10 Thread Aleix Dorca
Hi people,

first message to this list.

I've a problem with dovecot 1.0.15 (debian latest package) and an LDAP query. 
The situation is the following. My LDAP users have multiple mail addresses 
(field 'mail') and mail should be able to be sent to any of these and the mail 
should always end on the user's mailbox. This is not working for me now.

My dovecot-ldap.conf relevant config shows:

user-attrs = uid=user
user_filter = ((objectClass=posixAccount)(|(uid=%n)(mail=%u)))

This correctly detects multiple addresses but mail always end in folder (from 
dovecot.conf):

mail_location = maildir:/home/vmail/%n/Maildir

So if u...@domain gets a mail it ends in /home/vmail/user/Maildir but if the 
same user gets an email to user-...@domain it ends in 
/home/vmail/user-alt/Maildir instead of /home/vmail/user/Maildir.

I've been debugging and I get this on my mail.log file:

Jun 10 12:41:29 horologium deliver(user-...@domain): auth input: user-...@domain
Jun 10 12:41:29 horologium deliver(user-...@domain): auth input: user=user
Jun 10 12:41:29 horologium deliver(user-...@domain): auth input: uid=5000
Jun 10 12:41:29 horologium deliver(user-...@domain): auth input: gid=5000
Jun 10 12:41:29 horologium deliver(user-...@domain): maildir: 
data=/home/vmail/user-alt/Maildir
Jun 10 12:41:29 horologium deliver(user-...@domain): maildir: 
root=/home/vmail/user-alt/Maildir, index=/home/vmail/user-alt/Maildir, 
control=, inbox=

Since I'm in version 1.0.15 can't use the mailLocation with the $ substitution.

Anyway, any help will be appreciated.

My dovecot -n result:

# 1.0.15: /etc/dovecot/dovecot.conf
log_timestamp: %Y-%m-%d %H:%M:%S 
protocols: imap imaps pop3 pop3s
ssl_cert_file: /etc/dovecot/certs/domain.crt
ssl_key_file: /etc/dovecot/certs/domain.key
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_privileged_group: mail
mail_location: maildir:/home/vmail/%n/Maildir
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
pop3_uidl_format(default): 
pop3_uidl_format(imap): 
pop3_uidl_format(pop3): %08Xu%08Xv
auth default:
  mechanisms: plain login
  passdb:
driver: ldap
args: /etc/dovecot/dovecot-ldap.conf
  userdb:
driver: ldap
args: /etc/dovecot/dovecot-ldap.conf
  socket:
type: listen
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: vmail
  group: vmail

Thanks a lot,

Aleix Dorca.