[Dovecot] post-login scripting failing with "denied access to user" v2.1.7

Daniel Parthey d.parthey at metaways.de
Mon Jan 27 19:10:26 EET 2014


Hi Frank,

Am 27.01.2014 07:57, schrieb Frank:
 > After adding this setting, login fails and gives the error below.
 > It certainly looks like a permission issue, but I have checked my script is executable and owned by vmail:vmail.  The bash script executes fine as 
the mail user.
 > The other possibility is that dovecot is denying access to the $HOME variable, but that seems unlikely.
 > Nevertheless, I am stuck!
 >
 > Log shows:
 > ------------------
 > dovecot: master: Dovecot v2.1.7 starting up (core dumps disabled)
 > dovecot: auth-worker(17522): mysql(database1): Connected to database postfixadmin
 > dovecot: imap-login: Login: user=<test2 at fqdn.net>, method=PLAIN, rip=10.0.3.120, lip=10.0.1.180, mpid=17524, TLS, session=<+blqxxxxxxxxxM>
 > dovecot: imap(test2 at fqdn.net): Post-login script denied access to user test2 at fqdn.net

http://wiki2.dovecot.org/PostLoginScripting

You need to hand over the connection to the original imap handler,
your script may not simple exit, but needs to exec its argument line:

exec "$@"

Kind regards
Daniel

-- 
Dipl.-Inf. Daniel Parthey
System Engineer
Metaways Infosystems GmbH
Pickhuben 2, D-20457 Hamburg

E-Mail: d.parthey at metaways.de
Web:    http://www.metaways.de

Metaways Infosystems GmbH - Sitz: D-22967 Tremsbüttel
Handelsregister: Amtsgericht Lübeck HRB 4508 AH
Geschäftsführung: Hermann Thaele, Lüder-H.Thaele


More information about the dovecot mailing list