If you have already setup a passdb, you can propably use an almost identical configuration as user_db.

E.g. we use ldap for our users and have the following config in the dovecot conf:


    userdb {
      driver = ldap
      args = /etc/dovecot/dovecot-ldap.conf.ext
      override_fields = home=/data/mail/%d/%u/ uid=1234 gid=1234 mail_location=maildir:/data/mail/%d/%u/
    }
    passdb {
      driver = ldap
      args = /etc/dovecot/dovecot-ldap.conf.ext
    }


The overrides are obviously only necessary if you don't have the correct home/mail_location/uid/gid values in your db.

On 2/7/24 12:25, Ed wrote:
Thanks Michael, I was trying to avoid keeping usernames in a seperate location 
as they are already stored in the Samba DC. Will it be necessary to keep a 
seperate list? I tried adding this:
userdb {
   driver = static
   args = uid=vmail gid=vmail home=/var/mail/virtual/%d/%n
}


But I still get the same error.
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to