Re: [vchkpw] vpopmail 5.4.0 Make error on Solaris 9 (possible solution)
Dear all, Did the steps to include "nsl and socket" libs for make of vpopmal v5.4.0 on Solaris 9 (sparc) with gcc 3.3.2. However, I am still getting the following error: gcc -g -O2 -Wall -o vchkpw vchkpw.o md5.o hmac_md5.o libvpopmail.a -L/usr/local/mysql/lib -R/var/qmail/vpopmail/lib -lmysqlclient -lz -lcrypt -lnsl -lsocket Undefined first referenced symbol in file floor /usr/local/mysql/lib/libmysqlclient.a(password.o) ld: fatal: Symbol referencing errors. No output written to vchkpw collect2: ld returned 1 exit status make[2]: *** [vchkpw] Error 1 Any other lib is missing. Help..? Thanks. -- Shiraz Malik Dancom OnLine Services, Islamabad, Pakistan.
RE: [vchkpw] vpopmail 5.4.0 Make error on Solaris 9 (possiblesolution)
Yes it worked. Thanks. I wonder why configure is initially unable to find socket library...? -- Shiraz Malik Dancom OnLine Services, Islamabad, Pakistan. -Original Message- From: Anders Brander [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 11:35 AM To: [EMAIL PROTECTED] Subject: Re: [vchkpw] vpopmail 5.4.0 Make error on Solaris 9 (possiblesolution) Hi, On Thu, 2004-02-26 at 21:09, Shiraz wrote: > Did the steps to include "nsl and socket" libs for make of vpopmal > v5.4.0 on Solaris 9 (sparc) with gcc 3.3.2. However, I am still getting > the following error: > > gcc -g -O2 -Wall -o vchkpw vchkpw.o md5.o hmac_md5.o libvpopmail.a > -L/usr/local/mysql/lib -R/var/qmail/vpopmail/lib -lmysqlclient -lz > -lcrypt -lnsl -lsocket > Undefined first referenced > symbol in file > floor > /usr/local/mysql/lib/libmysqlclient.a(password.o) > ld: fatal: Symbol referencing errors. No output written to vchkpw > collect2: ld returned 1 exit status > make[2]: *** [vchkpw] Error 1 > > > Any other lib is missing. Help..? libm? use -lm /Anders
[vchkpw] Maildirquota, qmailadmin and courierimap..who is problematic?
Dear all, Tried searching for the following but didn't find any resource... I'm facing a problem related to maildir quota. I'm using qmail-1.03 patched with qmail-maildir++ patch, vpopmail 5.4.0, qmailadmin 1.2.0 and courier-imap 2.2.1. I'm also using quota_usage 1.2 plugin for squirrelmail. I've assigned a default quota of 10MB for a specific domain and whenver I create an account using vadduser command, default quota is allocated to the new user and is reflected in the, say, the following file: /var/qmail/vpopmail/domains/test.com/testacc2/Maildir/maildirsize As 10485760S Now the problem asrise whenever I try changing the quota for this user from qmailadmin or using vmoduser command. If I use vmoduser command to modify the quota for this user, the file "maildirsize" is removed from user's Maildir. If I use qmailadmin to modify the quota for this user, the file "maildirsize" exists but "S" is removed from the quota and file contents become: 10485760 Now, I think if there is no "S" with the quota size, maildir quota is not retreived properly by courier-imap. Infact in this situation, my quota_usage plugin doesn't show anyting on squirrelmail. If I manually add "S" into the file, everything works OK. I think it has got something to do with the maildir++ patch. What can be done about this?? Regards. -- Shiraz Malik Dancom OnLine Services, Islamabad, Pakistan.
RE: [vchkpw] Maildirquota, qmailadmin and courierimap..who is problematic?
Thanks. It worked. Now I can use qmailadmin/vmoduser to modify quotas and it is properly shown in squirrelmail etc. Thanks again. -- Shiraz Malik Dancom OnLine Services, Islamabad, Pakistan. -Original Message- From: Tom Collins [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 11:47 PM To: [EMAIL PROTECTED] Subject: Re: [vchkpw] Maildirquota, qmailadmin and courierimap..who is problematic? On Mar 3, 2004, at 11:30 AM, Shiraz wrote: > If I use qmailadmin to modify the quota for this user, the file > "maildirsize" exists but "S" is removed from the quota and file > contents > become: > 10485760 This bug was only recently fixed. It will be in the next release of vpopmail. Unfortunately, I started making significant changes to the database backends before forking off a 5.5 development series. I will try to split the codebase and release a 5.4.3 that includes only fixes to existing problems, and leave the database updates to 5.5.0. In the mean time, you can apply this patch to 5.4.0-5.4.2. Be sure to recompile qmailadmin after installing the patched vpopmail. diff -u -d -r1.29 -r1.30 --- vpopmail.c 22 Feb 2004 22:50:48 - 1.29 +++ vpopmail.c 1 Mar 2004 15:33:32 - 1.30 @@ -1543,6 +1543,7 @@ int vsetuserquota( char *username, char *domain, char *quota ) { struct vqpasswd *mypw; + char *formattedquota; int ret; if ( strlen(username) >= MAX_PW_NAME ) return(VA_USER_NAME_TOO_LONG); @@ -1558,7 +1559,8 @@ /* correctly format the quota string, * and then store the quota into the auth backend */ - ret = vauth_setquota( username, domain, format_maildirquota(quota)); + formattedquota = format_maildirquota(quota); + ret = vauth_setquota( username, domain, formattedquota); if (ret != VA_SUCCESS ) return(ret); mypw = vauth_getpw( username, domain ); @@ -1569,7 +1571,7 @@ char maildir[MAX_BUFF]; snprintf(maildir, sizeof(maildir), "%s/Maildir/", mypw->pw_dir); umask(VPOPMAIL_UMASK); -(void)vmaildir_readquota(maildir, quota); +(void)vmaildir_readquota(maildir, formattedquota); if ( vget_assign(domain, NULL, 0, &uid, &gid)!=NULL) { strcat(maildir, "maildirsize"); chown(maildir,uid,gid); -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/