[Dovecot] domain variable still empty

Andre Rodier andre.rodier at red2.co.uk
Mon Apr 11 00:19:29 EEST 2011


 Hello all,

 First, thanks for your help with my previous NFS problem. I am trying 
 to mount a mail server, with debian and dovecot 1.2.


 Until now, I have both shared and public folders working, on a NFS 
 share. indexes are stored locally, as well as per user flags. Sive is 
 also working :-)

 Now, I'd like to restrict sharing by domain, and for this, to use the 
 "%d" variable

 When I authenticate, for instance using arodier at red2team, the 
 authentication works. However, the "%d" variable is still empty, when 
 I'd like it to contains "red2team"


 Here my config:
 --------------------------------------------------------------
 # 1.2.15: /etc/dovecot/dovecot.conf
 # OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.1 nfs4
 log_timestamp: %Y-%m-%d %H:%M:%S
 protocols: imap imaps managesieve
 ssl: required
 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(managesieve): /usr/lib/dovecot/managesieve-login
 login_greeting: Titan Ready
 mail_access_groups: mails
 mail_privileged_group: mails
 mail_uid: vmails
 mail_gid: mails
 mail_location: 
 maildir:/home/emails/%d/%n/Maildir:INDEX=/var/mail/indexes/%n:CONTROL=/var/mail/indexes/%n
 mail_debug: yes
 mmap_disable: yes
 fsync_disable: yes
 mail_nfs_storage: yes
 lock_method: flock
 mbox_write_locks: fcntl dotlock
 mail_executable(default): /usr/lib/dovecot/imap
 mail_executable(imap): /usr/lib/dovecot/imap
 mail_executable(managesieve): /usr/lib/dovecot/managesieve
 mail_plugins(default): quota imap_quota acl imap_acl fts fts_squat
 mail_plugins(imap): quota imap_quota acl imap_acl fts fts_squat
 mail_plugins(managesieve):
 mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
 mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
 mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
 namespace:
   type: private
   separator: /
   location: 
 maildir:/home/emails/%d/%n/Maildir:INDEX=/var/mail/indexes/private/%n:CONTROL=/var/mail/indexes/private/%n
   inbox: yes
   list: yes
   subscriptions: yes
 namespace:
   type: shared
   separator: /
   prefix: Shared/%%u/
   location: 
 maildir:/home/emails/%d/%%n/Maildir:INDEX=/var/mail/indexes/users/%n/%%n:CONTROL=/var/mail/indexes/users/%n/%%n
   list: children
 namespace:
   type: public
   separator: /
   prefix: Team/
   location: 
 maildir:/home/emails/%d/Public/Maildir/:INDEX=/var/mail/indexes/public/%n
   list: yes
 lda:
   postmaster_address: postmaster at red2group.com
   hostname: smtp1.red2group.com
   mail_plugins: quota acl sieve
   auth_socket_path: /var/run/dovecot/auth-master
 auth default:
   mechanisms: plain login
   default_realm: red2team
   username_format: %u
   verbose: yes
   debug: yes
   passdb:
     driver: ldap
     args: /etc/dovecot/dovecot-ldap.conf
   userdb:
     driver: ldap
     args: /etc/dovecot/dovecot-ldap.conf
   socket:
     type: listen
     client:
       path: /var/spool/postfix/private/auth
       mode: 432
       user: postfix
       group: postfix
     master:
       path: /var/run/dovecot/auth-master
       mode: 438
 plugin:
   quota: maildir
   acl: vfile:/etc/dovecot/acls/:cache_secs=300
   acl: vfile
   acl_shared_dict: proxy::acl
   sieve: /home/emails/%d/%n/Filters/Active.sieve
   sieve_dir: /home/emails/%d/%n/Filters
   fts: squat
 dict:
   quota: ldap:/etc/dovecot/dovecot-ldap.conf
   acl: mysql:/etc/dovecot/dovecot-mysql.conf
 --------------------------------------------------------------

 This is now the content of the dovecot-ldap config
 --------------------------------------------------------------
 auth_bind = yes
 base = dc=red2,dc=srv
 default_pass_scheme = PLAIN-MD5
 hosts = callisto.red2.srv thebe.red2.srv
 ldap_version = 3
 pass_filter = (&(objectClass=posixAccount)(uid=%n))
 scope = subtree
 user_attrs = homeDirectory=home,gosaMailQuota=quota_rule=*:storage=%$M, 
 mail_plugins
 user_filter = (&(objectClass=posixAccount)(uid=%n))
 --------------------------------------------------------------


 What surprise me is this line during the authentication:
 ===> auth(arodier at red2team,10.10.2.19): username changed 
 arodier at red2team -> arodier


 Any idea, please ? I am stuck on that since two days !

 Kind regards,
 André.


More information about the dovecot mailing list