[Dovecot] postfix+lda+ virtual users, confusion

Harry Lachanas grharry at freemail.gr
Wed May 19 21:05:20 EEST 2010


I thought it would be nice to have vboxes insead of user logins ...

Now I am confuesed and in trouble ..

My server serves  2 domains
so
user1 at domain1.com
is  the same as
user1 at domain2.org


I've created the mail_location string with %n
and static userdb with %n

dovecot creates 2 mail user  directories 
user1 at domain1.com
user1 at domain2.org

What the heck am I missing ..  ??

Your help is appreciated
Regards
Harry

Here is my config
---------------------------------------------------------------------------------------
base_dir = /var/run/dovecot/
protocols = imap imaps
log_timestamp = "%Y-%m-%d %H:%M:%S "
ssl_cert_file = /etc/postfix/sasl/cacert.org/mail.pem
ssl_key_file = /etc/postfix/sasl/cacert.org/mail.pem
ssl_ca_file = /etc/postfix/sasl/cacert.org/cacert.org-root.crt
login_greeting = Hi buddy, have an account ??
mail_location = maildir:/home/vmail/%n/Maildir/
namespace private {
   separator = /
   prefix =
  
   location = maildir:~/Maildir/
   inbox = yes
}
namespace public {
        prefix = Public/
        separator = /
        location = 
maildir:/home/Public-Folders-Mail/Public-RO:INDEX=~/Maildir/p1-idx:CONTROL=~/Maildir/p1-ctrl
        hidden=no
        subscriptions=no
        inbox = no
        list=no
}
namespace public {
        prefix = Public-Shared/
        separator = /
        location = 
maildir:/home/Public-Folders-Mail/Public-RW:INDEX=~/Maildir/p2-idx
        hidden = no
        subscriptions = no
        inbox = no
        list = no
}
mail_privileged_group = mail
mail_debug = yes
verbose_proctitle = yes
valid_chroot_dirs = /var/mail:/home/Public-Folders-Mail
dbox_rotate_size = 2048
dbox_rotate_min_size = 16
dbox_rotate_days = 0
protocol imap {
  mail_plugins = zlib autocreate expire
  imap_client_workarounds = outlook-idle
 
}
 
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
  mail_plugins = expire
}
protocol lda {
  postmaster_address = harry at domainxxx.com
  hostname = mail.domain1.com
  sendmail_path = /usr/sbin/sendmail
  auth_socket_path = /var/run/dovecot/auth-master
  mail_plugins =  expire
}
auth default {
  mechanisms = plain
  passdb passwd-file {
      args = scheme=plain-md5 username_format=%n 
/usr/local/dovecot/etc/imap.pass3
  }
  userdb static {
       args = uid=1001 gid=1001 home=/home/vmail/%n
  }
  userdb passwd {
  }
  user = root
  socket listen {
    master {
      path = /var/run/dovecot/auth-master
      mode = 0600
      user = vmail
      group= vmail
    }
    client {
      path = /var/spool/postfix/private/auth
      mode = 0660
      user = postfix
      group = postfix
    }
  }
}
dict {
  expire = db:/var/lib/dovecot/expire.db
}
plugin {
  autocreate         = Spam
  autosubscribe     = Spam
  autocreate1        = Public-Shared/Info
  autosubscribe1    = Public-Shared/Info
  autocreate2        = Undetected-Spam
  autosubscribe2    = Undetected-Spam
  expire = Trash 2 Trash/* 2 Spam 4
  expire_dict = proxy::expire
  auth_socket_path = /var/run/dovecot/auth-master
}
-------------------------------------------------------------------------------------





More information about the dovecot mailing list