[Dovecot] vacation and field FROM

Николай Клименко klimenko.n at theitidea.ru
Tue Aug 14 15:23:55 EEST 2012


Hi to all
Here is the following scheme: Dovecot in a link with AD.
For LDA and IMAP different views are used in a base.
For example there is a user with such e-mail type -  1.name at domain.ltd 
with the name of authorization auth_1.name.
Incoming male folds up in /var/mail/domain/auth_1.name

When vacation is on, the letters from 1.name at domain.ltd are sent in a 
following way auth_1.name at domain.ltd
I guess the problem is in two different data-base queries.
Could you please tell me how to solve this problem and to make the 
answer to be sent from the same adress it is comes to.

part of dovecot.conf

         protocol lda {
         mail_plugins = sieve acl
         hostname = domain.ltd
         postmaster_address = <postmaster at domain.ltd>
         auth_socket_path = /var/run/dovecot/auth-master_lda
         log_path = /var/log/dovecot-deliver.log
         }

         auth default {
         verbose = no
         debug = no
         debug_passwords = no
         mechanisms = plain
         user = dovecot
         passdb passwd-file {
         args = /etc/dovecot/passwd.masterusers
         master = yes
         }
         passdb ldap {
         args = /etc/dovecot/dovecot-ldap.conf
         }
         userdb static {
         args = uid=20000 gid=20000 home=/opt/mail/user_mailbox/%Lu
    allow_all_users=yes
         }
         socket listen {
         master {
         path = /var/run/dovecot/auth-master
         mode = 0660
         user = vmail
         group = vmail
         }
         client {
         path = /var/spool/postfix/private/dovecot-auth
         mode = 0660
         user = postfix
         group = postfix
            }
         }
    }

         auth auth_lda {
         verbose = no
         debug = no
         debug_passwords = no
         mechanisms = plain
         user = dovecot
         passdb ldap {
         args = /etc/dovecot/dovecot-ldap_lda.conf
         }
         userdb ldap {
         args = /etc/dovecot/dovecot-ldap_lda.conf
         }
         socket listen {
         master  {
         path = /var/run/dovecot/auth-master_lda
         mode = 0660
         user = vmail
         group = vmail
         }


part of dovecot-ldap.conf (filter options)

    pass_attrs = sAMAccountName=user
    pass_filter =
    (&(sAMAccountName=%u)(objectClass=user)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))


part of dovecot-ldap_lda.conf

    user_attrs = sAMAccountName=user
    user_filter = (mail=%u)

    pass_attrs = sAMAccountName=user
    pass_filter = (mail=%u)


-- 



More information about the dovecot mailing list