Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301650 - net-mail/vpopmail-5.4.30 and possibly others destroy quota feature because of not yet complete ebuild
Summary: net-mail/vpopmail-5.4.30 and possibly others destroy quota feature because of...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Benedikt Böhm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 285213
  Show dependency tree
 
Reported: 2010-01-20 17:59 UTC by Phillip Merensky
Modified: 2010-03-07 15:45 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Vpopmail ebuild supporting vusaged (vpopmail-5.4.30-r1.ebuild,8.07 KB, text/plain)
2010-02-10 19:01 UTC, Phillip Merensky
Details
vusaged init.d script for vpopmail ebuild (vusaged,612 bytes, text/plain)
2010-02-10 19:08 UTC, Phillip Merensky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Phillip Merensky 2010-01-20 17:59:46 UTC
>=net-mail/vpopmail-5.4.19 handling of quotas is not compatible with the solution before this version. The format for setting quota is the same but the retrieval of quota values is now handled by vusaged (server) and vusagec (client). The current ebuild does not build the server which is located within the vusaged subdirectory of vpopmail. It also does not copy config files for the client.

I enhanced the current ebuild to provide these features. However my ebuild has no gentoo style init.d script for the vusaged daemon yet. Currently I use the default one. If someone is interested let me know.

Reproducible: Always

Steps to Reproduce:
1. emerge vpopmail 5.4.30
2. try to send emails to accounts which have a quota set
3. 

Actual Results:  
Error messages in qmail-send about missing conf files, duplicate E-Mail sending etc. .

Expected Results:  
No Errors with quota functionality.
Comment 1 Phillip Merensky 2010-01-20 18:23:12 UTC
gentoo style init.d script completed, too.
Comment 2 Konstantin 2010-01-21 08:25:33 UTC
After upgrade to net-mail/vpopmail-5.4.30 we have a problem with mail delivery. When we are trying to see vuserinfo we got segfault:

# vuserinfo user@mail.com
name:   user
passwd: $1$gW/2NGEA$Pp6B7ZNS8jAjcTMOf/Tpz0
clear passwd:
comment/gecos: user
uid:    0
gid:    0
flags:  0
gecos: user
limits: No user limits set.
dir:       /var/vpopmail/domains/makrogroup.com/dmitrijus
quota:     524288000S
client_connect: warning: config_begin failed
Segmentation fault

In /var/log/qmail/qmail-send/current a lot of:

starting delivery 10741: msg 6754 to local mail.com-user@mail.com
status: local 1/10 remote 0/20
delivery 10741: deferral: client_connect:_warning:_config_begin_failed/Aack,_child_crashed._(#4.3.0)/
status: local 0/10 remote 0/20

We unsuccessfully tried rollback to vpopmail-5.4.16:

make[2]: *** [libvpopmail_a-vpopmail.o] Error 1
Make failed.
:(
Comment 3 Konstantin 2010-01-21 08:52:14 UTC
Rollback to net-mail/vpopmail-5.4.19 helped.
Comment 4 Phillip Merensky 2010-01-21 10:14:07 UTC
ref comment #2:

This is the error you get when you set quotas and do not have vusaged running and configured. As I still get errors with vusaged running and configured I deactivated the client in vusagec.conf in /var/vpomail/etc. This file however will not be copied by the 5.4.30 ebuild so you have to get it and the vusaged.conf from the vpopmail distribution tar.gz file.

After that you can deactivate the usage of the client In vusagec.conf and everything should work as normal. At least for me...

Tricky and time consuming problem though.
Comment 5 Lex Brugman 2010-01-28 13:15:58 UTC
A solution can be found on the vpopmail mailinglist: http://www.mail-archive.com/vchkpw@inter7.com/msg27371.html
Comment 6 Dirkjan Ochtman (RETIRED) gentoo-dev 2010-02-01 07:58:25 UTC
Because of the unstabling of .30 Portage downgraded me to .16, which breaks horribly. Build log at http://dirkjan.ochtman.nl/files/build.log.
Comment 7 Benedikt Böhm (RETIRED) gentoo-dev 2010-02-09 07:38:43 UTC
(In reply to comment #1)
> gentoo style init.d script completed, too.
> 

can you please provide your ebuild/init.d changes as attachments to this bug?
Comment 8 Phillip Merensky 2010-02-10 19:01:58 UTC
Created attachment 219125 [details]
Vpopmail ebuild supporting vusaged
Comment 9 Phillip Merensky 2010-02-10 19:08:00 UTC
Created attachment 219127 [details]
vusaged init.d script for vpopmail ebuild

Ebuild and vpopmail script do the following:

-Building vpopmail AND vusaged
-Installing necessary configuration files for vusaged
-Installing init.d-script vusaged
-Deactivating usage of vusagec and vusaged per default for compliance with older vpopmail versions
-Symlinking the appropriate docs
-Printing a BIG FAT warning about usage of vusaged and where docs can be found

Addtionally I can say that I did not manage to get vusaged working although the client (vusagec) successfully connects to vusaged. Vdominfo always fails to do so so that you cannot use it in production. Regrettably I had no time yet to file a bug report for vpopmail.

Suggestions are welcome
Regards,
Phillip
Comment 10 Benedikt Böhm (RETIRED) gentoo-dev 2010-02-20 10:58:48 UTC
5.4.30-r1 in portage. please give it a try.

i've disabled the build of vusaged, since it requires a vusaged aware libvpopmail.so to be already installed, and i have no time to patch the broken build system of vpopmail or split vusaged into its own package.

thanks for reporting
Comment 11 Phillip Merensky 2010-03-07 15:45:08 UTC
(In reply to comment #10)
> 5.4.30-r1 in portage. please give it a try.
> 
> i've disabled the build of vusaged, since it requires a vusaged aware
> libvpopmail.so to be already installed, and i have no time to patch the broken
> build system of vpopmail or split vusaged into its own package.
> 
> thanks for reporting
> 

I tried the new Ebuild and I am using it in production now. Working! Thanks!