[Dovecot] 2.2.4 - quota-status changing the user it is running as

Ulrich Zehl ulrich-dovecot at topfen.net
Thu Aug 1 17:27:02 EEST 2013


On Thu, Aug 01, 2013 at 02:31:31PM +0200, Axel Luttgens wrote:
> 
> 	http://hg.dovecot.org/dovecot-2.2/rev/2470bb9106b0
> 	http://hg.dovecot.org/dovecot-2.2/rev/51b8020b29f6
> 	http://hg.dovecot.org/dovecot-2.2/rev/eb63eca74471
> 	http://hg.dovecot.org/dovecot-2.2/rev/43488e1044c9

Is there any chance to get these backported to 2.1 as well? After all, it
has the same issues without these patches.

The individual patches seem to apply just fine to current 2.1 tip without
any code changes:

$ patch -p1 < p/2470bb9106b0 
patching file src/lib-storage/mail-storage-service.c
Hunk #1 succeeded at 946 (offset -21 lines).
Hunk #2 succeeded at 966 (offset -21 lines).
$ patch -p1 < p/51b8020b29f6
patching file src/plugins/quota/quota-status.c
Hunk #1 succeeded at 218 (offset 3 lines).
$ patch -p1 < p/eb63eca74471
patching file src/lib-master/master-service-settings.c
Hunk #1 succeeded at 323 (offset -13 lines).
patching file src/lib-master/master-service-settings.h
Hunk #1 succeeded at 53 (offset -3 lines).
patching file src/lib-master/master-service.c
Hunk #1 succeeded at 229 (offset -7 lines).
patching file src/lib-master/master-service.h
Hunk #1 succeeded at 12 (offset -3 lines).
$ patch -p1 < p/43488e1044c9 
patching file src/lib-storage/mail-storage-service.c
Hunk #1 succeeded at 728 with fuzz 2 (offset -20 lines).

After that, everything works just fine and as expected, as Axel described
for 2.2:
- Running under non-root user is possible
- Querying for more than one user under the same connection is possible

$ printf "recipient=m.mustermann at example.net\nsize=1234\n\nrecipient=m.mustermann at example.net\nsize=12340000\n\nrecipient=test at example.net\nsize=12340000\n\n" | nc 127.0.0.1 12340
action=OK

action=REJECT Over quota

action=REJECT Over quota


So it seems to me that I can apply them well enough on my own. I'd just
like them to come with the default source, so I cannot forget them when
upgrading. :-)


Ulrich


More information about the dovecot mailing list