[Dovecot] post-login scripting failing with "denied access to user" v2.1.7
Frank
dovecot_list at greenant.net
Wed Jan 29 03:26:09 EET 2014
Thanks Daniel,
That worked well.
The default spam filter is now created properly.
I have placed sieve filters in the parent directory of the Maildir,
otherwise the .dovecot.sieve file is erroneously interpreted as a maildir by IMAP clients.
The way I have used parent directories ($HOME/../) in the script results in a warning from manage sieve but I think it is harmless as the filter work fine:
dovecot: managesieve(test at fqdn.net): Warning: sieve-storage: Active sieve script symlink /home/vmail/fqdn.net/test/Maildir/../.dovecot.sieve is broken: invalid/unknown path to storage (points to /home/vmail/fqdn.net/test/Maildir/../sieve/managesieve.sieve).
Is there a way to suppress this warning?
Frank
On 28/01/2014, at 4:10 AM, Daniel Parthey wrote:
> 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