-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, 23 Feb 2016, Andrew McGlashan wrote:
I've been able to configure past dovecot to have a different mail_location setting for the same user, but with different protocols.
When the user requests POP3S, I adjusted the mail_location to /var/mail/$USER (with mbox in use).
When that *same* user requested IMAPS protocol, the required mail_location is the Maildir folder.
This allows for independent two mail storage locations, one for the use of mbox and the other for the use of Maildir *and* for the same user.
Some users only require mbox with others only requiring Maildir.
So, I need to cater for each of these situations.
How might I adjust current dovecot configuration to provide different mail_location settings for different protocols?
Old dovecot allowed me to run a script before POP3S processing that gave me the chance to adjust the mail_location variable. That is what I need now, just for POP3S.
Did you already tried: http://wiki2.dovecot.org/PostLoginScripting e.g. for service pop3 ?
Depending on your userdb, you can make use of the %s variable in lookups.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVswOEnz1H7kL/d9rAQJTdgf/fTeThZGSDBLdYEtvd5sD/FKXEeCQpVYl YGF2YgNnTL9i5iQHGgUze/KzmefP+viEBFhFREke1bK2kOyJFcTNslytzQC5Fg4D BF7GBAPz323Xp1RY4KhANlkRnEQY8nQ+UNtQUjaR9RbpfdPFVHU/MYlZgvbMlext btOnh7D2dB8ouZ4myAt91mwzAjuuvUIpBajX42MmFwuvmD6ZiH3AQkel+sOLjX7O qOxvwLJ8h+SIbqMWnz5BR4aWUwiP8vU6As5rzXjlRW6yeC/vlROf6VRGTt3IcinY FCoCXp5xgnUDlqoqRt+LsDEC4Wq0w96eiqoyrnXox/tlpnsKSctBhA== =D7to -----END PGP SIGNATURE-----