Dovecot Virtual Users and Users Domain Mapping
Posted
by
Stojko
on Server Fault
See other posts from Server Fault
or by Stojko
Published on 2012-04-24T00:19:38Z
Indexed on
2013/10/23
3:57 UTC
Read the original article
Hit count: 400
I have successfully compiled, configured and ran Dovecot with virtual users feature.
Here's part of my /etc/dovecot.conf
configuration file:
mail_location = maildir:/home/%d/%n/Maildir
auth default {
mechanisms = plain login
userdb passwd-file {
args = /home/%d/etc/passwd
}
passdb passwd-file {
args = /home/%d/etc/shadow
}
socket listen {
master {
path = /var/run/dovecot/auth-worker
mode = 0600
}
}
}
I faced one issue I can't resolve myself. Is there anyway to create users' domains mapping and provide username in mail_location
?
Examples: 1. currently I have /home/domain.com/user/Maildir 2. I'd like to have /home/USER/domain.com/user/Maildir
Can I achieve this somehow?
Greets, Stojko
© Server Fault or respective owner