[vchkpw] maildirsize problem

2011-02-25 Thread Salman Riaz

Hi,

I have set the quota of each email address on qmail server. But the maildirsize 
file is not updating properly.  For Example:

I have set the 6MB quota by vsetuserquota command of an email address then 
following is the result of maildirsize file:
6291456S
0 0

When I sent only one email, this file update twice and gives the following 
result:
6291456S
2157743 1
2157815 1

Only
 one email is in the directory but maildirsize shows that there are 2 
emails with above bytes. When I delete this email then only one entry is
 removed:
6291456S
2157743 1
2157815 1
-2157815   -1

There is no email in my directory but maildirsize shows that 2157743 bytes 
quota is still full:

Tell me why maildirsize is writing wrong entry. How can I get rid of this 
problem?

Regards,
Salman... 

!DSPAM:4d68a89932712951818885!


RE: [vchkpw] maildirsize problem

2011-02-27 Thread Salman Riaz

Dear Romeo,
Trash is also empty  I think the problem lies in the reception of an email. 
As the email is received then it writes two entries in the maildirsize and 
sometimes it writes only one. Deletion process is working fine...

Regards,
Salman


 From: r...@italy1.com
 Date: Sat, 26 Feb 2011 07:41:48 -0700
 To: vchkpw@inter7.com
 Subject: Re: [vchkpw] maildirsize problem
 
 Did you msg end up in the trash? Must be empty otherwise it counts 
 
 Check that and see 
 
 Remo
 
 Inviato da iPhone
 
 Il giorno 26/feb/2011, alle ore 00:15, Salman Riaz 
 salmanriaz...@hotmail.com ha scritto:
 
  Hi,
  
  I have set the quota of each email address on qmail server. But the 
  maildirsize file is not updating properly.  For Example:
  
  I have set the 6MB quota by vsetuserquota command of an email address then 
  following is the result of maildirsize file:
  6291456S
  0 0
  
  When I sent only one email, this file update twice and gives the following 
  result:
  6291456S
  2157743 1
  2157815 1
  
  Only one email is in the directory but maildirsize shows that there are 2 
  emails with above bytes. When I delete this email then only one entry is 
  removed:
  6291456S
  2157743 1
  2157815 1
  -2157815   -1
  
  There is no email in my directory but maildirsize shows that 2157743 bytes 
  quota is still full:
  
  Tell me why maildirsize is writing wrong entry. How can I get rid of this 
  problem?
  
  Regards,
  Salman...  
 
 
 
  

!DSPAM:4d6a602e32711447712336!


RE: [vchkpw] maildirsize problem

2011-02-28 Thread Salman Riaz

Dear Kenji,

I have also the same configurationbut i think the problem is not in the 
maildirquota.c. It lies in anyother file..

Regards,
Salman



 Date: Mon, 28 Feb 2011 13:48:29 +0900
 From: ke...@kens.fm
 To: vchkpw@inter7.com
 Subject: Re: [vchkpw] maildirsize problem
 
 I revise it in this way and use it.
 
 
 
 --- maildirquota.c.orig 2010-12-07 13:37:06.0 +0900
 +++ maildirquota.c  2010-12-07 13:37:54.0 +0900
 @@ -293,7 +293,7 @@
  if (quotafd = 0)   close(quotafd);
  ret_value = 1;
  } else {
 -maildir_addquota(dir, quotafd, q, stat_buf.st_size, 
 1);
 +//   maildir_addquota(dir, quotafd, q, 
 stat_buf.st_size, 1);
  if (quotafd = 0)   close(quotafd);
  ret_value = 0;
  }
 
 
 
 Do you serve as a reference?
 
 
 
 -- 
 Kenji ke...@kens.fm
 
 
 
 
  

!DSPAM:4d6be5ab32712325434248!


RE: [vchkpw] maildirsize problem

2011-02-28 Thread Salman Riaz

Dear Matt,
I am using vpopmail 5.4.32...

Regards,
Salman...


 Date: Mon, 28 Feb 2011 07:59:21 -0600
 From: m...@inter7.com
 To: vchkpw@inter7.com
 Subject: Re: [vchkpw] maildirsize problem
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On 02/26/2011 01:15 AM, Salman Riaz wrote:
  There is no email in my directory but maildirsize shows that 2157743
  bytes quota is still full:
 
 vpopmail doesn't delete messages, and so, the process that is
 responsible for this, is likely the responsible party here.
 
  Tell me why maildirsize is writing wrong entry. How can I get rid of
  this problem?
 
 What vpopmail version are you using?
 - -- 
 /*
 Matt Brookings m...@inter7.com   GnuPG Key FAE0672C
 Software developer Systems technician
 Inter7 Internet Technologies, Inc. (815)776-9465
 */
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAk1rqjkACgkQIwet2/rgZyxMcACfQ6JVUYWiO5rA9OVrLhjTC4/C
 oZYAnia33mHDqEzd0v30pcyPSCgPDVmM
 =5KV5
 -END PGP SIGNATURE-
  

!DSPAM:4d6be5e132715219618295!


RE: [vchkpw] maildirsize problem

2011-02-28 Thread Salman Riaz

Dear Matt,
I am using vpopmail 5.4.32. The problem is also same in 5.4.25 I have 
check it on both versions of vpopmail.

Regards,
Salman...




 Date: Mon, 28 Feb 2011 07:59:21 -0600
 From: m...@inter7.com
 To: vchkpw@inter7.com
 Subject: Re: [vchkpw] maildirsize problem
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On 02/26/2011 01:15 AM, Salman Riaz wrote:
  There is no email in my directory but maildirsize shows that 2157743
  bytes quota is still full:
 
 vpopmail doesn't delete messages, and so, the process that is
 responsible for this, is likely the responsible party here.
 
  Tell me why maildirsize is writing wrong entry. How can I get rid of
  this problem?
 
 What vpopmail version are you using?
 - -- 
 /*
 Matt Brookings m...@inter7.com   GnuPG Key FAE0672C
 Software developer Systems technician
 Inter7 Internet Technologies, Inc. (815)776-9465
 */
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAk1rqjkACgkQIwet2/rgZyxMcACfQ6JVUYWiO5rA9OVrLhjTC4/C
 oZYAnia33mHDqEzd0v30pcyPSCgPDVmM
 =5KV5
 -END PGP SIGNATURE-
  

!DSPAM:4d6be6b632711569410968!


RE: [vchkpw] maildirsize problem

2011-02-28 Thread Salman Riaz

Dear Matt,

I have used vpopmail 5.4.25 and also 5.4.32 I think that maildirsize lies 
with courier-imap not with vpopmail Am I right?? I have not find any clue 
in the vpopmail to write maildirsize file when an email is received.

The file which write maildirsize is maildirquota.c and maildirquota.c is 
responsible for updating the record in this

Regards,
Salman...




 Date: Mon, 28 Feb 2011 12:14:07 -0600
 From: m...@inter7.com
 To: vchkpw@inter7.com
 Subject: Re: [vchkpw] maildirsize problem
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On 02/28/2011 12:13 PM, Salman Riaz wrote:
  Dear Matt,
  I am using vpopmail 5.4.32...
 
 Please try the latest 5.4.33.
 - -- 
 /*
 Matt Brookings m...@inter7.com   GnuPG Key FAE0672C
 Software developer Systems technician
 Inter7 Internet Technologies, Inc. (815)776-9465
 */
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAk1r5e8ACgkQIwet2/rgZyxA+QCdHXUhYZtMkB8ycv94VbFDR/Ce
 JX0AnjlzE8dDKV3T796BbamvfgtKoSf2
 =tKSW
 -END PGP SIGNATURE-
  

!DSPAM:4d6be85132718194817495!


RE: [vchkpw] maildirsize problem

2011-03-01 Thread Salman Riaz

Dear Alessio,
Its now working fine. I am using courier imap with vpopmail-5.4.33. I have also 
checked the code of maildirquota.c. It majorly depends on the recalculating 
time of quota not on the size (5120 bytes or more) of emails. If we reduce this 
time it will results load in the server. It is set as 15 minutes for the 
optimum load on the server. 

When I have use IMAP then it updates the quota at the same time. When I use POP 
then it updates the quota after 15 minutes. Currently I am conducting more 
tests  to understand the working of this vpopmail. 

Regards,
Salman...




 Date: Tue, 1 Mar 2011 10:21:07 +0100
 From: ales...@skye.it
 To: vchkpw@inter7.com
 Subject: Re: [vchkpw] maildirsize problem
 
 Il 01/03/2011 10:07, Salman Riaz ha scritto:
  Dear Matt,
 
  I have tested the new vpopmail-5.4.33. When I use pop protocol to
  download the emails then it does not update the maildirsize file. When I
  have check the email via IMAP it shows no email but still quota is
  showing some usage Can you please advice me regarding this?
 
  Regards,
  Salman...
 
 Hi Salman,
 
 for pop3 or imap what daemon are you running? I'm using vpopmail 5.4.33 
 and dovecot without problem.
 
 Try to reset the file maildirsize : 
 /home/vpopmail/domains/dom.com/user/maildirsize and after re set the 
 quota with ~vpopmail/bin/vmoduser -q100M u...@dom.com
 
 -- 
 Alessio Cecchi is:
 @ ILS - http://www.linux.it/~alessice/
 on LinkedIn - http://www.linkedin.com/in/alessice
 Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/
 @ PLUG - ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
 @ LOLUG - Socio http://www.lolug.net
 
 
 
  

!DSPAM:4d6ccb8a32711767568997!


[vchkpw] default domain

2011-04-07 Thread Salman Riaz

Hi,

vpopmail is not reading defaultdomain file If someone is using some email 
client then it always ask for type full username... IMAP is working fine

Regards,
Salman...


  

!DSPAM:4d9e724832714729919736!


RE: [vchkpw] default domain

2011-04-07 Thread Salman Riaz

Problem is solved when I have copied the defaultdomain file to 
/var/qmail/vpopmail/etc directory...

Regards,
Salman...




From: salmanriaz...@hotmail.com
To: vchkpw@inter7.com
Date: Fri, 8 Apr 2011 07:26:15 +0500
Subject: [vchkpw] default domain








Hi,

vpopmail is not reading defaultdomain file If someone is using some email 
client then it always ask for type full username... IMAP is working fine

Regards,
Salman...


  
  

!DSPAM:4d9e7cb532716209135690!


[vchkpw] vpopmail without mysql

2011-05-20 Thread Salman Riaz

Dear Team,

I am installing Qmail without mysql. I want to know where user information will 
be stored as well as passwords..

Regards,
Salman...
  

!DSPAM:4dd73ede32712903919615!


RE: [vchkpw] vpopmail without mysql

2011-05-22 Thread Salman Riaz

I have install vpopmail without mysql. I want to install courier-imap. Can any 
body please tell me that courier-imap will also be configured without mysql or 
with mysql In the end I have to install roundcube.

Regards,
Salman...




Date: Sat, 21 May 2011 07:22:49 -0500
From: supp...@internetpro.net
To: vchkpw@inter7.com
Subject: Re: [vchkpw] vpopmail without mysql



  



  
  
That information is stored in a file named vpasswd which lives in
the root folder of the domain.

For example, ~/vpopmail/domains/yourdomain/vpasswd



It uses a similar format to /etc/passwd.





Trey Nolen





On 05/20/2011 11:26 PM, Salman Riaz wrote:

  
  Dear Team,

  

  I am installing Qmail without mysql. I want to know where user
  information will be stored as well as passwords..

  

  Regards,

  Salman...

  

  
  

!DSPAM:4dd8cefc32715750110481!


RE: [vchkpw] vpopmail without mysql

2011-05-22 Thread Salman Riaz

There was php-version issue Now successfully installed roundcube All 
things are working fine

But qmailadmin is not working I am unable to login qmailadmin

Regards,
Salman...




 From: hutchli...@midwales.com
 To: vchkpw@inter7.com
 Date: Sun, 22 May 2011 11:36:48 +0100
 Subject: Re: [vchkpw] vpopmail without mysql
 
 On Sunday 22 May 2011, Salman Riaz wrote:
  I have install courier imap without mysql but roundcube is not working
  fine...
 
 Do yourself a favour and install dovecot instead of  courier-imap.
 That will work with roundcube, squirrelmail etc.
 
  
  Regards,
  Salman...
  
  
  
  
  From: salmanriaz...@hotmail.com
  To: vchkpw@inter7.com
  Date: Sun, 22 May 2011 14:53:11 +0600
  Subject: RE: [vchkpw] vpopmail without mysql
  
  
  
  
  
  
  
  
  I have install vpopmail without mysql. I want to install courier-imap. Can
  any body please tell me that courier-imap will also be configured without
  mysql or with mysql In the end I have to install roundcube.
  
  Regards,
  Salman...
  
  
  
  
  Date: Sat, 21 May 2011 07:22:49 -0500
  From: supp...@internetpro.net
  To: vchkpw@inter7.com
  Subject: Re: [vchkpw] vpopmail without mysql
  
  
  
  
  
  
  
  
  
  That information is stored in a file named vpasswd which lives in
  the root folder of the domain.
  
  For example, ~/vpopmail/domains/yourdomain/vpasswd
  
  
  
  It uses a similar format to /etc/passwd.
  
  
  
  
  
  Trey Nolen
  
  
  
  
  
  On 05/20/2011 11:26 PM, Salman Riaz wrote:
  
  
Dear Team,
  
  
  
I am installing Qmail without mysql. I want to know where user
information will be stored as well as passwords..
  
  
  
Regards,
  
Salman...
  
  
  
  
  
  
  
  
 
 
 -- 
 -
 Bob Hutchinson
 Midwales dot com
 -
 
 
 
  

!DSPAM:4dd8f57a32711358614634!


RE: [vchkpw] vpopmail without mysql

2011-05-22 Thread Salman Riaz

vqadmin is also not running fine when we create a new domain then it give 
the following error:

Unable to chdir to vpopmail/domains/domain directory

Regards,
Salman...




From: salmanriaz...@hotmail.com
To: vchkpw@inter7.com
Date: Sun, 22 May 2011 17:37:28 +0600
Subject: RE: [vchkpw] vpopmail without mysql








There was php-version issue Now successfully installed roundcube All 
things are working fine

But qmailadmin is not working I am unable to login qmailadmin

Regards,
Salman...




 From: hutchli...@midwales.com
 To: vchkpw@inter7.com
 Date: Sun, 22 May 2011 11:36:48 +0100
 Subject: Re: [vchkpw] vpopmail without mysql
 
 On Sunday 22 May 2011, Salman Riaz wrote:
  I have install courier imap without mysql but roundcube is not working
  fine...
 
 Do yourself a favour and install dovecot instead of  courier-imap.
 That will work with roundcube, squirrelmail etc.
 
  
  Regards,
  Salman...
  
  
  
  
  From: salmanriaz...@hotmail.com
  To: vchkpw@inter7.com
  Date: Sun, 22 May 2011 14:53:11 +0600
  Subject: RE: [vchkpw] vpopmail without mysql
  
  
  
  
  
  
  
  
  I have install vpopmail without mysql. I want to install courier-imap. Can
  any body please tell me that courier-imap will also be configured without
  mysql or with mysql In the end I have to install roundcube.
  
  Regards,
  Salman...
  
  
  
  
  Date: Sat, 21 May 2011 07:22:49 -0500
  From: supp...@internetpro.net
  To: vchkpw@inter7.com
  Subject: Re: [vchkpw] vpopmail without mysql
  
  
  
  
  
  
  
  
  
  That information is stored in a file named vpasswd which lives in
  the root folder of the domain.
  
  For example, ~/vpopmail/domains/yourdomain/vpasswd
  
  
  
  It uses a similar format to /etc/passwd.
  
  
  
  
  
  Trey Nolen
  
  
  
  
  
  On 05/20/2011 11:26 PM, Salman Riaz wrote:
  
  
Dear Team,
  
  
  
I am installing Qmail without mysql. I want to know where user
information will be stored as well as passwords..
  
  
  
Regards,
  
Salman...
  
  
  
  
  
  
  
  
 
 
 -- 
 -
 Bob Hutchinson
 Midwales dot com
 -
 
 
 
  
  

!DSPAM:4dd918be32718211420591!


RE: [vchkpw] Domain does not exist

2011-05-22 Thread Salman Riaz

Dear All,

The Problem is solved.. SELINUX is causing problem I have disabled it 
and run the following command

echo 0  /selinux/enforce

Regards,
Salman...




From: salmanriaz...@hotmail.com
To: vchkpw@inter7.com
Date: Sun, 22 May 2011 21:25:09 +0600
Subject: [vchkpw] Domain does not exist








Dear All,

I have successfully install Qmail but qmailadmin is not working fine. Following 
is the error:
[Sun May 22 20:19:39 2011] [error] [client IP] Error. Domain salman.com was not 
found in the assign file, referer: http://domain-name/cgi-bin/qmailadmin

Following are the permissions of vpopmail/user directory

drwxr-xr-x  2 root qmail 4.0K May 22 19:56 .
drwxr-xr-x 12 root qmail 4.0K May 21 12:17 ..
-rw-r--r--  1 root root75 May 22 19:56 assign
-rw---  1 root root 0 May 21 16:15 assign.lock
-rw-r--r--  1 root root  2.2K May 22 19:56 cdb

Following are the permissions of cgi-bin/qmailadmin

-rwsr-sr-x 1 vpopmail vchkpw 148K May 21 12:18 /var/www/cgi-bin/qmailadmin

vqadmin is also not running with this...

Can anyone guide please, what is the issue???

Regards,
Salman...


  
  

!DSPAM:4dd9445232711601092326!


RE: [vchkpw] vQregister not same as vadduser

2011-06-13 Thread Salman Riaz

Kindly disable the selinux I think it will resolve the problem... I also 
get the same error with vqadmin

Kindly check it through /etc/selinux or using setup command. You can also 
disable via the following command...

echo 0 /selinux/enforce

Hope your problem will be solved after this

Regards,
Salman...




 From: m...@denntech.net
 To: vchkpw@inter7.com
 Date: Mon, 13 Jun 2011 08:35:35 -0700
 Subject: RE: [vchkpw] vQregister not same as vadduser
 
 
 On 06/10/2011 05:57 PM, Mark Dennis wrote:
  /home/vpopmail/etc/onchange: Permission denied, referer:
  cgi-bin/vqregister/vqregister.cgi
 
 Is vQregister running SUID and SGID, and is Apache allowing the suExec?
  Since you know it's a permissions problem now, you should be able to
 trace the path.
 
 Yes, as is qmailadmin:
 -rwsr-sr-x 1 vpopmail vchkpw 174916 Mar  5 14:39 qmailadmin
 -rwsr-sr-x 1 vpopmail vchkpw 134877 Mar  8 07:54 vqregister.cgi
 
 And suexec is running:
 [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
 
 httpd -V includes:
 -D SUEXEC_BIN=/usr/sbin/suexec
 
 And suexec -V shows:
  -D AP_DOC_ROOT=/var/www
  -D AP_GID_MIN=100
  -D AP_HTTPD_USER=apache
  -D AP_LOG_EXEC=/var/log/httpd/suexec.log
  -D AP_SAFE_PATH=/usr/local/bin:/usr/bin:/bin
  -D AP_UID_MIN=500
  -D AP_USERDIR_SUFFIX=public_html
 
 And to be thorough:
 -rwxr-xr-x 1 vpopmail vchkpw 103328 Feb 14 03:30 /home/vpopmail/bin/vadduser
 -rwxr-x--x 1 vpopmail vchkpw 1720 Jun 10 16:47 /home/vpopmail/etc/onchange
 
 onchange
  PATH=/home/vpopmail/bin:/usr/bin:/bin
  SKEL=/home/vpopmail/skel/
 
  if [ ${1:-} = add_user ]
  then
 DIR=`vuserinfo -d ${2:?No email address specified}`
 #p -rp ${SKEL}* $DIR
 cp -rp ${SKEL}* $DIR
 cp -rp ${SKEL}.qmail $DIR
 cp -rp ${SKEL}mailfilter $DIR
  fi
 
  logger -t onchange $*
  echo onchange $@  /tmp/update-qmail
 /onchange
 
 # ll -a /home/vpopmail/skel
 total 20
 drwx--  3 vpopmail vchkpw 4096 Jan 29  2007 .
 drwx--x--x 10 vpopmail vchkpw 4096 Feb 14 03:30 ..
 drwx--  6 vpopmail vchkpw 4096 Feb 14 03:27 Maildir
 -rw---  1 vpopmail vchkpw 3711 Jan 30  2007 mailfilter
 -rw---  1 vpopmail vchkpw   48 Jan 29  2007 .qmail
 
 To recap:
 Vadduser (using sudo or as root) copies all files from skel to new user
 directory - no error
 Qmailadmin creates Maildir and .qmail in new user directory - onchange
 permission denied
 Vqregister.cgi creates Maildir in new user directory - onchange permission
 denied
 
 No errors shown in suexec.log
 
 It seems like I'm close, but just circling the problem - can you tell what
 I'm missing?
 
 Mark
 
 
 
 
  

!DSPAM:4df6e6e832717999777850!


RE: [vchkpw] vQregister not same as vadduser

2011-06-14 Thread Salman Riaz

Can you please share the apache, audit and messages logs...

Regards,
Salman...




From: m...@denntech.net
To: vchkpw@inter7.com
Date: Tue, 14 Jun 2011 08:51:22 -0700
Subject: RE: [vchkpw] vQregister not same as vadduser



It certainly sounds like a selinux issue, but all this testing has been done 
with it disabled:/etc/selinux/config: SELINUX=disabled/selinux/enforce: 0 Mark 
From: Salman Riaz [mailto:salmanriaz...@hotmail.com] 
Sent: Monday, June 13, 2011 9:43 PM
To: vchkpw@inter7.com
Subject: RE: [vchkpw] vQregister not same as vadduser Kindly disable the 
selinux I think it will resolve the problem... I also get the same error 
with vqadmin

Kindly check it through /etc/selinux or using setup command. You can also 
disable via the following command...

echo 0 /selinux/enforce

Hope your problem will be solved after this

Regards,
Salman...






  

!DSPAM:4df831b832716830914570!