search for: userdb_keys

Displaying 18 results from an estimated 18 matches for "userdb_keys".

2016 Dec 11
4
postlogin script
...st-login.sh script. But, there are no arguments sent to the post-login.sh script in the examples. So what is this line supposed to do? Question 2: One of the examples shows exporting some environmental variables, followed by the above exec line: export MAIL=maildir:/tmp/test export USERDB_KEYS="$USERDB_KEYS mail" exec "$@" Now, I'm really confused. Can someone explain step-by-step why this does anything at all? Question 3: I'd like to be able to pass some information to the post-login.sh script, such as the service (%s), as a positional parameter....
2015 Aug 05
3
question on autch cache parameters
...global ACL file. I discovered this only works on first NOT-cached login environment in imap-postlogin script on first login: AUTH_TOKEN=e96b5a32ceb2cafc4460c210ad2e92e3d7ab388c MASTER_USER=master at uma SPUSER=private/pdf LOCAL_IP=127.0.0.1 USER=pdf AUTH_USER=master at uma PWD=/var/run/dovecot USERDB_KEYS=ACL_GROUPS HOME SPUSER MASTER_USER AUTH_TOKEN AUTH_USER SHLVL=1 HOME=/var/data/vmail/private/pdf ACL_GROUPS=umareadmaster IP=127.0.0.1 _=/usr/bin/env on the second cached login it looks like this AUTH_TOKEN=12703b11932f233520f6d4b33559c33aeb1cfc7f MASTER_USER=master at uma SPUSER=private/pdf LO...
2018 Oct 18
2
Ass(et) protection for mobile users
Connections from anything other than LAN. On Thu, Oct 18, 2018 at 08:49, Aki Tuomi <aki.tuomi at open-xchange.com> wrote: > On 18.10.2018 9.48, Rupert Gallagher wrote: >> Hello! >> >> Is it possible to hide the public folder when the user is on its >> mobile phone? > How would you know this? > > Aki -------------- next part -------------- An HTML
2010 Dec 03
2
Problem with ACLs
Hi, i want to use unix groups in my ACLs. http://wiki2.dovecot.org/ACL says, I can do that with a post-login script (http://wiki2.dovecot.org/PostLoginScripting). I have verified, that the script is running, and that ACL_GROUPS is correct. But I still can't access the Mailbox. Logfile says: Dec 3 11:19:35 mailint1 dovecot: imap(micha): Debug: acl vfile: reading file
2014 Nov 05
1
calling post-login script with doveadm
...oaded in a post-login script before running these commands. Is possible to run the post-login script while executing doveadm? I've found how to do something similar with -o key=value to override settings, but I want to change a namespace location, as done in the post-login script: ... export USERDB_KEYS="$USERDB_KEYS namespace/archivo/location" exec env "NAMESPACE/ARCHIVO/LOCATION=$location" "$@" ... Thank you very much in advanced. Kind regards. H?ctor Moreno P Please consider the environment before printing this e-mail. ______________________ This message includ...
2015 Aug 06
3
question on autch cache parameters
...n imap-postlogin script on first login: >> >> >> AUTH_TOKEN=e96b5a32ceb2cafc4460c210ad2e92e3d7ab388c >> MASTER_USER=master at uma >> SPUSER=private/pdf >> LOCAL_IP=127.0.0.1 >> USER=pdf >> AUTH_USER=master at uma >> PWD=/var/run/dovecot >> USERDB_KEYS=ACL_GROUPS HOME SPUSER MASTER_USER AUTH_TOKEN AUTH_USER >> SHLVL=1 >> HOME=/var/data/vmail/private/pdf >> ACL_GROUPS=umareadmaster >> IP=127.0.0.1 >> _=/usr/bin/env >> >> >> on the second cached login it looks like this >> >> >> AUTH...
2009 Dec 12
0
v2.0 post-login scripts
...} } The "script" executable does all the magic. If you want multiple scripts, just make them a chain, like above script first executes rawlog, and rawlog then executes /tmp/test.sh: #!/bin/sh echo "* OK Hello $USER ($IP -> $LOCAL_IP)" export MAIL=maildir:/tmp/test export USERDB_KEYS="$USERDB_KEYS mail" exec $* So it's pretty similar to how it works before, except now you'll also need to update $USERDB_KEYS to contain all environments that you want to pass to imap process. -------------- next part -------------- A non-text attachment was scrubbed... Name: si...
2014 Oct 25
2
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, eith...
2015 Aug 05
0
question on autch cache parameters
...n > > > > environment in imap-postlogin script on first login: > > > AUTH_TOKEN=e96b5a32ceb2cafc4460c210ad2e92e3d7ab388c > MASTER_USER=master at uma > SPUSER=private/pdf > LOCAL_IP=127.0.0.1 > USER=pdf > AUTH_USER=master at uma > PWD=/var/run/dovecot > USERDB_KEYS=ACL_GROUPS HOME SPUSER MASTER_USER AUTH_TOKEN AUTH_USER > SHLVL=1 > HOME=/var/data/vmail/private/pdf > ACL_GROUPS=umareadmaster > IP=127.0.0.1 > _=/usr/bin/env > > > on the second cached login it looks like this > > > AUTH_TOKEN=12703b11932f233520f6d4b33559c33ae...
2016 Dec 14
0
FW: postlogin script
...st-login.sh script. But, there are no arguments sent to the post-login.sh script in the examples. So what is this line supposed to do? Question 2: One of the examples shows exporting some environmental variables, followed by the above exec line: export MAIL=maildir:/tmp/test export USERDB_KEYS="$USERDB_KEYS mail" exec "$@" Now, I'm really confused. Can someone explain step-by-step why this does anything at all? Question 3: I'd like to be able to pass some information to the post-login.sh script, such as the service (%s), as a positional parameter....
2016 Dec 15
0
FW: postlogin script
...to import the env variables set in your question 2. >> >> >> Question 2: >> >> One of the examples shows exporting some environmental variables, followed >> by the above exec line: >> >> export MAIL=maildir:/tmp/test >> >> export USERDB_KEYS="$USERDB_KEYS mail" >> >> exec "$@" >> >> Now, I'm really confused. Can someone explain step-by-step why this does >> anything at all? > Michael Aki
2018 Oct 18
0
Ass(et) protection for mobile users
Ensure your config looks like namespace SOME_NAME_HERE { ??? ... } Make a postlogin script which exports export NAMESPACE/SOME_NAME_HERE/HIDDEN=true USERDB_KEYS="$USERDB_KEYS NAMESPACE/SOME_NAME_HERE/HIDDEN" Or somehow export this from passdb/userdb as (userdb_)namespace/some_name_here/hidden=true Aki On 18.10.2018 10.18, Rupert Gallagher wrote: > Connections from anything other than LAN.? > > > > On Thu, Oct 18, 2018 at 08:49,...
2010 Nov 11
2
$MAIL environment variable to override mail_location works in v1.2.16 but not in v2.0.7 for /usr/libexec/dovecot/imap
...8<----------8<--------------------- #!/bin/sh # $MAIL, $HOME, $MAILDIR, $MAILBOX are the same in mailfront # imapfront-auth if [ -n "$MAIL" ]; then # make dovecot imap escape colon by replacing single : to :: export MAIL=maildir:`echo $MAIL | sed 's@:@::@g'` fi export USERDB_KEYS="$USERDB_KEYS mail" # For knowing all env. uncomment the below line and # see /tmp/imapd-log.txt # printenv >>/tmp/imapd-log.txt exec "$@" --------------------8<----------8<----------8<----------8<--------------------- The above script is being placed between...
2016 Aug 08
2
custom mail_location detection for dovecot lda
Hi! Is it possible to do something like "post-login scripting" to detect and set a per-user custom mail location for dovecot LDA delivery? I tried to use a wrapper-script around dovecot-lda that sets the environment variables MAIL="..." and USERDB_KEYS="MAIL" just like overriding userdb fields may be done using imap postlogin scripts, but unfortunately this doesn't seem to be honored. (Also tried with dovecot-lda -k.) Woud be very useful for slow migration from one mailbox format to another. Is there any other way to supply a cust...
2015 Aug 27
0
question on autch cache parameters
...>>> >>> >>> AUTH_TOKEN=e96b5a32ceb2cafc4460c210ad2e92e3d7ab388c >>> MASTER_USER=master at uma >>> SPUSER=private/pdf >>> LOCAL_IP=127.0.0.1 >>> USER=pdf >>> AUTH_USER=master at uma >>> PWD=/var/run/dovecot >>> USERDB_KEYS=ACL_GROUPS HOME SPUSER MASTER_USER AUTH_TOKEN AUTH_USER >>> SHLVL=1 >>> HOME=/var/data/vmail/private/pdf >>> ACL_GROUPS=umareadmaster >>> IP=127.0.0.1 >>> _=/usr/bin/env >>> >>> >>> on the second cached login it looks like this...
2019 Aug 28
2
LMTP Post login script for acl_groups
...exec "$@" ACL_GROUPS=$( ${LDAPSEARCH} -LLL -ZZ -y ${BINDPWFILE} -xD ${BINDDN} -b ${BASE} "(rnsMSDovecotUser=${USER})" rnsMSACLGroup | \ grep rnsMSACLGroup | \ ${AWK} -vORS=, '{ print $2 }' | \ sed 's/,$/\n/' ) export ACL_GROUPS export USERDB_KEYS="${USERDB_KEYS} acl_groups" exec "$@" --------------------------------------------------------- This script is included in imap-postlogin executables and works for logged in users. But it does not work for LMTP. LMTP itself seems not to have any permissions to access the fold...
2011 Oct 31
2
setting namespaces using script-login environment in 2.0
Hi! With dovecot 1.x, I was using a post-login script to dynamically add shared mailboxes using NAMESPACE_X.. environment variables, based on filesystem permissions: After login, the post-login script was executed with user permissions (mail_drop_priv_before_exec=yes). It added all subdirectories of "/var/spool/mail/Shared" as namespaces for which the user had write permissions. E.g.:
2019 Aug 28
0
LMTP Post login script for acl_groups
...=$( > ${LDAPSEARCH} -LLL -ZZ -y ${BINDPWFILE} -xD ${BINDDN} -b ${BASE} "(rnsMSDovecotUser=${USER})" rnsMSACLGroup | \ > grep rnsMSACLGroup | \ > ${AWK} -vORS=, '{ print $2 }' | \ > sed 's/,$/\n/' > ) > export ACL_GROUPS > export USERDB_KEYS="${USERDB_KEYS} acl_groups" > > exec "$@" > --------------------------------------------------------- > > This script is included in imap-postlogin executables and works for logged in users. > > But it does not work for LMTP. LMTP itself seems not to have...