[vchkpw] pop3 error

2005-03-11 Thread Dan D
ok, i just installed vpopmail and everything seems to be working with 
imap fine, but i am getting this error when trying to check via pop3

+OK [EMAIL PROTECTED]
user dan
+OK
pass mypass
vchkpw-pop3: vchkpw is only for talking with qmail-popup and 
qmail-pop3d. It is
not for runnning on the command line.
-ERR authorization failed

and then the session terminates.
I get the same error when using a mail client
I compiled with ./configure --enable-roaming-users=y --enable-valias=y
and my /service/qmail-pop3d/run has:
#!/bin/sh
exec/usr/local/bin/softlimit -m 200 \
   /usr/local/bin/envdir /etc/relay-ctrl \
   /usr/local/bin/relay-ctrl-chdir \
   /usr/local/bin/tcpserver -v -R -H -l 0 0 110 \
   /var/qmail/bin/qmail-popup \
   idelaney.net \
   /bin/checkpassword \
   /usr/local/bin/relay-ctrl-allow \
   /home/vpopmail/bin/vchkpw \
   /var/qmail/bin/qmail-pop3d Maildir \
   21
It works fine before the vchkpw line was put in.
What could be causing this?
- Dan Delaney


Re: [vchkpw] pop3 error

2005-03-11 Thread Dan D
Dan D wrote:
ok, i just installed vpopmail and everything seems to be working with 
imap fine, but i am getting this error when trying to check via pop3

+OK [EMAIL PROTECTED]
user dan
+OK
pass mypass
vchkpw-pop3: vchkpw is only for talking with qmail-popup and 
qmail-pop3d. It is
not for runnning on the command line.
-ERR authorization failed

and then the session terminates.
I get the same error when using a mail client
I compiled with ./configure --enable-roaming-users=y --enable-valias=y
and my /service/qmail-pop3d/run has:
#!/bin/sh
exec/usr/local/bin/softlimit -m 200 \
   /usr/local/bin/envdir /etc/relay-ctrl \
   /usr/local/bin/relay-ctrl-chdir \
   /usr/local/bin/tcpserver -v -R -H -l 0 0 110 \
   /var/qmail/bin/qmail-popup \
   idelaney.net \
   /bin/checkpassword \
   /usr/local/bin/relay-ctrl-allow \
   /home/vpopmail/bin/vchkpw \
   /var/qmail/bin/qmail-pop3d Maildir \
   21
It works fine before the vchkpw line was put in.
What could be causing this?
- Dan Delaney
I also get this when trying to check a virtual domain:
+OK [EMAIL PROTECTED]
user [EMAIL PROTECTED]
+OK
pass mypass
-ERR authorization failed


Re: [vchkpw] cvs devel version problems

2005-03-11 Thread Rick Widmer
I have updated HEAD in cvs to include everything that has been changed 
in 5.4 as of last night.  There wasn't very much, but there were bug 
fixes, and some improved documentation.

Ken Jones wrote:
That would be great if you could check it out.
I don't get a segfault here.  I've tried with 8 existing domains; delete 
all domains, and clean out control files by hand; fresh install based on 
Bill Shupp's toaster.  What is the state of your existing virtual 
domains and related qmail configuration?  Specifically users/assign, 
control/morercpthosts, control/rcpthosts, control/virtualdomains, 
control/locals?

Send me a copy of those files and I'll see if I can get it to crash.

I'm wondering what the reason was behind redoing
that code. Seems to work fine in the past.
When I tested the daemon against 1500 domains it took about 10 seconds 
to obtain and transfer the domain list...  way too long.  Since the 
daemon returned the domain list out of order I had to load all 1500 
entries, sort them then display a page that only contains 20 of them.

So I made the daemon able to return any arbitrary single page of users 
or domains.  You specify a page number, and the number of entries on the 
page.  Now the daemon needs access to the lists in order.  To add a new 
entry we are already reading the existing file, copying it to a new file 
and adding the new record at the end.  Change that to insert the record 
before the first record that goes by with that is  and you have an 
insertion sort with almost no extra effort.  If none are  then add it 
at the end of the file.  This is handled by the function update_file().

Since vpopmail already used the same function to manage all the qmail 
control files, I continued that tradition.  There is little other reason 
to maintain sort order on any control file except users/assign.

While update_file is copying the file it is also counting the number of 
entries in it, and checking the order of each entry pair.  If it finds 
any records out of order it creates an array of string pointers sized to 
handle the number of records in the file; loads the new file into 
strings pointed to by the array; call qsort on them; then writes the 
data back to the new file.  Whew...  but that only happens the first 
time the new version sees a file from an older version, or if someone 
has changed the order of records in a control file by hand.

Finally it renames the new file over the old file, and unlocks it.
Function extract_domain takes the entry found in the input file and 
returns a normalized string for sorting.  users/assign is a different 
format from the rest of the files in control, so you pass 1 in the last 
parm to change how the files are decoded.

Currently the sort order would result in this:
developersdesk.com
developersdesk.net
developersdesk.org
rickwidmer.com
mail.rickwidmer.com
smtp.rickwidmer.com
rickwidmer.net
The sort order is second level domain, top level domain, host name (if 
any).  It tends to group customers together.

It was mentioned on the list that might not be the best for someone with 
mostly international domains, but no one ever told mw what would be 
better.  I can change sort order fairly easily at the ./configure level.


Re: [vchkpw] pop3 error

2005-03-11 Thread Tom Collins
On Mar 11, 2005, at 12:32 AM, Dan D wrote:
#!/bin/sh
exec/usr/local/bin/softlimit -m 200 \
   /usr/local/bin/envdir /etc/relay-ctrl \
   /usr/local/bin/relay-ctrl-chdir \
   /usr/local/bin/tcpserver -v -R -H -l 0 0 110 \
   /var/qmail/bin/qmail-popup \
   idelaney.net \
   /bin/checkpassword \
   /usr/local/bin/relay-ctrl-allow \
   /home/vpopmail/bin/vchkpw \
   /var/qmail/bin/qmail-pop3d Maildir \
   21
I don't know how the call to relay-ctrl-allow should fit in, but the 
vchkpw line normally replaces the checkpassword line.

My guess is that has something to do with your problems.
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet: 
sniffter.com



[vchkpw] Transfering from Old to New Server

2005-03-11 Thread Blake
Hello everyone,
I am running qmail with vpopmail. I Also use vqadmin. I need to know 
what I need to copy over to a new server so that it will be able to 
authenticate all user accounts and have thier email exactly the same as 
it was. Vpopmail is also using a mysql database. So far I have been able 
to copy the correct directories from qmail over. I also replicated the 
database exactly. At this point vqadmin reports my domain and shows all 
my users. The only thing that I am missing - none of the users are able 
to authenticate!!! Very frustrating. Here are the details: from qmail 
copied /var/qmail/alias and control and users. I also copied 
/home/vpopmail/domains over to the new server.  As I mention before I 
copied the mysql database over exactly. Just can't authenticate users!!

any suggestions?
-Blake-


Re: [vchkpw] Transfering from Old to New Server

2005-03-11 Thread Juan Enciso Condeña
Hi Blacke.
You should make to script to change the passwords.
I things that the problem is in the mysql crypt, I am not sure, but a script 
solved my problem when I migrated my server.

It should read the pw_clear_passwd and pw_name of table domains and run this 
command:
vpasswd $user $password

- Original Message - 
From: Blake [EMAIL PROTECTED]
To: vchkpw@inter7.com
Sent: Friday, March 11, 2005 10:55 AM
Subject: [vchkpw] Transfering from Old to New Server


Hello everyone,
I am running qmail with vpopmail. I Also use vqadmin. I need to know what 
I need to copy over to a new server so that it will be able to 
authenticate all user accounts and have thier email exactly the same as it 
was. Vpopmail is also using a mysql database. So far I have been able to 
copy the correct directories from qmail over. I also replicated the 
database exactly. At this point vqadmin reports my domain and shows all my 
users. The only thing that I am missing - none of the users are able to 
authenticate!!! Very frustrating. Here are the details: from qmail copied 
/var/qmail/alias and control and users. I also copied 
/home/vpopmail/domains over to the new server.  As I mention before I 
copied the mysql database over exactly. Just can't authenticate users!!

any suggestions?
-Blake-



Re: [vchkpw] Transfering from Old to New Server

2005-03-11 Thread Tom Collins
On Mar 11, 2005, at 7:55 AM, Blake wrote:
The only thing that I am missing - none of the users are able to 
authenticate!!! Very frustrating. Here are the details: from qmail 
copied /var/qmail/alias and control and users. I also copied 
/home/vpopmail/domains over to the new server.  As I mention before I 
copied the mysql database over exactly. Just can't authenticate 
users!!
Does vuserinfo show information on each user?
Does `vpopbull -n -V` show a list of users?
Did you configure the qmail-pop3d/run script on the new server to use 
vchkpw?

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet: 
sniffter.com



Re: [vchkpw] listing over-quota users

2005-03-11 Thread green-vpopmail
what I have set up might be a little different from you have, but take a look 
at this:
# ls -al
  
total 26
  
drwx--  12 vpopmail vchkpw  536 Nov 29 10:23 .  
  
drwx--   3 vpopmail vchkpw  128 Sep 28 17:23 .. 
  
-rw---   1 vpopmail vchkpw  775 Sep 18  2003 bincimap-cache 
  
-rw---   1 vpopmail vchkpw   67 Jul 28  2003 bincimap-subscribed
  
-rw---   1 vpopmail vchkpw   56 Sep 18  2003 bincimap-uidvalidity   
  
drwxr-xr-x   2 vpopmail vchkpw   72 Aug 18  2004 courierimaphieracl 
  
drwx--   2 vpopmail vchkpw   48 Nov 17 11:06 courierimapkeywords
  
-rw-r--r--   1 vpopmail vchkpw   58 Sep 24  2003 courierimapsubscribed  
  
-rw-r--r--   1 vpopmail vchkpw   61 Nov 29 10:23 courierimapuiddb   
  
drwx--   2 vpopmail vchkpw  112 Nov 29 10:29 cur
  
drwx--   6 vpopmail vchkpw  256 Aug 18  2004 .Drafts
  
drwxr-xr-x   6 vpopmail vchkpw  224 Nov 15 17:12 .Junk  
  
-rw---   1 vpopmail vchkpw   18 Mar 11 00:32 maildirsize
  
drwx--   2 vpopmail vchkpw 1120 Mar  5 03:05 new
  
drwx--   6 vpopmail vchkpw  256 Aug 18  2004 .Sent  
  
drwx--   6 vpopmail vchkpw  224 Aug 18  2004 .test  
  
drwx--   2 vpopmail vchkpw   48 Mar  5 03:05 tmp
  
drwx--   6 vpopmail vchkpw  328 Sep 13 12:42 .Trash 
  

  
this is a listing of a sample Maildir directory on my server. it has all these 
files and directories that have to do with courier IMAP.   
while they don't take much in some cases, sometimes they can take a couple of 
percent from the overall quota. 
in addition there are two directories (IMAP folders) .Junk (where all spam is 
forwarded) and .Trash (courier IMAP/squirrelmail default trash  
+folder). when you use squirrelmail to delete an email, it gets forwarded to 
.Trash, and maildirsize file is changed to not count this email  
+against quota. in addition, spam can quickly fill .Junk and the user will not 
be able to receive good email messages. so, the policy in my   
+place is to count only good email that sits anywhere but .Junk and .Trash. 
Also, to prevent users from having gigantic number of messages in 
+these two directories - there is a script that deletes anything that's older 
than 7 days in these two directories.

-- 
Igor


On Thu, Mar 10, 2005 at 07:26:10PM -0500, Charles Sprickman wrote:
- On Wed, 9 Mar 2005 [EMAIL PROTECTED] wrote:
- 
- this method is of course fast and dirty, but it might not work for 
- everyone out there.
- 
- the best aproach is to write a perl script that runs queries on a 
- database, gets path to a user's mailbox on the server, uses File::Find 
- to include only files in Maildir/cur and Maildir/new as well as 
- :subfolders:/cur and :subfolders:/new with the exception of trash 
- folders. that should give a much clearer picture. in addition it can 
- scale better.
- 
- I have something similar, but it's not very generic, so I don't know if 
- anyone would be interested.  I've added a few fields to the vpopmail table 
- to record when they first hit quota so I can get a report (quick php page) 
- of who's over and for how long.
- 
- To get usage, I'm just hitting the user's 

Re: [vchkpw] Transfering from Old to New Server

2005-03-11 Thread Blake
Tom Collins wrote:
On Mar 11, 2005, at 7:55 AM, Blake wrote:
The only thing that I am missing - none of the users are able to 
authenticate!!! Very frustrating. Here are the details: from qmail 
copied /var/qmail/alias and control and users. I also copied 
/home/vpopmail/domains over to the new server.  As I mention before I 
copied the mysql database over exactly. Just can't authenticate users!!

Does vuserinfo show information on each user?
Does `vpopbull -n -V` show a list of users?
Did you configure the qmail-pop3d/run script on the new server to use 
vchkpw?

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet: sniffter.com

Tom,
vpopbull -n -V does indeed show my user list. qmail-pop3d/run is set to 
use vchkpw... Here is the contents of that file

#!/bin/sh
PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin
export PATH
exec tcpserver -H -R -v -c100 0 110 qmail-popup mail.cccwireless.net \
/home/vpopmail/bin/vchkpw qmail-pop3d Maildir 21
my users are listed there and in vqadmin. Everything except 
authentication looks right... I must be missing the password tokens or 
somthing.. Any suggestsions would be great.

Thanks
-Blake-







Re: [vchkpw] Transfering from Old to New Server

2005-03-11 Thread Blake
Blake wrote:
Tom Collins wrote:
On Mar 11, 2005, at 7:55 AM, Blake wrote:
The only thing that I am missing - none of the users are able to 
authenticate!!! Very frustrating. Here are the details: from qmail 
copied /var/qmail/alias and control and users. I also copied 
/home/vpopmail/domains over to the new server.  As I mention before 
I copied the mysql database over exactly. Just can't authenticate 
users!!

Does vuserinfo show information on each user?
Does `vpopbull -n -V` show a list of users?
Did you configure the qmail-pop3d/run script on the new server to use 
vchkpw?

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet: 
sniffter.com

Tom,
vpopbull -n -V does indeed show my user list. qmail-pop3d/run is set 
to use vchkpw... Here is the contents of that file

#!/bin/sh
PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin
export PATH
exec tcpserver -H -R -v -c100 0 110 qmail-popup mail.cccwireless.net \
/home/vpopmail/bin/vchkpw qmail-pop3d Maildir 21
my users are listed there and in vqadmin. Everything except 
authentication looks right... I must be missing the password tokens or 
somthing.. Any suggestsions would be great.

Thanks
-Blake-

I also got this error from qmailadmin:
file permission error 
/home/vpopmail/domains/cccwireless.net/postmaster/Maildir/1110573912.qw

does that make more since?
thanks
-Blake-



Re: [vchkpw] listing over-quota users

2005-03-11 Thread Charles Sprickman
On Fri, 11 Mar 2005 [EMAIL PROTECTED] wrote:
this is a listing of a sample Maildir directory on my server. it has all 
these files and directories that have to do with courier IMAP. while 
they don't take much in some cases, sometimes they can take a couple of 
percent from the overall quota. in addition there are two directories 
(IMAP folders) .Junk (where all spam is forwarded) and .Trash (courier 
IMAP/squirrelmail default trash +folder).
Doh!  Now I see why I'm off so much.  I forgot about .Trash not being 
counted.  I'll have to revamp things to account for that.

Thanks!
Charles

--
Igor
On Thu, Mar 10, 2005 at 07:26:10PM -0500, Charles Sprickman wrote:
- On Wed, 9 Mar 2005 [EMAIL PROTECTED] wrote:
-
- this method is of course fast and dirty, but it might not work for
- everyone out there.
- 
- the best aproach is to write a perl script that runs queries on a
- database, gets path to a user's mailbox on the server, uses File::Find
- to include only files in Maildir/cur and Maildir/new as well as
- :subfolders:/cur and :subfolders:/new with the exception of trash
- folders. that should give a much clearer picture. in addition it can
- scale better.
-
- I have something similar, but it's not very generic, so I don't know if
- anyone would be interested.  I've added a few fields to the vpopmail table
- to record when they first hit quota so I can get a report (quick php page)
- of who's over and for how long.
-
- To get usage, I'm just hitting the user's homedir with du, can you comment
- a bit on why I would need to count only the mail?  There shouldn't really
- be anything of note in the user's directory besides the mail...
-
- It is quite interesting to see how much the real usage (provided by du)
- can differ from the maildirsize info.
-
- Charles
-
- --
- Igor
- 
- 
- On Wed, Mar 09, 2005 at 08:08:10AM -0800, Charles J. Boening wrote:
- - Here's what I do.  I don't have too many domains or users do it doesn't
- - take too long.
- -
- - du -sk /home/vpopmail/domains/*/*/Maildir  /tmp/maildirusage  du -sk
- - /home/vpopmail/domains/*/*/*/Maildir  /tmp/maildirusage  cat
- - /tmp/maildirusage | sort -n | tail -n50 | sort -n -r | mail -s Mail
- - User Quota your-email-here
- -
- -
- - This only gets the top 50 users.  You can change it easily.  I don't
- - think it would be very efficient for multiple domains.  In that case you
- - may want to break it up into a run for each domain.
- -
- - I'd definitely like to see something more efficient :)
- -
- -
- - Charlie
- -
- -
- -
- - 
- -
- - From: Tanmaya Anand [mailto:[EMAIL PROTECTED]
- - Sent: Tuesday, March 08, 2005 11:44 PM
- - To: vchkpw@inter7.com
- - Subject: [vchkpw] listing over-quota users
- -
- -
- -
- - Hi
- -
- - I need to list all over-quota users on the system for all
- - domains.
- - Can anyone help me with some similiar perl / shell script to get
- - this done.
- -
- - Regards,
- - Tanmaya
- -
- -
- -
- -  http://clients.rediff.com/signature/track_sig.asp
- -
- -
- 


Re: [vchkpw] Transfering from Old to New Server

2005-03-11 Thread Tom Collins
On Mar 11, 2005, at 12:57 PM, Blake wrote:
I also got this error from qmailadmin:
file permission error  
/home/vpopmail/domains/cccwireless.net/postmaster/Maildir/ 
1110573912.qw

does that make more since?
No, but it makes more sense.
qmailadmin needs to be owned by vpopmail:vchkpw and have the suid bit  
set in its permissions.

I needs to be on a partition that isn't mounted with the nosuid option.
~vpopmail/domains should be owned, in its entirety by vpopmail:vchkpw.
If qmailadmin doesn't run as vpopmail, then it can't authenticate users  
on a cdb backend, and it won't allow anyone to log in with a MySQL  
backend.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet:  
sniffter.com



Re: [vchkpw] Transfering from Old to New Server

2005-03-11 Thread Blake
Tom Collins wrote:
On Mar 11, 2005, at 12:57 PM, Blake wrote:
I also got this error from qmailadmin:
file permission error  
/home/vpopmail/domains/cccwireless.net/postmaster/Maildir/ 1110573912.qw

does that make more since?

No, but it makes more sense.
qmailadmin needs to be owned by vpopmail:vchkpw and have the suid bit  
set in its permissions.

I needs to be on a partition that isn't mounted with the nosuid option.
~vpopmail/domains should be owned, in its entirety by vpopmail:vchkpw.
If qmailadmin doesn't run as vpopmail, then it can't authenticate 
users  on a cdb backend, and it won't allow anyone to log in with a 
MySQL  backend.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet:  
sniffter.com

Guess what!!
That fixed it. I have successfully moved my entire mail database over to 
another computer and it functions exactly the same as the old server!! 
This would be a great howto:
if you are using qmail and vpopmail with mysql:

copy or rsync (Better Idea) the following directories:
/var/qmail/alias
/var/qmail/control
/var/qmail/users
/home/vpopmail/domains
replicate the mysql database (perhaps constantly)
this will keep an identical server running side by side
thanks everyone!!
-Blake-


Re: [vchkpw] listing over-quota users

2005-03-11 Thread green-vpopmail
but wait, there is more!. :)

in squirrelmail try moving a big email from inbox to some folder. open that 
folder and delete the email. quota usage won't change as it should.
effectively, deletion from any folder other than INBOX will not change quota 
usage. 

there is plenty of inconsistencies like that all over the place. I realized 
that taking care of quota recalculation and other maintenance activities should 
be performed via scripts.


-- 
Igor


On Fri, Mar 11, 2005 at 04:06:41PM -0500, Charles Sprickman wrote:
- On Fri, 11 Mar 2005 [EMAIL PROTECTED] wrote:
- 
- this is a listing of a sample Maildir directory on my server. it has all 
- these files and directories that have to do with courier IMAP. while 
- they don't take much in some cases, sometimes they can take a couple of 
- percent from the overall quota. in addition there are two directories 
- (IMAP folders) .Junk (where all spam is forwarded) and .Trash (courier 
- IMAP/squirrelmail default trash +folder).
- 
- Doh!  Now I see why I'm off so much.  I forgot about .Trash not being 
- counted.  I'll have to revamp things to account for that.
- 
- Thanks!
- 
- Charles
- 
- 
- -- 
- Igor
- 
- 
- On Thu, Mar 10, 2005 at 07:26:10PM -0500, Charles Sprickman wrote:
- - On Wed, 9 Mar 2005 [EMAIL PROTECTED] wrote:
- -
- - this method is of course fast and dirty, but it might not work for
- - everyone out there.
- - 
- - the best aproach is to write a perl script that runs queries on a
- - database, gets path to a user's mailbox on the server, uses File::Find
- - to include only files in Maildir/cur and Maildir/new as well as
- - :subfolders:/cur and :subfolders:/new with the exception of trash
- - folders. that should give a much clearer picture. in addition it can
- - scale better.
- -
- - I have something similar, but it's not very generic, so I don't know if
- - anyone would be interested.  I've added a few fields to the vpopmail 
- table
- - to record when they first hit quota so I can get a report (quick php 
- page)
- - of who's over and for how long.
- -
- - To get usage, I'm just hitting the user's homedir with du, can you 
- comment
- - a bit on why I would need to count only the mail?  There shouldn't 
- really
- - be anything of note in the user's directory besides the mail...
- -
- - It is quite interesting to see how much the real usage (provided by 
- du)
- - can differ from the maildirsize info.
- -
- - Charles
- -
- - --
- - Igor
- - 
- - 
- - On Wed, Mar 09, 2005 at 08:08:10AM -0800, Charles J. Boening wrote:
- - - Here's what I do.  I don't have too many domains or users do it 
- doesn't
- - - take too long.
- - -
- - - du -sk /home/vpopmail/domains/*/*/Maildir  /tmp/maildirusage  du 
- -sk
- - - /home/vpopmail/domains/*/*/*/Maildir  /tmp/maildirusage  cat
- - - /tmp/maildirusage | sort -n | tail -n50 | sort -n -r | mail -s Mail
- - - User Quota your-email-here
- - -
- - -
- - - This only gets the top 50 users.  You can change it easily.  I don't
- - - think it would be very efficient for multiple domains.  In that 
- case you
- - - may want to break it up into a run for each domain.
- - -
- - - I'd definitely like to see something more efficient :)
- - -
- - -
- - - Charlie
- - -
- - -
- - -
- - - 
- - -
- - -  From: Tanmaya Anand [mailto:[EMAIL PROTECTED]
- - -  Sent: Tuesday, March 08, 2005 11:44 PM
- - -  To: vchkpw@inter7.com
- - -  Subject: [vchkpw] listing over-quota users
- - -
- - -
- - -
- - -  Hi
- - -
- - -  I need to list all over-quota users on the system for all
- - - domains.
- - -  Can anyone help me with some similiar perl / shell script to 
- get
- - - this done.
- - -
- - -  Regards,
- - -  Tanmaya
- - -
- - -
- - -
- - -   http://clients.rediff.com/signature/track_sig.asp
- - -
- - -
- - 
- 


Re: [vchkpw] pop3 error

2005-03-11 Thread Dan Delaney
I replaced checkpassword, and it worked pertectly for virtual domains, 
but was getting an auth error for real users.

i took a stab and looked at compile options and recompiled with:
./configure --enable-roaming-users=y --enable-valias=y --enable-passwd
[adding the /etc/passwd checking]
now it all works perfect.
thank you!
now to install qmailadmin and this chkusr 2.0 script and i should be in 
business
- Dan Delaney

Tom Collins wrote:
On Mar 11, 2005, at 12:32 AM, Dan D wrote:
#!/bin/sh
exec/usr/local/bin/softlimit -m 200 \
   /usr/local/bin/envdir /etc/relay-ctrl \
   /usr/local/bin/relay-ctrl-chdir \
   /usr/local/bin/tcpserver -v -R -H -l 0 0 110 \
   /var/qmail/bin/qmail-popup \
   idelaney.net \
   /bin/checkpassword \
   /usr/local/bin/relay-ctrl-allow \
   /home/vpopmail/bin/vchkpw \
   /var/qmail/bin/qmail-pop3d Maildir \
   21

I don't know how the call to relay-ctrl-allow should fit in, but the 
vchkpw line normally replaces the checkpassword line.

My guess is that has something to do with your problems.
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet: sniffter.com



Re: [vchkpw] Can't do setuid - solved = Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/

2005-03-11 Thread Ronald Wiplinger
Stefan Mühlemann wrote:
Hi,
on my machine this message occured because suidperl had the wrong 
rights. Just do a chmod 4755 on /usr/bin/suidperl.

Stefan,
thanks, it helped to get rid of this error, however
/var/log/qmail/send/current |tai64nlocal
shows for a test message:
2005-03-10 13:00:02.408870500 new msg 250946
2005-03-10 13:00:02.408876500 info msg 250946: bytes 1586 from
[EMAIL PROTECTED] qp 13909 uid 508
2005-03-10 13:00:02.527193500 starting delivery 17269: msg 250946 to
local [EMAIL PROTECTED]
2005-03-10 13:00:02.527196500 status: local 1/15 remote 0/20
2005-03-10 13:00:02.578995500 delivery 17269: success: did_1+0+0/
2005-03-10 13:00:02.579000500 status: local 0/15 remote 0/20
2005-03-10 13:00:02.579001500 end msg 250946
2005-03-10 13:00:04.425836500 new msg 250918
2005-03-10 13:00:04.425841500 info msg 250918: bytes 705 from
[EMAIL PROTECTED] qp 13955 uid 0
2005-03-10 13:00:04.503679500 starting delivery 17270: msg 250918 to
local [EMAIL PROTECTED]
2005-03-10 13:00:04.503685500 status: local 1/15 remote 0/20
2005-03-10 13:00:04.506624500 delivery 17270: failure:
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
2005-03-10 13:00:04.506629500 status: local 0/15 remote 0/20
2005-03-10 13:00:07.595104500 bounce msg 250918 qp 14019
2005-03-10 13:00:07.595109500 end msg 250918
2005-03-10 13:00:07.595602500 new msg 250850
2005-03-10 13:00:07.595604500 info msg 250850: bytes 1290 from  qp
14021 uid 507
2005-03-10 13:00:07.672906500 starting delivery 17271: msg 250850 to
local [EMAIL PROTECTED]
2005-03-10 13:00:07.672968500 status: local 1/15 remote 0/20
2005-03-10 13:00:07.673444500 new msg 250903
2005-03-10 13:00:07.673530500 info msg 250903: bytes 5549 from
[EMAIL PROTECTED] qp 14013 uid 0
2005-03-10 13:00:07.736387500 delivery 17271: failure:
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
2005-03-10 13:00:07.736393500 status: local 0/15 remote 0/20
2005-03-10 13:00:07.736394500 starting delivery 17272: msg 250903 to
local [EMAIL PROTECTED]
2005-03-10 13:00:07.736396500 status: local 1/15 remote 0/20
2005-03-10 13:00:10.856376500 bounce msg 250850 qp 14024
2005-03-10 13:00:10.856382500 end msg 250850
2005-03-10 13:00:10.857956500 new msg 250849
2005-03-10 13:00:10.857961500 info msg 250849: bytes 1780 from [EMAIL 
PROTECTED] qp
14026 uid 507
2005-03-10 13:00:10.937090500 starting delivery 17273: msg 250849 to
local [EMAIL PROTECTED]
2005-03-10 13:00:10.937096500 status: local 2/15 remote 0/20
2005-03-10 13:00:10.937097500 delivery 17272: failure:
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
2005-03-10 13:00:10.937099500 status: local 1/15 remote 0/20
2005-03-10 13:00:14.032390500 bounce msg 250903 qp 14029
2005-03-10 13:00:14.032396500 end msg 250903
2005-03-10 13:00:14.033228500 delivery 17273: failure:
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
2005-03-10 13:00:14.033232500 status: local 0/15 remote 0/20
2005-03-10 13:00:14.033233500 triple bounce: discarding bounce/250849
2005-03-10 13:00:14.033234500 end msg 250849
2005-03-10 13:00:14.033523500 new msg 250944
2005-03-10 13:00:14.033525500 info msg 250944: bytes 6134 from  qp
14033 uid 507
2005-03-10 13:00:14.092006500 starting delivery 17274: msg 250944 to
local [EMAIL PROTECTED]
2005-03-10 13:00:14.092010500 status: local 1/15 remote 0/20
2005-03-10 13:00:14.097660500 delivery 17274: failure:
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
2005-03-10 13:00:14.097666500 status: local 0/15 remote 0/20
2005-03-10 13:00:17.192809500 bounce msg 250944 qp 14036
2005-03-10 13:00:17.192814500 end msg 250944
2005-03-10 13:00:17.193292500 new msg 250849
2005-03-10 13:00:17.193294500 info msg 250849: bytes 6624 from [EMAIL 
PROTECTED] qp
14038 uid 507
2005-03-10 13:00:17.260665500 starting delivery 17275: msg 250849 to
local [EMAIL PROTECTED]
2005-03-10 13:00:17.260670500 status: local 1/15 remote 0/20
2005-03-10 13:00:17.263694500 delivery 17275: failure:
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
2005-03-10 13:00:17.263700500 status: local 0/15 remote 0/20
2005-03-10 13:00:17.263701500 triple bounce: discarding bounce/250849
2005-03-10 13:00:17.263703500 end msg 250849

Ronald Wiplinger schrieb:
(Sorry, I could not figure it out by myself)
It is my first time I try to install qmail and vpopmail on one 
system. I cannot send an email to this domain. How can I fix it?
I used Franks setup script, ...


VqAdmin web pages shows:
list of domains shows   xxx.com.tw
show users for this domain tells me:
ronald passwd No No 20971520SNo Tue Mar 1 
17:11:10 2005

detail shows:
Email address:  [EMAIL PROTECTED]

Sending an email to [EMAIL PROTECTED] will be returned with:
 553 sorry, that domain isn't in my list of allowed rcpthosts 
(#5.7.1)
550 [EMAIL PROTECTED]... User unknown

tail /var/log/qmail/smtpd/current |tai64nlocal shows:
2005-03-10 11:36:53.029059500 tcpserver: status: 1/100
2005-03-10 11:36:53.029064500 tcpserver: pid 12109 from 61.xx.xx.18
2005-03-10 11:36:53.029065500 tcpserver: ok 12109 0:60.248.111.172:25 

[vchkpw] mysql int and C's int limit

2005-03-11 Thread ceg ryan
I find the maximum quota I could set is 2GB. 
Exactly, the Mysql int and C's int limits at the same size.
Is it be possible to increase the limit ? 
could I simply change the quota's type to bigint

and the int to unsiged long int to solve it ?