Hello to all,
I've a problem.
Here is the situation :
Accounts for mail are formatted like this :
first letter of the surname, then name.
For John DOE, it will be jdoe
Mail addresses are formatted like this :
[email protected]
For John DOE, il will be :
[B][email protected][/B]
Data are stored in an LDAP directory.
* jdoe is the uid filed
* [email protected] is the mail fied
* mail location (/home/mail/jdoe/) is the mailbox field
The problem is that I can't succeed in getting the "%u" variable in dovecot config with the right value (ie. jdoe). It will always be "john.doe"
To sum-up, i want :
%u --> jdoe
%n --> john.doe
%d --> domain.com
Do you know how to proceed ?
For info, here is my "dovecot-ldap.conf" :
Note my workaround there to make my system working :
(|(mail=%n@%d)(uid=%u)) ... not so beautiful
And here is my dovecot.conf :
THanks a lot
I've a problem.
Here is the situation :
Accounts for mail are formatted like this :
first letter of the surname, then name.
For John DOE, it will be jdoe
Mail addresses are formatted like this :
[email protected]
For John DOE, il will be :
[B][email protected][/B]
Data are stored in an LDAP directory.
* jdoe is the uid filed
* [email protected] is the mail fied
* mail location (/home/mail/jdoe/) is the mailbox field
The problem is that I can't succeed in getting the "%u" variable in dovecot config with the right value (ie. jdoe). It will always be "john.doe"
To sum-up, i want :
%u --> jdoe
%n --> john.doe
%d --> domain.com
Do you know how to proceed ?
For info, here is my "dovecot-ldap.conf" :
Code:
...
user_attrs = mailbox=mail
user_filter = (&(objectClass=mailAccount)(|(mail=%n@%d)(uid=%u))(mailenable=OK))
pass_attrs = uid=user,userPassword=password
pass_filter = (&(objectClass=mailAccount)(uid=%n)(mailenable=OK))
user_global_uid = messagerie
user_global_gid = mail
Note my workaround there to make my system working :
(|(mail=%n@%d)(uid=%u)) ... not so beautiful
And here is my dovecot.conf :
Code:
protocols = imap imaps pop3 pop3s
disable_plaintext_auth = no
log_timestamp = "%Y-%m-%d %H:%M:%S "
# overridden by ldap attr
mail_location = maildir:/home/mail/%n
mail_privileged_group = mail
protocol imap
{
imap_client_workarounds = outlook-idle
}
protocol pop3
{
pop3_uidl_format = %08Xu%08Xv
}
protocol lda
{
postmaster_address = [email protected]
auth_socket_path = /var/run/dovecot/auth-master
mail_plugins = cmusieve
log_path = /var/log/dovecot-deliver.log
}
auth default
{
mechanisms = plain login
passdb ldap
{
args = /etc/dovecot/dovecot-ldap.conf
}
userdb ldap
{
args = /etc/dovecot/dovecot-ldap.conf
}
user = root
socket listen
{
master
{
path = /var/run/dovecot/auth-master
mode = 0600
user = messagerie
group = mail
}
}
}
plugin
{
sieve = /home/sieve/%n
}
THanks a lot