[Dovecot] Post-login scripting with virtual users

Mark Willcox willcox at datahelper.com
Thu Aug 25 01:30:35 EEST 2011


I am about 97.2% certain that it never tries to run the script.  I
changed it to simply touch a file in /tmp with the same result.  I
simplified it to:

#!/bin/sh
exec "$@"

Still refused.

_________________
Mark Willcox
Data Helper, Inc.


On 8/24/2011 5:16 PM, Mark Willcox wrote:
> I don't think that this is the problem now.  I removed the unix_listener
> as per Rick's advice.  That got me past the Error reading
> configuration.  Just to be sure, I made the config socket world-readable
> which made no difference.
>
> Now instead I get:
> Error: net_connect_unix(/var/run/dovecot/imap-postpop) failed:
> Connection refused
>
> The script is executable.  On a hunch, I made the directly that the
> scripts writes to world-writable, which didn't help.  The Connection
> refused" means that there was some kind of problem with my script, I
> assume. It seems that the script does not run at all.  Is there anything
> I can do to narrow down what is going wrong? Some higher level of logging?
>
> Thanks!
>
> _________________
> Mark Willcox
> Data Helper, Inc.
>
>
> On 8/24/2011 3:37 PM, Timo Sirainen wrote:
>> On Wed, 2011-08-24 at 13:57 -0500, Mark Willcox wrote:
>>
>>> Aug 24 13:01:57 callisto dovecot: imap-postpop: Error: script-login:
>>> Error: user devnull at dhzone.com: Error reading configuration:
>>> net_connect_unix(/var/run/dovecot/config) failed: Permission denied 
>> This is your problem.. It's a bug in v2.0.13. You could patch with
>> http://hg.dovecot.org/dovecot-2.0/rev/a2d57b43ccb2 or change config
>> socket's permissions. I'll hopefully release v2.0.14 in not too distant
>> future.



More information about the dovecot mailing list