[vchkpw] Can I ask about chkuser 2.0 patch here?

2009-01-05 Thread B. Cook

I am trying to build a new qmail server to replace our older one here..

We have the chkusr 2.0 (either 2.0.6 or 2.0.5) patch installed on our 
current qmail working fine.


The .qmail-defaults are not being recognized the correct way.

it never sees that all mail should be accepted, and instead returns the 
standard "no mailbox here by that name (chkuser)"


We have one or two domains that we use for internal things which is 
setup to accept all email sent to it.


This is the chkuser_settings.h without the STRING values..

grep ^#define work/qmail-1.03/chkuser_settings.h | egrep -v STRING
#define CHKUSER_ALWAYS_ON
#define CHKUSER_VPOPMAIL
#define CHKUSER_ENABLE_UIDGID
#define CHKUSER_DOMAIN_WANTED
#define CHKUSER_ENABLE_USERS
#define CHKUSER_ENABLE_ALIAS
#define CHKUSER_EZMLM_DASH '-'
#define CHKUSER_ENABLE_LOGGING
#define CHKUSER_LOG_VALID_RCPT
#define CHKUSER_MIN_DOMAIN_LEN 4
#define CHKUSER_LOG_VALID_SENDER
#define CHKUSER_RCPT_LIMIT_VARIABLE "CHKUSER_RCPTLIMIT"
#define CHKUSER_WRONGRCPT_LIMIT_VARIABLE "CHKUSER_WRONGRCPTLIMIT"
#define CHKUSER_MBXQUOTA_VARIABLE "CHKUSER_MBXQUOTA"
#define CHKUSER_ERROR_DELAY 1
#define CHKUSER_RCPT_DELAY_ANYERROR
#define CHKUSER_SENDER_DELAY_ANYERROR
#define CHKUSER_ENABLE_ALIAS_DEFAULT
#define CHKUSER_ENABLE_USERS_EXTENSIONS
#define CHKUSER_ENABLE_EZMLM_LISTS
#define CHKUSER_USERS_DASH '-'
#define CHKUSER_DB_CLEANUP
#define CHKUSER_ERROR_DELAY_INCREASE 1
#define CHKUSER_ENABLE_DOUBLEBOUNCE_VARIABLE "CHKUSER_DOUBLEBOUNCE"


and this is how I am starting qmail-smtpd..

case ${qmail_smtp_enable} in
[Yy][Ee][Ss])
# Start the qmail smtp daemon
env - PATH="/var/qmail/bin:/usr/local/bin" \
/usr/local/bin/tcpserver -H -R -c255 -x 
/usr/local/vpopmail/etc/tcp.smtp.cdb \

-u89 -g89 0 8125 /var/qmail/bin/qmail-smtpd \
2>&1 | splogger qsmtpd &

echo -n " qmail-smtp"
;;
esac


This is the example domain that I am working with..

name:   postmaster
passwd: $1$mTA57gKn$6DB52U9PX/ksXYWGT3PkE/
clear passwd: UFG7XSYp
comment/gecos: Postmaster
uid:0
gid:0
flags:  0
gecos: Postmaster
limits: No user limits set.
dir:   /usr/local/vpopmail/domains/test.domain/postmaster
quota: 104857600S
usage: 0%
last auth: Tue Nov 25 17:41:48 2008
last auth ip: imap


and here is an example session:

r...@chlorine [/usr/local/vpopmail/domains/test.domain]# 121 > ls -al
total 14
drwx--4 vpopmail  vchkpw   512 Jan  5 15:07 .
drwx--  133 vpopmail  vchkpw  3584 Dec  1 13:15 ..
-rw---1 vpopmail  vchkpw60 Jan  5 15:07 .qmail-default
-rw---1 vpopmail  vchkpw   283 Nov 27 23:40 .qmailadmin-limits
drwx--3 vpopmail  vchkpw   512 Nov 25 15:58 bcook
drwx--3 vpopmail  vchkpw   512 Nov  9 18:59 postmaster

r...@chlorine [/usr/local/vpopmail/domains/test.domain]# 122 > telnet 
localhost 8125

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.test.domain ESMTP
helo blah
250 mail.test.domain
mail from:
250 ok
rcpt to:
550 5.1.1 sorry, no mailbox here by that name (chkuser)
quit
221 mail.test.domain
Connection closed by foreign host.

r...@chlorine [/usr/local/vpopmail/domains/test.domain]# 123 > cat 
.qmail-default

| /usr/local/vpopmail/bin/vdelivermail '' bc...@test.domain


Everything else is working just fine..

Clues or suggestions would be greatly appreciated..

For what it is worth..

This is a FreeBSD 7.0-p7 amd64 (no zfs) the only patch this has in it is 
the LOCALTIME_PATCH; I have tried it without the localtime patch and it 
does not make a difference.



!DSPAM:49626d7132675998317728!



[vchkpw] domain quotas..

2003-10-23 Thread B. Cook
Hello,

I've been trying to figure out how to get domain quota's working.  I'm
wondering if anyone else does them.

Do I need to zero out the users quota in order for domain quota's to
work?

If there are docs and I'm missing them somene please let me know.

Thanks in advance.

-- 
Brian
Adriance Memorial Library



Re: [vchkpw] R: Re: [vchkpw] adduser processing times CDB

2007-07-19 Thread B. Cook

Can you set learn password after an account has been created?

Or can you only do it at creation time?

I have one vpopmail installation that I didn't set the clear password 
option and it's been years now and I'd love to set all those accounts to 
learn.


We are going to be migrating from courier to dovecot and want to use 
imapsync to move over all the folders and settings from one to the other..


Remo Mattei wrote, On 7/19/07 12:17 AM:
there is a nice option in vpopmail called learn-password .. so if users are 
using pop3 it will set the pass that they have set on their client and put it on 
the server (mysql) in this case which I like it a lot.. users will not know 
about it and it will set password for their current one.


Remo

Quey wrote:

Rick/Remo,

I agree that mysql is now the way to go.   
I recompiled in the early hours of this morning for mysql, set up alooping perl script to randomly generate user and vadduser them , created example.com , I had 15000 in minutes, I let it go to 90K :) added another, it instantly added, if I did that with CDB, I'd be waiting an hour I think.


I've used vconvert to move the live domain into mysql and after 12 hours, all 
is good, no impact noticed on concurrent auth requests, thats the only thing I 
am now worried about, don't want to setup extra hardware and sql if i can avoid 
it,  I might look for a pop3 stress tester later tonight..

(Rick, it's a webmail client, which is also why I am being naughty and top posting 
 because it screws things up sometimes, but not always which has puzzled me)

  



  


!DSPAM:469ee50c323321607328526!

  


--
B. Cook
Network Analyst
Poughkeepsie City School District
Mobile: 845.264.5827 | Desk: 845.451.4791