6 Jan
2010
6 Jan
'10
2:36 p.m.
On 6.1.2010, at 11.51, Aaron Roberts wrote:
Hi, Is it possible with dovecot to run a script on user logoff event - something like post-login script?
You could do a post-login script that does:
#!/bin/sh
post-login stuff
/usr/local/libexec/dovecot/imap ex=$?
post-logout stuff
exit $ex
Of course that means some annoying extra shell processes. An alternative would be for you to create a plugin that does the post-logout stuff in its deinit() function.