Re: [Dovecot] Post-login scripting with virtual users

2011-08-24 Thread Timo Sirainen
On 25.8.2011, at 4.17, Mark Willcox wrote: > My script is running as root now and it resisted all efforts to make it > run as popuser, but I can work with that. Hmm. If it's running as root, you shouldn't have had the config problem in the first place because that means it's not running as root.

Re: [Dovecot] Post-login scripting with virtual users

2011-08-24 Thread Mark Willcox
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

Re: [Dovecot] Post-login scripting with virtual users

2011-08-24 Thread Timo Sirainen
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. J

Re: [Dovecot] Post-login scripting with virtual users

2011-08-24 Thread Mark Willcox
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

Re: [Dovecot] Post-login scripting with virtual users

2011-08-24 Thread Mark Willcox
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-pos

Re: [Dovecot] Post-login scripting with virtual users

2011-08-24 Thread Timo Sirainen
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 devn...@dhzone.com: Error reading configuration: > net_connect_unix(/var/run/dovecot/config) failed: Permission denied This is your problem.. It's a bug in

Re: [Dovecot] Post-login scripting with virtual users

2011-08-24 Thread Rick Romero
Is the script executable? I'm out of ideas. Yes, you can set it up exactly the same for IMAP. Rick Quoting Mark Willcox : Much closer! It seems to run the script, but now I get: Error: net_connect_unix(/var/run/dovecot/imap-postpop) failed: Connection refused I thought it might be because

Re: [Dovecot] Post-login scripting with virtual users

2011-08-24 Thread Mark Willcox
Much closer! It seems to run the script, but now I get: Error: net_connect_unix(/var/run/dovecot/imap-postpop) failed: Connection refused I thought it might be because popuser has no logon capability (/sbin/nologin), but I changed that and connection is still refused. Can it be my script? It is

Re: [Dovecot] Post-login scripting with virtual users

2011-08-24 Thread Rick Romero
Quoting Mark Willcox : 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

[Dovecot] Post-login scripting with virtual users

2011-08-24 Thread Mark Willcox
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. My userdb calls return the UID and GID