imap-postlogin and doveadm
We are configuring location= running a bash-script during imap-postlogin setting $MAIL in $USERDB_KEYS, as described in wiki/PostLoginScripting.txt This works fine.
However, running a command like 'dovadm index [-u user] folder' only works for users with settings that match the default in mail_location=
Would it be possible to make the location available for doveadm in a similar way, either with command line arguments or in the enviroment?
hmk
On 10/25/2014 03:16 PM, Hans Morten Kind wrote:
We are configuring location= running a bash-script during imap-postlogin setting $MAIL in $USERDB_KEYS, as described in wiki/PostLoginScripting.txt This works fine.
However, running a command like 'dovadm index [-u user] folder' only works for users with settings that match the default in mail_location=
Would it be possible to make the location available for doveadm in a similar way, either with command line arguments or in the enviroment?
hmk Normally you would return this from the userdb. I normally like to use SQL, among the reasons is the fact that the SQL language allows to do some logic beyond just returning the contents of a column. You didn't specify what your auth backend is and what logic is being done in your bash script. But if you can get the right response to come straight from the userdb, that would affect doveadm too.
On Sat, Oct 25, 2014 at 04:14:44PM -0400, Gedalya wrote:
On 10/25/2014 03:16 PM, Hans Morten Kind wrote:
Would it be possible to make the location available for doveadm in a similar way, either with command line arguments or in the enviroment?
Normally you would return this from the userdb. I normally like to use
SQL, among the reasons is the fact that the SQL language allows to do
some logic beyond just returning the contents of a column. You didn't specify what your auth backend is and what logic is being
done in your bash script. But if you can get the right response to come
straight from the userdb, that would affect doveadm too.
The placement of INBOX is not known by userdb, it is picked from a CDB shared by exim, the delivery agent. The bash-script exports something like this before exec libexec/imap
MAIL="mbox:INBOX=$MAILDIRECTORY/$USER"
hmk
On 25 Oct 2014, at 12:16, Hans Morten Kind Kind@adm.uib.no wrote:
We are configuring location= running a bash-script during imap-postlogin setting $MAIL in $USERDB_KEYS, as described in wiki/PostLoginScripting.txt This works fine.
However, running a command like 'dovadm index [-u user] folder' only works for users with settings that match the default in mail_location=
Would it be possible to make the location available for doveadm in a similar way, either with command line arguments or in the enviroment?
doveadm -o mail=/somewhere
Or in general -o key=value overrides settings.
participants (3)
-
Gedalya
-
Hans Morten Kind
-
Timo Sirainen