Re: [vchkpw] Quota per domain

2003-01-24 Thread Brian Kolaci

Try using system quotas instead.  This is what I use.
Put each virtual domain under a separate unix user.
Impose a system quota on that user.  Then set per-user
quotas from qmailadmin.

There's a -u option to vadddomain to set it to the specified
unix userid and setup the domains directory under that user's
home directory.

This is a workable approach (I've been using it for years),
and I'm delaying patching vdelivermail to implement it
so I can finish up on qmailadmin.

Thanks,

Brian

   Hi  Brian!
   
   I have installed Qmail+vpopmail+swwebmail on Redhat Linux 8.0
   Now, I want to implement disk quota per virtualdomain.
   
   when I add a virtualdomain ./vadddomain manish.com -q 200
   this option works as 
   -q quota_in_bytes (sets the quota for postmaster account)
   
   Sets the quota for postmaster account.
   
   But as I have 25 virtualdomains, I want to allocate specified disk quota
   to each virtualdomain.
   And the postmaster of that virtualdomain can use that disk space as per
   his requirement with any number of users.
   
   Please give the workable answer...
   
   Manish Jain
   System Admin
   ERDCI Noida
   
   
   
   
   
   



Brian
Galaxy Networks, Inc.






[vchkpw] vpopmail authentification error

2003-01-24 Thread Vctor R. Ruiz

  Hi:

  I have installed qmail + vpopmail 5.2 in RedHat 7.3. qmail works fine, 
and I've successfully created varios virtual domains and accounts with 
vpopmail (via xinetd). They receive fine the incoming messages. However 
when I cannot authenticate in any of those accounts:

[root@astronomia lib]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK [EMAIL PROTECTED]
USER [EMAIL PROTECTED]
+OK
PASS mypassword
-ERR authorization failed
Connection closed by foreign host.

  The xinetd file is this:

service pop3
{
disable= no
socket_type= stream
protocol   = tcp
wait   = no
user   = root
server = /var/qmail/bin/qmail-popup
server_args= astronomia.net /home/vpopmail/bin/vchkpw 
/var/qmail/bin/qmail-pop3d Maildir
log_type   = FILE /var/log/xinetd.log
log_on_success = HOST
log_on_failure = HOST RECORD
}

  I don't know how and where to log the messages of vpopmail. There 
aren't any entry in /var/service/qmail-pop3d/log/ nor qmail/log about 
the authentification problem.

  Any help would be welcomed!

-- 
Víctor R. Ruiz   | - Todos estos momentos se perderán, como
http://infoastro.com/rvr |   lágrimas en la lluvia.





Re: [vchkpw] vlimits patch

2003-01-24 Thread Bill Shupp
On Thursday, January 23, 2003, at 10:52  AM, Brian Kolaci wrote:



Hi Ken/Bill,

It appears that the last patch I sent through didn't
get applied.  This one contains the several extra
fields as requested.


Your patch applied clean to 5.3.14, but compilation failed with these 
errors:

gcc -I. -Icdb  -g -O2 -Wall -c vlimits.c
vlimits.c:25: conflicting types for `vget_limits'
vlimits.h:53: previous declaration of `vget_limits'
vlimits.c:194: conflicting types for `vset_limits'
vlimits.h:54: previous declaration of `vset_limits'
vlimits.c: In function `vset_limits':
vlimits.c:215: structure has no member named `disablepop'
vlimits.c:217: structure has no member named `disableimap'
vlimits.c:219: structure has no member named `disabledialup'
vlimits.c:221: structure has no member named `disablepasswordchanging'
vlimits.c:223: structure has no member named `disablewebmail'
vlimits.c:225: structure has no member named `disablerelay'
vlimits.c:227: structure has no member named `disablesmtp'
vlimits.c:233: warning: long int format, int arg (arg 3)
vlimits.c: At top level:
vlimits.c:246: conflicting types for `vdel_limits'
vlimits.h:55: previous declaration of `vdel_limits'
make[2]: *** [vlimits.o] Error 1
make[2]: Leaving directory `/var/src/vpopmail-5.3.15'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/src/vpopmail-5.3.15'
make: *** [all-recursive-am] Error 2


I'm currently working on
qmailadmin to use the API.  Shall I also update
vdelivermail to enforce the per-domain quotas?


This is not a feature I'm terribly interested in, since vpopmail 
already supports domain quotas through system quotas.  But if you want 
to submit a patch, go for it.

Regards,

Bill Shupp




[vchkpw] vpopuser quota

2003-01-24 Thread Manish Jain

Hi All!

Can the postmaster of a virtualdomain can set vpopuser quota under his
domain?

workable answer will be appreciated.

Manish Jain
Sys Admin
ERDCI Noida








[vchkpw] Quota per domain

2003-01-24 Thread Manish Jain
Hi  Brian!

I have installed Qmail+vpopmail+swwebmail on Redhat Linux 8.0
Now, I want to implement disk quota per virtualdomain.

when I add a virtualdomain ./vadddomain manish.com -q 200
this option works as 
-q quota_in_bytes (sets the quota for postmaster account)

Sets the quota for postmaster account.

But as I have 25 virtualdomains, I want to allocate specified disk quota
to each virtualdomain.
And the postmaster of that virtualdomain can use that disk space as per
his requirement with any number of users.

Please give the workable answer...

Manish Jain
System Admin
ERDCI Noida









Re: [vchkpw] vpopmail authentication error

2003-01-24 Thread Manish Jain
Hi

Vpopmail uses vchkpw file for authentication and u the service pop3 uses
/etc/passwd file.
So disable the pop3 service and smtp services from setup and edit the
file /var/qmail/supervise/qmail-pop3d/run 
so as it look like..

#!/bin/sh
exec /usr/local/bin/softlimit -m 400 \
/usr/local/bin/tcpserver -v -R -H -l 0 0 110 /var/qmail/bin/qmail-popup
\
erdcinoida.com /home/vpopmail/bin/vchkpw
/var/qmail/bin/qmail-pop3d
Maildir

I am sure it will work definitely.

Let me know..

Manish Jain
Sys Admin
ERDCI Noida


 


On Fri, 2003-01-24 at 04:55, Víctor R. Ruiz wrote:
 
   Hi:
 
   I have installed qmail + vpopmail 5.2 in RedHat 7.3. qmail works fine, 
 and I've successfully created varios virtual domains and accounts with 
 vpopmail (via xinetd). They receive fine the incoming messages. However 
 when I cannot authenticate in any of those accounts:
 
 [root@astronomia lib]# telnet localhost 110
 Trying 127.0.0.1...
 Connected to localhost.
 Escape character is '^]'.
 +OK [EMAIL PROTECTED]
 USER [EMAIL PROTECTED]
 +OK
 PASS mypassword
 -ERR authorization failed
 Connection closed by foreign host.
 
   The xinetd file is this:
 
 service pop3
 {
 disable= no
 socket_type= stream
 protocol   = tcp
 wait   = no
 user   = root
 server = /var/qmail/bin/qmail-popup
 server_args= astronomia.net /home/vpopmail/bin/vchkpw 
 /var/qmail/bin/qmail-pop3d Maildir
 log_type   = FILE /var/log/xinetd.log
 log_on_success = HOST
 log_on_failure = HOST RECORD
 }
 
   I don't know how and where to log the messages of vpopmail. There 
 aren't any entry in /var/service/qmail-pop3d/log/ nor qmail/log about 
 the authentification problem.
 
   Any help would be welcomed!
 
 -- 
 Víctor R. Ruiz   | - Todos estos momentos se perderán, como
 http://infoastro.com/rvr |   lágrimas en la lluvia.
 







[vchkpw] vlimits patch

2003-01-24 Thread Brian Kolaci

Hi Ken/Bill,

It appears that the last patch I sent through didn't
get applied.  This one contains the several extra
fields as requested.  I'm currently working on
qmailadmin to use the API.  Shall I also update
vdelivermail to enforce the per-domain quotas?
My copy does this with real disk usage rather than
maildir quotas, so I'm not sure how to do this
with the maildir quotas on a per-domain basis.

Thanks,

Brian

diff -c vpopmail-5.3.14/vlimits.c vpopmail-5.3.14.old/vlimits.c
*** vpopmail-5.3.14/vlimits.c   Sat Dec  7 20:19:03 2002
--- vpopmail-5.3.14.old/vlimits.c   Thu Jan 23 11:38:43 2003
***
*** 38,52 
  limits-maxforwards = -1;
  limits-maxautoresponders = -1;
  limits-maxmailinglists = -1;
- limits-diskquota = 0;
- limits-defaultquota = 0; 
- limits-disable_pop = 0;
- limits-disable_imap = 0;
- limits-disable_dialup = 0;
- limits-disable_passwordchanging = 0;
- limits-disable_relay = 0;
- limits-disable_smtp = 0;
- limits-disable_webmail = 0;
  
  /* get filename */
  vget_assign(domain, dir, sizeof(dir), uid, gid);
--- 38,43 
***
*** 54,139 
  
  /* open file */
  if ((fs = fopen(dir, r)) != NULL) {
!   while (fgets(buf, sizeof(buf), fs) != NULL) {
!   if ((s1 = strtok(buf, TOKENS)) == NULL)
!   continue;
  
!   if (!strcmp(s1, maxpopaccounts)) {
!   if ((s2 = strtok(buf, TOKENS)) == NULL)
!   continue;
!   limits-maxpopaccounts = atoi(s2);
!   }
  
!   if (!strcmp(s1, maxaliases)) {
!   if ((s2 = strtok(buf, TOKENS)) == NULL)
!   continue;
!   limits-maxaliases = atoi(s2);
!   }
  
!   if (!strcmp(s1, maxforwards)) {
!   if ((s2 = strtok(buf, TOKENS)) == NULL)
!   continue;
!   limits-maxforwards = atoi(s2);
!   }
  
!   if (!strcmp(s1, maxautoresponders)) {
!   if ((s2 = strtok(buf, TOKENS)) == NULL)
!   continue;
!   limits-maxautoresponders = atoi(s2);
!   }
  
!   if (!strcmp(s1, maxmailinglists)) {
!   if ((s2 = strtok(buf, TOKENS)) == NULL)
!   continue;
!   limits-maxmailinglists = atoi(s2);
!   }
  
!   if (!strcmp(s1, quota)) {
!   if ((s2 = strtok(buf, TOKENS)) == NULL)
!   continue;
!   limits-diskquota = atoi(s2);
!   }
  
!   if (!strcmp(s1, default_quota)) {
!   if ((s2 = strtok(buf, TOKENS)) == NULL)
!   continue;
!   limits-defaultquota = format_maildirquota(s2);
!   }
  
!   if (!strcmp(s1, disable_pop)) {
!   limits-disable_pop = 1;
!   }
  
!   if (!strcmp(s1, disable_imap)) {
!   limits-disable_imap = 1;
!   }
  
!   if (!strcmp(s1, disable_dialup)) {
!   limits-disable_dialup = 1;
!   }
  
!   if (!strcmp(s1, disable_password_changing)) {
!   limits-disable_passwordchanging = 1;
!   }
  
!   if (!strcmp(s1, disable_external_relay)) {
!   limits-disable_relay = 1;
!   }
  
!   if (!strcmp(s1, disable_smtp)) {
!   limits-disable_smtp = 1;
!   }
  
!   if (!strcmp(s1, disable_webmail)) {
!   limits-disable_webmail = 1;
!   }
!   }
!   fclose(fs);
!   chown(dir,uid,gid);
!   chmod(dir, S_IRUSR|S_IWUSR);
  } else {
!   fprintf(stderr, vlimits: failed to open limits file (%d):  %s\n, errno, dir);
!   return -1;
  }
  
  return 0;
--- 45,190 
  
  /* open file */
  if ((fs = fopen(dir, r)) != NULL) {
! while (fgets(buf, sizeof(buf), fs) != NULL) {
! if ((s1 = strtok(buf, TOKENS)) == NULL)
! continue;
  
! if (!strcmp(s1, maxpopaccounts)) {
! if ((s2 = strtok(buf, TOKENS)) == NULL)
! continue;
! limits-maxpopaccounts = atoi(s2);
! }
  
! if (!strcmp(s1, maxaliases)) {
! if ((s2 = strtok(buf, TOKENS)) == NULL)
! continue;
! limits-maxaliases = atoi(s2);
! }
  
! if (!strcmp(s1, maxforwards)) {
! if ((s2 = strtok(buf, TOKENS)) == NULL)
! continue;
! limits-maxforwards = atoi(s2);
! }
  
! if (!strcmp(s1, maxautoresponders)) {
! if ((s2 = strtok(buf, TOKENS)) == NULL)
! continue;
! limits-maxautoresponders = atoi(s2);
! }
  
! if (!strcmp(s1, maxmailinglists)) {
! if ((s2 = strtok(buf, TOKENS)) == NULL)
! continue;
! limits-maxmailinglists = atoi(s2);
! }
  
! if (!strcmp(s1, quota)) {
! if ((s2 = strtok(buf, TOKENS)) == NULL)
! continue;
! limits-diskquota = atoi(s2);
! }
  
! if (!strcmp(s1, maxmsgcount)) {
! if ((s2 = strtok(buf, TOKENS)) == NULL)
!  

[vchkpw] vadduser error : user's directory already exist?

2003-01-24 Thread Abdul Latief
Hi:
I have installed qmail + vpopmail 5.2 in RedHat 7.3. qmail works fine,
and I've successfully created varios virtual domains and accounts with
vpopmail. They receive fine the incoming messages. However
when one of virtual domain reach 98000 member, there is an error on vadduser
: user's directory already exist? (when create new member webmail)

any solution ?, any help would be welcomed :-)

regards,

Abdul Latief
---






[vchkpw] Quota per domain

2003-01-24 Thread Manish Jain


Hi  All!

I have installed Qmail+vpopmail+swwebmail on Redhat Linux 8.0
Now, I want to implement disk quota per virtualdomain created.
when I add a virtualdomain ./vadddomain manish.com -q 200
this option works as 
-q quota_in_bytes (sets the quota for postmaster account)

But I want to allocate specified disk quota to a virtualdomain.
And the postmaster of that virtualdomain can use that disk space as per
his requirement with any number of users.

Please give the workable answer...

Manish Jain
System Admin
ERDCI Noida






[vchkpw] mysql replication

2003-01-24 Thread Malte Ahrens
hi everybody!

i'm going to set up a cluster of mail server but i'm not sure, what's 
the best way. i'm using qmail/vpopmail/mysql for 3 years now. but now i 
have to set up a bigger system. i know that vpopmail has an option 
--enable-mysql-replication, but i don't see how to set up the rest of 
the machines. i want to use one nfs-server with raid-5 harddisks and an 
installed mysql server, which acts as the master server. i also have two 
(maybe three) satelite server, which act as pop3/imap machines. 
/home/vpopmail and /var/qmail is exported by the nfs server and mountet 
on all satelites. do i have to take care of something else? what about 
creating new users/domains on one satelite? what is to be done on the 
other satelite? send -HUP to the qmail-send process to re-read 
morercpthosts, virtualdomains, users/assign? or will vpopmail recognize 
that for example a new domain is created on the other satelite? unlikely 
inter7 has no documentation about that theme...

i would be very happy, if someone can show me the right direction.


kind regards,


malte ahrens




RE: [vchkpw] How to transfer Sendmail users to Qmail

2003-01-24 Thread Remo Mattei
If you use vpopmail it's easy just create a script as a matter of fact I
did it today here is the script: 
#!/bin/bash
for i in `cat users`
do
vadduser $[EMAIL PROTECTED] $i
done

this will set a temp password to their name or if you use the learn
password they must log on with pop and the first time they log in vpop
will set the password on what they have typed. Very Kool, 


Remo Mattei
Network Security Engineer
cell 801-209-8554
email [EMAIL PROTECTED]

-Original Message-
From: Manish Jain [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 22, 2003 10:24 PM
To: Vpopmail Mailing List
Subject: [vchkpw] How to transfer Sendmail users to Qmail



Dear All,

I have just installed Qmail, vpopmail and sqwebmail.
I am running Sendmail as my present MTA on a different machine.
Can anyone tell me how to transfer all my Sendmail users to Qmail?
I created Sendmail users under a group popmail users (about 250 users)
There are about 25 virtual domains also in Sendmail for these users.

Please advise me what to do..

Regards..

Manish Jain
Sys Admin, ERDCI Noida
India







RE: [vchkpw] Quota per domain

2003-01-24 Thread Clayton Weise
Read the archives, this has been discussed and covered a million times over.

-Clayton

-Original Message-
From: Manish Jain [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 9:58 PM
To: Vpopmail Mailing List
Subject: [vchkpw] Quota per domain




Hi  All!

I have installed Qmail+vpopmail+swwebmail on Redhat Linux 8.0
Now, I want to implement disk quota per virtualdomain created.
when I add a virtualdomain ./vadddomain manish.com -q 200
this option works as 
-q quota_in_bytes (sets the quota for postmaster account)

But I want to allocate specified disk quota to a virtualdomain.
And the postmaster of that virtualdomain can use that disk space as per
his requirement with any number of users.

Please give the workable answer...

Manish Jain
System Admin
ERDCI Noida


 




[vchkpw] Quota per domain

2003-01-24 Thread Manish Jain

Hi  All!

I have installed Qmail+vpopmail+swwebmail on Redhat Linux 8.0
Now, I want to implement disk quota per virtualdomain created.
when I add a virtualdomain ./vadddomain manish.com -q 200
this option works as 
-q quota_in_bytes (sets the quota for postmaster account)

But I want to allocate specified disk quota to a virtualdomain.
And the postmaster of that virtualdomain can use that disk space as per
his requirement with any number of users.

Please give the workable answer...

Manish Jain
System Admin
ERDCI Noida






[vchkpw] client gets multiple copies of email

2003-01-24 Thread Ron Culler
We are seeing a strange problem with some of our pop email clients. They
are seeing multiple copies of an email message appear in thier inbox
(outlook or outlook express) when only one copy of the email was ever in
the inbox to begin with.  This only appears to happen when receiving
mail from one particular source (running ComunigatePro 4.0) they send to
several different domains that we host and all appear to have the same
thing happening.  I have looked at the message and the headers and they
look normal. But the end-user seems to get the message over and
over(usually 4-20 copies) when the check the mailbox with POP3 

Running Redhat 7.3 vpopmail 5.2 

Any Ideas

-- 
Ron Culler






[vchkpw] How to transfer Sendmail users to Qmail

2003-01-24 Thread Manish Jain


Dear All,

I have just installed Qmail, vpopmail and sqwebmail.
I am running Sendmail as my present MTA on a different machine.
Can anyone tell me how to transfer all my Sendmail users to Qmail?
I created Sendmail users under a group popmail users (about 250 users)
There are about 25 virtual domains also in Sendmail for these users.

Please advise me what to do..

Regards..

Manish Jain
Sys Admin, ERDCI Noida
India





Re: [vchkpw] How to transfer Sendmail users to Qmail

2003-01-24 Thread Johan Kuuse
There are two other steps you should do as well to complete the account
transfers:

1. If you used UNIX shell accounts for Sendmail, all the encrypted passwords
are stored in /etc/shadow, /etc/master.passwd,
 or /etc/security depending on your UNIX platform.
See the attachment for an example script how to accomplish this.

2. Convert mbox to Maildir:
Search for mb2md.pl in Google
This Perl script converts an mbox file to a Maildir.

Best Regards,
Johan Kuuse
[EMAIL PROTECTED]






- Original Message -
From: Remo Mattei [EMAIL PROTECTED]
To: 'Manish Jain' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, January 22, 2003 11:28 PM
Subject: RE: [vchkpw] How to transfer Sendmail users to Qmail


If you use vpopmail it's easy just create a script as a matter of fact I
did it today here is the script:
#!/bin/bash
for i in `cat users`
do
vadduser $[EMAIL PROTECTED] $i
done

this will set a temp password to their name or if you use the learn
password they must log on with pop and the first time they log in vpop
will set the password on what they have typed. Very Kool,


Remo Mattei
Network Security Engineer
cell 801-209-8554
email [EMAIL PROTECTED]

-Original Message-
From: Manish Jain [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 10:24 PM
To: Vpopmail Mailing List
Subject: [vchkpw] How to transfer Sendmail users to Qmail



Dear All,

I have just installed Qmail, vpopmail and sqwebmail.
I am running Sendmail as my present MTA on a different machine.
Can anyone tell me how to transfer all my Sendmail users to Qmail?
I created Sendmail users under a group popmail users (about 250 users)
There are about 25 virtual domains also in Sendmail for these users.

Please advise me what to do..

Regards..

Manish Jain
Sys Admin, ERDCI Noida
India







vmoduser.pl
Description: Binary data


Re: [vchkpw] client gets multiple copies of email

2003-01-24 Thread Rick Romero

I've experienced the same thing with Outlook clients, but under only two 
conditions:

1.  The mail server's CPU utilization is VERY high.
2.  The client's internet connection is unstable.

For me, I solved 1 by upgrading their mail server from a P100 (it was also 
running SpamAssassin and AV software).  2 was fixed when the telco went to the 
client and fixed their DSL connection.

So far, I've only seen Outlook exhibit this.
(It seems to be able to download the email, but then can't issue a DELETE in 
those circumstances)

Rick


Quoting Ron Culler [EMAIL PROTECTED]:

 We are seeing a strange problem with some of our pop email clients. They
 are seeing multiple copies of an email message appear in thier inbox
 (outlook or outlook express) when only one copy of the email was ever in
 the inbox to begin with.  This only appears to happen when receiving
 mail from one particular source (running ComunigatePro 4.0) they send to
 several different domains that we host and all appear to have the same
 thing happening.  I have looked at the message and the headers and they
 look normal. But the end-user seems to get the message over and
 over(usually 4-20 copies) when the check the mailbox with POP3 
 
 Running Redhat 7.3 vpopmail 5.2 
 
 Any Ideas
 
 -- 
 Ron Culler
 
 
 

 







[vchkpw] wanted: make vaddomain changes for fun and profit

2003-01-24 Thread Pete Mocat
Hello,

I believe that currently vadddomain has no method to specify
the /home/vpopmail/domains/*/ dir that a new domain is added to.
The current directory option only changes the base dir (/home/vpopmail/)

I need this feature.

I would like to pay someone on the list to make this change. Is
anyone interested?

The fix is trivial. I have already made a version of my own that will create 
the dirs as I need them.

However I would like to pay someone to make a clean fix that is integrated 
into the development code and would become part of the standard distro (my 
current patch is not worthy of inclusion - it just globably hard codes the 
needed dir).

I see the following changes needed:

new command line option
pass the desired dir to the vpopmail.c calls (versus my quick and dirty
global setting of the option)


Please let me know if anyone is interested. The pay would be minimal but
the job is pretty easy. If you are looking to make yourself a contributor to 
vpopmail but couldn't find a project - here's your chance!

Thanks.






_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail




[vchkpw] 5.2+ vdelivermail doesn't read .qmail

2003-01-24 Thread Michael Burns
I've noticed that vdelivermail in vpopmail 5.2 and (probably up to 
and including) 5.3.14 doesn't process any .qmail file at its second
argument when that argument is a directory path.

Shouldn't vdelivermail check the delivery directory for a .qmail file
before dumping the message into the Maildir/ directory?

--
Michael