Hi
Thanks for the tip.
Got what I wanted!
dovecot.conf
}
service imap-postlogin {
# all post-login scripts are executed via script-login binary
executable = script-login /usr/local/bin/postlogin.sh
#
# # the script process runs as the user specified here (v2.0.14+):
user = $default_internal_user
# # this UNIX socket listener must use the same name as given to imap executable
unix_listener imap-postlogin {
}
}