[Dovecot] Post-login scripting with virtual users

Rick Romero rick at havokmon.com
Wed Aug 24 22:06:19 EEST 2011


Quoting Mark Willcox <willcox at datahelper.com>:

> I am running Dovecot 2.0.13 on Fedora 15.  I have migrated from a
> bincimap installation using checklocalpwd.  All email is in folders
> owned by a unprivileged user, popuser.  The email users are entirely
> virtual and have no relationship to actual linux users.
>
> I am trying to implement a Post-login script to register the IP address
> that the authentication came from.  Dovecot seems to be trying to
> execute the script as the email non-user, which does not work.  I have
> specified that the script should be run as popuser, but it still runs as
> devnull at dhzone.com for instance.  Everything up top that point seems to
> be happening happily under popuser.
>

I'd remove the unix_listener directive:
service imap-postpop {
    executable = script-login /usr/local/bin/set_postpop
    user = popuser
}

The equivalent is working for me.

Rick




More information about the dovecot mailing list