Re: [vchkpw] disable_external_relay
Dear Tom, I am using SMTP AUTH. Devendra Singh At 02/12/03 20:50 (), Tom Collins wrote: On Tuesday, December 2, 2003, at 07:12 AM, Devendra Singh wrote: Use disable_smtp in the .qmailadmin-limits file to disable SMTP access for the domain. The current version of vpopmail (5.3.30) supports this flag. I upgraded to vpopmail-5.3.30, qmailadmin-1.0.29. Recompiled Courier-Imap-1.7.3. But, I am still not able to disable the SMTP. What might be wrong? Are you using SMTP AUTH or roaming users (aka POP before SMTP)? -- Tom Collins - [EMAIL PROTECTED] --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.528 / Virus Database: 324 - Release Date: 16/10/03
Re: [vchkpw] Removing the CatchAll Account column from Email Accounts Page
Dear Tom, Thanks a Tonne. Sorry for the posting to wrong list. Devendra Singh At 02/12/03 21:03 (), Tom Collins wrote: On Tuesday, December 2, 2003, at 02:40 AM, Devendra Singh wrote: Is it possible to remove the CatchAll Account column from Email Accounts Page of qmailadmin v5.3.30? This is a question for the qmailadmin list at [EMAIL PROTECTED], but here's your answer. Edit show_users.html to remove that column. You'll probably want to leave it in place, but without a header. Edit user.c and go to about line 202. Comment everything in this section: if (bounced==0 strncmp(pw-pw_name,TmpBuf3,sizeof(TmpBuf3)) == 0) { ... } else if (AdminType==DOMAIN_ADMIN) { ... } else { ... } Replace it with: fprintf(actout, td /td\n); Re-compile and re-install qmailadmin and you (should be) all set. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.528 / Virus Database: 324 - Release Date: 16/10/03
Re: [vchkpw] disable_external_relay
Dear Tonino, 1. I have put the .qmailadmin-limits into the /home/vpopmail/domains/0/del4.intermesh.net with following rights: -rw---1 vpopmail vchkpw126 Dec 2 18:59 .qmailadmin-limits and contains: maxpopaccounts: 10 maxaliases: 0 maxforwards: 10 maxautoresponders: 0 maxmailinglists: 0 default_quota: 41943040 disable_smtp 2. It's not a Open Relay Server. Checked with http://members.iinet.net.au/~remmie/relay/ and with http://spamlart.homeunix.org/ (Server referenced above is a test Server) Devendra Singh At 02/12/03 20:35 (), tonix (Antonio Nati) wrote: Devendra, 1) did you set this flag up? 2) Are you sure you are not an open relay? Tonino At 02/12/2003 02/12/2003 +0530, you wrote: At 24/11/03 21:46 (), Tom Collins wrote: On Monday, November 24, 2003, at 03:37 AM, tonix (Antonio Nati) wrote: No,it works only for pop-before-SMTP. I suggested to use it also for SMTP relay, but it wqas preferred to add a dedicated bit for SMTP relaying. Use disable_smtp in the .qmailadmin-limits file to disable SMTP access for the domain. The current version of vpopmail (5.3.30) supports this flag. I upgraded to vpopmail-5.3.30, qmailadmin-1.0.29. Recompiled Courier-Imap-1.7.3. But, I am still not able to disable the SMTP. What might be wrong? Devendra Singh --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.528 / Virus Database: 324 - Release Date: 16/10/03
Re: [vchkpw] temp-problems with vpopmail and finding users
Hi Group. I installed vpopmail 5.3.30 and what happens ?? The same :-( Where can i search for the ground of this fault ? I'm using mysql 4.0.16. regards Mandy Mandy wrote: hi i'm new in vpopmail I installed a little system with 4 domains using the great howto by matt. I'm using vpopmail 5.3.29. Sometime the system can't find a user. But the user exists ?!? SQL-Server was up and runninng the hole time. This also happens sometimes while getting mails from the server with eg. fetchmail. Mostly everthing works fine. But sometimes there is and auth error while fetching? Can anyone help me ? regards mandy /var/qmail/log/send/current mail one to [EMAIL PROTECTED] @40003fbc6f9a223ff3b4 starting delivery 1759: msg 1586646 to local [EMAIL PROTECTED] @40003fbc6f9a22400354 status: local 1/10 remote 0/20 @40003fbc6f9a228fa60c delivery 1759: success: vmysql:_sql_error[1]:_Can't_create_database_'vpopmail'._Database_exists/vmys ql:_sql_error[3]:_No_Database_Selected/user_does_not_exist,_but_will_deliver_to_/home/vpopmail/domains/bar.de/catchall//did _0+0+1/ mail two to [EMAIL PROTECTED] @40003fbc86f00c683f24 starting delivery 1772: msg 1586646 to local [EMAIL PROTECTED] @40003fbc86f00c684adc status: local 1/10 remote 0/20 @40003fbc86f00d3e675c delivery 1772: success: did_0+0+1/
Re: [vchkpw] disable_external_relay
Devendra, you must set/modify that flag for users already existing. If you run vuserinfo [EMAIL PROTECTED], you'll see if flag is active. If not, enable it (with vmoduser). Ciao, Tonino At 03/12/2003 03/12/2003 +0530, Devendra Singh wrote: Dear Tonino, 1. I have put the .qmailadmin-limits into the /home/vpopmail/domains/0/del4.intermesh.net with following rights: -rw---1 vpopmail vchkpw126 Dec 2 18:59 .qmailadmin-limits and contains: maxpopaccounts: 10 maxaliases: 0 maxforwards: 10 maxautoresponders: 0 maxmailinglists: 0 default_quota: 41943040 disable_smtp 2. It's not a Open Relay Server. Checked with http://members.iinet.net.au/~remmie/relay/ and with http://spamlart.homeunix.org/ (Server referenced above is a test Server) Devendra Singh At 02/12/03 20:35 (), tonix (Antonio Nati) wrote: Devendra, 1) did you set this flag up? 2) Are you sure you are not an open relay? Tonino At 02/12/2003 02/12/2003 +0530, you wrote: At 24/11/03 21:46 (), Tom Collins wrote: On Monday, November 24, 2003, at 03:37 AM, tonix (Antonio Nati) wrote: No,it works only for pop-before-SMTP. I suggested to use it also for SMTP relay, but it wqas preferred to add a dedicated bit for SMTP relaying. Use disable_smtp in the .qmailadmin-limits file to disable SMTP access for the domain. The current version of vpopmail (5.3.30) supports this flag. I upgraded to vpopmail-5.3.30, qmailadmin-1.0.29. Recompiled Courier-Imap-1.7.3. But, I am still not able to disable the SMTP. What might be wrong? Devendra Singh --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.528 / Virus Database: 324 - Release Date: 16/10/03 [EMAIL PROTECTED]Interazioni di Antonio Nati http://www.interazioni.it [EMAIL PROTECTED]
Re: [vchkpw] disable_external_relay
Dear Tonino, Thanks. It worked. I am delighted. BTW, where is this info stored in case of non-mysql limits? Devendra Singh At 03/12/03 15:04 (), tonix (Antonio Nati) wrote: Devendra, you must set/modify that flag for users already existing. If you run vuserinfo [EMAIL PROTECTED], you'll see if flag is active. If not, enable it (with vmoduser). Ciao, Tonino At 03/12/2003 03/12/2003 +0530, Devendra Singh wrote: Dear Tonino, 1. I have put the .qmailadmin-limits into the /home/vpopmail/domains/0/del4.intermesh.net with following rights: -rw---1 vpopmail vchkpw126 Dec 2 18:59 .qmailadmin-limits and contains: maxpopaccounts: 10 maxaliases: 0 maxforwards: 10 maxautoresponders: 0 maxmailinglists: 0 default_quota: 41943040 disable_smtp 2. It's not a Open Relay Server. Checked with http://members.iinet.net.au/~remmie/relay/ and with http://spamlart.homeunix.org/ (Server referenced above is a test Server) Devendra Singh At 02/12/03 20:35 (), tonix (Antonio Nati) wrote: Devendra, 1) did you set this flag up? 2) Are you sure you are not an open relay? Tonino At 02/12/2003 02/12/2003 +0530, you wrote: At 24/11/03 21:46 (), Tom Collins wrote: On Monday, November 24, 2003, at 03:37 AM, tonix (Antonio Nati) wrote: No,it works only for pop-before-SMTP. I suggested to use it also for SMTP relay, but it wqas preferred to add a dedicated bit for SMTP relaying. Use disable_smtp in the .qmailadmin-limits file to disable SMTP access for the domain. The current version of vpopmail (5.3.30) supports this flag. I upgraded to vpopmail-5.3.30, qmailadmin-1.0.29. Recompiled Courier-Imap-1.7.3. But, I am still not able to disable the SMTP. What might be wrong? Devendra Singh --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.528 / Virus Database: 324 - Release Date: 16/10/03
Re: [vchkpw] temp-problems with vpopmail and finding users
My first guess is that you need to figure out why SQL queries to your server fail and you'll have the answer to your problem. Write a script that asks your server lots and lots of queries just like a busy mail server would. Check and verify the results and I'm sure you'll find some clues as to exactly what tree you should be barking up. Matt On Dec 4, 2003, at 3:26 AM, Mandy wrote: Hi Group. I installed vpopmail 5.3.30 and what happens ?? The same :-( Where can i search for the ground of this fault ? I'm using mysql 4.0.16. regards Mandy Mandy wrote: hi i'm new in vpopmail I installed a little system with 4 domains using the great howto by matt. I'm using vpopmail 5.3.29. Sometime the system can't find a user. But the user exists ?!? SQL-Server was up and runninng the hole time. This also happens sometimes while getting mails from the server with eg. fetchmail. Mostly everthing works fine. But sometimes there is and auth error while fetching? Can anyone help me ? regards mandy /var/qmail/log/send/current mail one to [EMAIL PROTECTED] @40003fbc6f9a223ff3b4 starting delivery 1759: msg 1586646 to local [EMAIL PROTECTED] @40003fbc6f9a22400354 status: local 1/10 remote 0/20 @40003fbc6f9a228fa60c delivery 1759: success: vmysql:_sql_error[1]: _Can't_create_database_'vpopmail'._Database_exists/vmys ql:_sql_error[3]:_No_Database_Selected/ user_does_not_exist,_but_will_deliver_to_/home/vpopmail/domains/ bar.de/catchall//did _0+0+1/ mail two to [EMAIL PROTECTED] @40003fbc86f00c683f24 starting delivery 1772: msg 1586646 to local [EMAIL PROTECTED] @40003fbc86f00c684adc status: local 1/10 remote 0/20 @40003fbc86f00d3e675c delivery 1772: success: did_0+0+1/
[vchkpw] Problems connecting courier-imap to vpopmail
Hi, I cant seem to connect courier-imap to vpopmail. Im using qmailadmin to handle all users and domains that I have and that works fine. But the problem is when i installed courier-imap and squirrelmail to get webaccess i cant seem to logon... How do i connect courier-imap to vpopmail, and verify that it works? Did I miss something when it comes to configuring the authentification for vpop, or what? Glad for help // Jerker
[vchkpw] Mailbox quota changes
I recently moved to vpop for mail accoutns for multiple domains. What is the suggested way to be able to change the quota for specific account under a vpop domain. Example: Domain: blah.com - all users have a 5MB quota. - [EMAIL PROTECTED] would like to have 10MB quota. Is the only way to do this 'vsetquota [EMAIL PROTECTED] 1000' ? Where is the control fiel for that specific mailbox so I can verify this change actuallyhappened? Of course references to helpful links or previous posts always welcome... Thanks in advance... Christian Christian Reeves Internet Systems Administrator KUA.net Office: 407.933. ex: Mobile: 407.509.4652 FAX: 407.933.7715
Re: [vchkpw] disable_external_relay
On Wednesday, December 3, 2003, at 02:34 AM, tonix (Antonio Nati) wrote: you must set/modify that flag for users already existing. If you run vuserinfo [EMAIL PROTECTED], you'll see if flag is active. If not, enable it (with vmoduser). That's not accurate -- the whole point of domain-wide settings is so you don't have to set it for individual users. I took a look at the code and, at least for cdb, domain limits weren't getting loaded. I should have a patch later today. -- 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/
Re: [vchkpw] disable_external_relay
No, domain limits apply to all users (that don't have V_OVERRIDE set). They are not default limits for new users. On Wednesday, December 3, 2003, at 09:27 AM, tonix (Antonio Nati) wrote: Tom, we were speaking of already existing users (in this case). Domain limits should work for new users. Tonino At 03/12/2003 03/12/2003 -0700, you wrote: On Wednesday, December 3, 2003, at 02:34 AM, tonix (Antonio Nati) wrote: you must set/modify that flag for users already existing. If you run vuserinfo [EMAIL PROTECTED], you'll see if flag is active. If not, enable it (with vmoduser). That's not accurate -- the whole point of domain-wide settings is so you don't have to set it for individual users. I took a look at the code and, at least for cdb, domain limits weren't getting loaded. I should have a patch later today. -- 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/ [EMAIL PROTECTED]Interazioni di Antonio Nati http://www.interazioni.it [EMAIL PROTECTED] -- 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/
Re: [vchkpw] disable_external_relay [PATCH]
Here's the patch to fix the domain limits problem. It's in CVS now, and will be in the next release (which I'll make by the end of the week). Hopefully the email gateways won't totally screw the file up... Update of /cvsroot/vpopmail/vpopmail In directory sc8-pr-cvs1:/tmp/cvs-serv1963 Modified Files: vlimits.h vlimits.c vcdb.c vactivedir.c vldap.c vmysql.c vpgsql.c vsybase.c Log Message: fix and move pw_flags setting code to vlimits.c Index: vlimits.h === RCS file: /cvsroot/vpopmail/vpopmail/vlimits.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- vlimits.h 21 Oct 2003 21:24:37 - 1.5 +++ vlimits.h 3 Dec 2003 16:41:14 - 1.6 @@ -57,4 +57,5 @@ int vlimits_read_limits_file(const char * dir, struct vlimits * limits); int vlimits_write_limits_file(const char * dir, const struct vlimits * limits); int vlimits_get_flag_mask(struct vlimits *limits); +void vlimits_setflags (struct vqpasswd *pw, char *domain); #endif Index: vlimits.c === RCS file: /cvsroot/vpopmail/vpopmail/vlimits.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- vlimits.c 23 Nov 2003 19:27:39 - 1.8 +++ vlimits.c 3 Dec 2003 16:41:14 - 1.9 @@ -365,4 +365,13 @@ return unlink(dir); } +void vlimits_setflags (struct vqpasswd *pw, char *domain) +{ +struct vlimits limits; + +if ((! (pw-pw_gid V_OVERRIDE)) + (vget_limits (domain, limits) == 0)) { +pw-pw_flags = pw-pw_gid | vlimits_get_flag_mask (limits); +} else pw-pw_flags = pw-pw_gid; +} #endif Index: vcdb.c === RCS file: /cvsroot/vpopmail/vpopmail/vcdb.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- vcdb.c 15 Nov 2003 06:55:43 - 1.10 +++ vcdb.c 3 Dec 2003 16:41:14 - 1.11 @@ -231,7 +231,6 @@ #ifdef FILE_LOCKING FILE *lock_fs; #endif - struct vlimits limits; verrori = 0; lowerit(user); @@ -311,10 +310,7 @@ if (!*uid) { pwent.pw_uid = 0; } else { pwent.pw_uid = atoi(uid); } if (!*gid) { pwent.pw_gid = 0; } else { pwent.pw_gid = atoi(gid); } -if ((! pwent.pw_gid V_OVERRIDE) - (vget_limits (in_domain, limits) == 0)) { -pwent.pw_flags = pwent.pw_gid | vlimits_get_flag_mask (limits); -} else pwent.pw_flags = pwent.pw_gid; +vlimits_setflags (pwent, in_domain); #ifdef DEBUG fprintf (stderr,vgetpw: db: results: pw_name = %s\n,pwent.pw_name); Index: vactivedir.c === RCS file: /cvsroot/vpopmail/vpopmail/vactivedir.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- vactivedir.c15 Nov 2003 06:55:43 - 1.8 +++ vactivedir.c3 Dec 2003 16:41:14 - 1.9 @@ -160,7 +160,6 @@ static struct vqpasswd vpw; static struct actdirvp adir; int sock; - struct vlimits limits; if ( (sock=ad_open_conn())==-1){ printf(could not connect\n); @@ -189,10 +188,7 @@ ad_fill_vpw(vpw,adir); - if ((! vpw.pw_gid V_OVERRIDE) - (vget_limits (domain, limits) == 0)) { - vpw.pw_flags = vpw.pw_gid | vlimits_get_flag_mask (limits); - } else vpw.pw_flags = vpw.pw_gid; + vlimits_setflags (vpw, domain); return(vpw); } Index: vldap.c === RCS file: /cvsroot/vpopmail/vpopmail/vldap.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- vldap.c 15 Nov 2003 06:55:44 - 1.10 +++ vldap.c 3 Dec 2003 16:41:14 - 1.11 @@ -70,7 +70,6 @@ uid_t myuid; uid_t uid; gid_t gid; - struct vlimits limits; verrori = 0; lowerit(user); @@ -287,10 +286,7 @@ } #endif - if ((! vpw-pw_gid V_OVERRIDE) - (vget_limits (domain, limits) == 0)) { - vpw-pw_flags = vpw-pw_gid | vlimits_get_flag_mask (limits); - } else vpw-pw_flags = vpw-pw_gid; + vlimits_setflags (vpw, domain); return vpw; Index: vmysql.c === RCS file: /cvsroot/vpopmail/vpopmail/vmysql.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- vmysql.c15 Nov 2003 06:55:44 - 1.10 +++ vmysql.c3 Dec 2003 16:41:14 - 1.11 @@ -417,7 +417,6 @@ uid_t myuid; uid_t uid; gid_t gid; - struct vlimits limits; vget_assign(domain,NULL,0,uid,gid); @@ -496,10 +495,7 @@ } mysql_free_result(res_read); -if ((! vpw.pw_gid V_OVERRIDE) - (vget_limits (in_domain, limits) == 0)) { -vpw.pw_flags = vpw.pw_gid | vlimits_get_flag_mask (limits); -} else vpw.pw_flags = vpw.pw_gid; +vlimits_setflags (vpw, in_domain); return(vpw); } Index: vpgsql.c === RCS file:
Re: [vchkpw] disable_external_relay [PATCH]
Tom, sorry if I may be out of logic, just a fast look at the patch. Is it correct to keep using user flags if override is off? +if ((! (pw-pw_gid V_OVERRIDE)) if user not overriding domain limits + (vget_limits (domain, limits) == 0)) { +pw-pw_flags = pw-pw_gid | vlimits_get_flag_mask (limits); using mixed limits from user and domain. Would it be more direct to use only domain limits in such a case? +} else pw-pw_flags = pw-pw_gid; else use user limits. Ciao, Tonino At 03/12/2003 03/12/2003 -0700, you wrote: Here's the patch to fix the domain limits problem. It's in CVS now, and will be in the next release (which I'll make by the end of the week). Hopefully the email gateways won't totally screw the file up... Update of /cvsroot/vpopmail/vpopmail In directory sc8-pr-cvs1:/tmp/cvs-serv1963 Modified Files: vlimits.h vlimits.c vcdb.c vactivedir.c vldap.c vmysql.c vpgsql.c vsybase.c Log Message: fix and move pw_flags setting code to vlimits.c Index: vlimits.h === RCS file: /cvsroot/vpopmail/vpopmail/vlimits.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- vlimits.h 21 Oct 2003 21:24:37 - 1.5 +++ vlimits.h 3 Dec 2003 16:41:14 - 1.6 @@ -57,4 +57,5 @@ int vlimits_read_limits_file(const char * dir, struct vlimits * limits); int vlimits_write_limits_file(const char * dir, const struct vlimits * limits); int vlimits_get_flag_mask(struct vlimits *limits); +void vlimits_setflags (struct vqpasswd *pw, char *domain); #endif Index: vlimits.c === RCS file: /cvsroot/vpopmail/vpopmail/vlimits.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- vlimits.c 23 Nov 2003 19:27:39 - 1.8 +++ vlimits.c 3 Dec 2003 16:41:14 - 1.9 @@ -365,4 +365,13 @@ return unlink(dir); } +void vlimits_setflags (struct vqpasswd *pw, char *domain) +{ +struct vlimits limits; + +if ((! (pw-pw_gid V_OVERRIDE)) + (vget_limits (domain, limits) == 0)) { +pw-pw_flags = pw-pw_gid | vlimits_get_flag_mask (limits); +} else pw-pw_flags = pw-pw_gid; +} #endif Index: vcdb.c === RCS file: /cvsroot/vpopmail/vpopmail/vcdb.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- vcdb.c 15 Nov 2003 06:55:43 - 1.10 +++ vcdb.c 3 Dec 2003 16:41:14 - 1.11 @@ -231,7 +231,6 @@ #ifdef FILE_LOCKING FILE *lock_fs; #endif - struct vlimits limits; verrori = 0; lowerit(user); @@ -311,10 +310,7 @@ if (!*uid) { pwent.pw_uid = 0; } else { pwent.pw_uid = atoi(uid); } if (!*gid) { pwent.pw_gid = 0; } else { pwent.pw_gid = atoi(gid); } -if ((! pwent.pw_gid V_OVERRIDE) - (vget_limits (in_domain, limits) == 0)) { -pwent.pw_flags = pwent.pw_gid | vlimits_get_flag_mask (limits); -} else pwent.pw_flags = pwent.pw_gid; +vlimits_setflags (pwent, in_domain); #ifdef DEBUG fprintf (stderr,vgetpw: db: results: pw_name = %s\n,pwent.pw_name); Index: vactivedir.c === RCS file: /cvsroot/vpopmail/vpopmail/vactivedir.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- vactivedir.c15 Nov 2003 06:55:43 - 1.8 +++ vactivedir.c3 Dec 2003 16:41:14 - 1.9 @@ -160,7 +160,6 @@ static struct vqpasswd vpw; static struct actdirvp adir; int sock; - struct vlimits limits; if ( (sock=ad_open_conn())==-1){ printf(could not connect\n); @@ -189,10 +188,7 @@ ad_fill_vpw(vpw,adir); - if ((! vpw.pw_gid V_OVERRIDE) - (vget_limits (domain, limits) == 0)) { - vpw.pw_flags = vpw.pw_gid | vlimits_get_flag_mask (limits); - } else vpw.pw_flags = vpw.pw_gid; + vlimits_setflags (vpw, domain); return(vpw); } Index: vldap.c === RCS file: /cvsroot/vpopmail/vpopmail/vldap.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- vldap.c 15 Nov 2003 06:55:44 - 1.10 +++ vldap.c 3 Dec 2003 16:41:14 - 1.11 @@ -70,7 +70,6 @@ uid_t myuid; uid_t uid; gid_t gid; - struct vlimits limits; verrori = 0; lowerit(user); @@ -287,10 +286,7 @@ } #endif - if ((! vpw-pw_gid V_OVERRIDE) - (vget_limits (domain, limits) == 0)) { - vpw-pw_flags = vpw-pw_gid | vlimits_get_flag_mask (limits); - } else vpw-pw_flags = vpw-pw_gid; + vlimits_setflags (vpw, domain); return vpw; Index: vmysql.c === RCS file: /cvsroot/vpopmail/vpopmail/vmysql.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- vmysql.c15 Nov 2003 06:55:44 - 1.10 +++ vmysql.c3 Dec 2003 16:41:14
RE: [vchkpw] Mailbox quota changes
vsetuserquota is the command, not vsetquota but regardless your syntax is correct. Where it is stored is two places, one of which depends on what type of database you're using. It will always be in /path/to/vpopmail/domains/blah.com/someone/Maildir/maildirsize maildirsize is a text file, it you read the first line it will have the quota. That's the file that's looked at during delivery. It will also be stored in the database. If you're using cdb, the default for vpopmail, it will be in /path/to/vpopmail/domains/blah.com/vpasswd (and also vpasswd.cdb). If you're using mysql, then it's in the database in the pw_shell field. -Clayton -Original Message- From: Christian [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 7:29 AM To: [EMAIL PROTECTED] Subject: [vchkpw] Mailbox quota changes I recently moved to vpop for mail accoutns for multiple domains. What is the suggested way to be able to change the quota for specific account under a vpop domain. Example: Domain: blah.com - all users have a 5MB quota. - [EMAIL PROTECTED] would like to have 10MB quota. Is the only way to do this 'vsetquota [EMAIL PROTECTED] 1000' ? Where is the control fiel for that specific mailbox so I can verify this change actuallyhappened? Of course references to helpful links or previous posts always welcome... Thanks in advance... Christian Christian Reeves Internet Systems Administrator KUA.net Office: 407.933. ex: Mobile: 407.509.4652 FAX: 407.933.7715