[Dovecot] User-specific mail_location using passwd database
current version : 1.0.rc15
Hi,
I would just like to know if it's possible to have different mail locations for different UNIX users, using pam authentication and the passwd userdb. We also have some virtual users using an SQL db.
The current config is :
auth default: username_translation: %@ verbose: yes debug: yes passdb: driver: pam passdb: driver: passwd passdb: driver: sql args: /etc/dovecot/dovecot-sql.conf userdb: driver: passwd userdb: driver: sql args: /etc/dovecot/dovecot-sql.conf
Then we can only modify mail locations for virtual users on the sql userdb. But how could we change it for real users ?
Thanks for help,
-- Maxime Brugidou
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I use userdb_mail at the extra_fields a simple example is here: http://wiki.dovecot.org/AuthDatabase/PasswdFile
do a search at the wiki
Maxime Brugidou wrote: | current version : 1.0.rc15 | | Hi, | | I would just like to know if it's possible to have different mail | locations for different UNIX users, using pam authentication and the | passwd userdb. We also have some virtual users using an SQL db. | ... | | | Then we can only modify mail locations for virtual users on the sql | userdb. But how could we change it for real users ? | | Thanks for help,
Evaggelos Balaskas - http://ebalaskas.gr Unix System Engineer Informatics Engineer Technological Education -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHm4EPWIK+Pe9twhoRAmBKAKC5qnVJDFH/04RKba2VOu56lUrXfACfQjiV O5M6Z8H47Ao2yFh4Q1JWNfc= =8IqM -----END PGP SIGNATURE-----
Can you do this with /etc/passwd ?
I tried to put a line like this :
pseudo:x:1010:100:My Name,,,:/home/pseudo:/bin/zsh:userdb_mail=mbox:~/mail
But it doesn't work : I cannot even login using that line (the shell is considered to be /bin/zsh:userdb_mail=mbox:~/mail)
I already searched the wiki, and didn't find my answer. I apologize if I am mistaken and do it wrong, but please explain me how to do this.
Max
Le samedi 26 janvier 2008 à 08:50:55, Evaggelos Balaskas a écrit :
I use userdb_mail at the extra_fields a simple example is here: http://wiki.dovecot.org/AuthDatabase/PasswdFile
do a search at the wiki
Maxime Brugidou wrote:
Can you do this with /etc/passwd ?
I tried to put a line like this :
pseudo:x:1010:100:My Name,,,:/home/pseudo:/bin/zsh:userdb_mail=mbox:~/mail
But it doesn't work : I cannot even login using that line (the shell is considered to be /bin/zsh:userdb_mail=mbox:~/mail)
I already searched the wiki, and didn't find my answer. I apologize if I am mistaken and do it wrong, but please explain me how to do this.
Max
You cannot do that with the /etc/passwd, only with a passwd-file. Not very useful if you are using them as actual system users.
What you probably need to do is override the mail_executable setting to point to a script. See the last section in http://wiki.dovecot.org/MailLocation
~Matt
Le samedi 26 janvier 2008 à 03:00:21, Matt Ezell a écrit :
You cannot do that with the /etc/passwd, only with a passwd-file. Not very useful if you are using them as actual system users.
What you probably need to do is override the mail_executable setting to point to a script. See the last section in http://wiki.dovecot.org/MailLocation
~Matt
Thanx, this helped me a lot, I didn't understand this section before, until I realized that I can customize the $MAIL variable for each imap process.
-- Maxime
participants (3)
-
Evaggelos Balaskas
-
Matt Ezell
-
Maxime Brugidou