[Dovecot] Post-login scripting with virtual users
Mark Willcox
willcox at datahelper.com
Thu Aug 25 04:17:48 EEST 2011
I downloaded the source and patched script-login.c. It is working fine
now! Thank you!
My script is running as root now and it resisted all efforts to make it
run as popuser, but I can work with that.
Why did I wait so long to move from bincimap?
_________________
Mark Willcox
Data Helper, Inc.
On 8/24/2011 7:04 PM, Timo Sirainen wrote:
> You didn't get past the config reading error, it now fails before it
> even gets that far.
>
> On Wed, 2011-08-24 at 17:16 -0500, 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