Re: [vchkpw] customizing mysql table

2003-11-12 Thread jean
 I would think that recoding a PHP script would be easier to do than 
 editing source files for vpopmail, as with the next upgrade your 
 vpopmail will overwrite the changes you made. So i would personally 
 suggest, change the php script.

I guess it might be the only way.
I didnt want to do it at first because its a complex system with over 20mb of php 
files (not only for webmail).

Anyway, i'd like to make a suggestion for the vpopmail developers: to user some kind 
of mysql.conf table where the user can customize the layout. I've seen this in some 
other patch, something like:
database: vpopmail
table: users
user_column: id
pass_column: password

thanks,

Jw




[vchkpw] vpopmail with SA

2004-02-05 Thread Jean
Hi,

I just installed SpamAssassin in my vpopmail installation, with maildrop.
The thing is that the sample script (provided everywhere, including SA
distribution), uses the following command lines to get the users home dir:

VHOME=`/var/vpopmail/pop/bin/vuserinfo -d [EMAIL PROTECTED]

First, the path is not the default vpopmail installation (/home/vpopmail),
but I can live with that :P

The problem is that the [EMAIL PROTECTED] variable provided by .qmail provides the
information in the form of virtualhost-virtual_user@domain.
So, for my [EMAIL PROTECTED] it provides:
[EMAIL PROTECTED]

I'm using pretty much the default settings for everything, and i guess this
is the normal behaviour of qmail. Just wondering if i'm missing something
obvious or anyone has got around that. I am temporary using my full email on
the 'vuserinfo -d' command instead of the variables, but I didnt want to go
that way for each user.

In case it matters, i'm using the latest stable version (vpopmail 5.4.0)
with netqmail-1.04, and the latest SA (2.63).

thanks in advance!

Jw.



Re: [vchkpw] vpopmail with SA

2004-02-05 Thread Jean
From: Jeremy Kitchen [EMAIL PROTECTED]

 $EXT should only give you 'systest'

 [EMAIL PROTECTED]:~$ cat .qmail-test
 |echo $EXT  testfile
 [EMAIL PROTECTED]:~$ echo hi | mailsubj test kitchen-test | qmail-inject
 [EMAIL PROTECTED]:~$ cat testfile
 test

Hm, that's right, I just changed it back to [EMAIL PROTECTED] and it works again. I
must have tried something really stupid the first time I tried. Sorry for
the unnecessary thread.

thanks,

Jw.



[vchkpw] virtual users

2003-10-17 Thread jean wainer
Is it possible to user vpopmail for managing ONLY virtual users for my
domain?
I dont want to use virtual domains, all the 50k users will be on the same
domain, and I dont want to make them type anything but their username.
My intentions is to make a webmail+pop system for 50k users.

Thanks in advance,

Jw




Re: [vchkpw] virtual users

2003-10-17 Thread jean wainer
Thanks for all your help, and since you brought up that webmail subject, I
would like to ask your opinion about sqwebmail and other webmails.
I'm thinking about using sqwebmail for 3 reasons: As I understand, it reads
mail directly from the maildir, so I dont need to install a pop/imap server
and access to file should be faster.
Plus, i saw that i can customize it and probably have a better integration
with vpopmail for my client to manage the accounts.

Sorry if i'm talking bs here, i'm about to install qmail/vpopmail/sqwebmail
in a few minutes and haven't messed with inter7 tools yet.. :)

thanks

Jw

- Original Message - 
From: Richard Rawlings :: Pulse8 :: [EMAIL PROTECTED]
To: 'jean wainer' [EMAIL PROTECTED]
Sent: Friday, October 17, 2003 12:25 PM
Subject: RE: [vchkpw] virtual users


 I didn't mention...that config is for sqwebmail. If you choose to use it
 then it supports what you want to do. I prefer the 'feel' of IMP though.

 -Original Message-
 From: jean wainer [mailto:[EMAIL PROTECTED]
 Sent: 17 October 2003 16:00
 To: [EMAIL PROTECTED]
 Subject: [vchkpw] virtual users

 Is it possible to user vpopmail for managing ONLY virtual users for my
 domain?
 I dont want to use virtual domains, all the 50k users will be on the
 same
 domain, and I dont want to make them type anything but their username.
 My intentions is to make a webmail+pop system for 50k users.

 Thanks in advance,

 Jw









Re: [vchkpw] virtual users

2003-10-17 Thread jean wainer
 I used sqwebmail for a few years, always hoping it would mature into a
 decent package.  The technical abilities of sqwebmail are great, but the
 interface is ugly and difficult for my end-users.  I recently bit the
 bullet, installed an IMAP server and went with SquirrelMail.  Happier
users,
 happier sysadmin.

Isn't sqwebmail interface customizable? What about squirrelmail? I use it at
home, but haven't messed with interface yet.

And for being written in PHP, is squirrelmail more lightweight than
sqwebmail (which is in perl, right?)?

What i'm about to build is a public 50k+ user webmail system, and the
interface must be customized.
I'd hate to have to write a webmail from scratch =[

Thanks,

Jw.





[vchkpw] vpopmail+courier IMAP

2003-10-29 Thread jean wainer
I have vpopmail installed, as well as qmailadmin and sqwebmail and
everything seems to be OK.
When I try to install courier-imap I get the following error after make:

Compiling modauthvchkpw.c
gcc  -I/home/vpopmail/include -g -O2 -Wall -I.. -I./..   -o authvchkpw
modauthv
chkpw.o libauthmod.a libauth.a ../numlib/libnumlib.a ../md5/libmd5.a
../sha1/lib
sha1.a -L/home/vpopmail/lib -lvpopmail -lm -lcrypt
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/../../../../i386-slackware-linux
/bin
/ld: cannot find -lvpopmail
collect2: ld returned 1 exit status
make[2]: *** [authvchkpw] Error 1
make[2]: Leaving directory `/usr/src/courier-imap-2.1.2/authlib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/courier-imap-2.1.2/authlib'
make: *** [all-recursive] Error 1
[EMAIL PROTECTED]:/usr/src/courier-imap-2.1.2$

as the document say, courier should automatically detect if vpopmail is
present and install authvchkpw module for authentication, so I didnt supply
any arguments in the ./configure command.
vpopmail is installed in the default directory of /home/vpopmail, and i'm
running slackware 9.0.

I'd be grateful if somebody could point me where I've gone wrong.

TIA,

Jw





[vchkpw] customizing mysql table

2003-11-12 Thread jean wainer
Hi,

I have a existing qmail installation (with custom webmail in php) which was
already bought with some generic japanese mysql-auth patch in a undocumented
setup.

I'm currently rebuilding the server, and looking to use vpopmail instead of
the old setup.
I want to migrate the old database to the new server (using vpopmail), and
my question is:
Is it possible to easily customize (change table name,user column name, etc)
the mysql table which vpopmail will use to authenticate?
Do I have to change anything else besides vmysql.h?

thanks in advance,

Jw





[vchkpw] passwords

2004-05-24 Thread Jean Wainer
Hi,

My boss recently noticed something I didnt: vpopmail (noticed on qmailadmin and 
squirrelmail using courier-imap) accepts passwords with garbage at the end.

Lets say, my password is secret.
If I type secretJSDSDALSDKJFLASF, qmailadmin will accept it as a valid password. It 
doesnt accept with garbage inside the password, or before.

How can I correct that? Is this a known issue? I've tested with vpopmail 5.4.3 + 
qmailadmin 1.2.0 AND also with vpopmail 4.9.10 + qmailadmin 0.45 (our museum 
servers), both have the save problem.

I appreciate any help..

--Jw.


Re: [vchkpw] Re: passwords

2004-05-24 Thread Jean Wainer
 Please create a test account with password 'password', test this
 account and if it is authenticated with garbage at the end please
 post the encrypted password from 'vpasswd' of this account.

It didnt.


 I assume your installation does not use MD5 routines in 'crypt()'
 function, and therefore your passwords are limited to a maximum of 8
 characters. All passwords with exactly 8 characters (so NOT 'secret'
 as this are only 6) than will be accepted if the first 8 characters of
 input match. This is due to the fact 'crypt()', using only DES, only
 takes the first 8 characters. A MD5-enabled 'crypt()' will not suffer
 this limitations
Very interesting.
It seems that the problem occured only with the migrated domains from other servers 
(the museum ones). Accounts created in the new server, or accounts which had its 
password changed in the new server does not have this problem.

 Maybe the 'museum' might be the problem: if their libcrypt is too old
 it might be it's not yet aware of MD5, who knows.

I guess that was it.

Thanks a lot, Peter!

Is it possible to convert all old passwords from the old format (MD5-disabled 
crypt()) to the new format?

--Jw.


Re: [vchkpw] Re: passwords

2004-05-25 Thread Jean Wainer
  Is it possible to convert all old passwords from the old format
  (MD5-disabled crypt()) to the new format?
 
 If you have plain passwords enabled: yes. (..)
Unfortunately this isn't my case. :(
I guess it's not possible then, right?

thanks,

--Jw.


 If the probability of success is not almost one, then it is damn near
 zero.


Re: [vchkpw] Change passwd howto

2004-05-31 Thread Jean Wainer
On Sat, 29 May 2004 00:32:58 +0200
Patrick Donker [EMAIL PROTECTED] wrote:

 Guys,
 
 I use qmail + vpopmail + courier-imapd + squirrelmail.
 My question is; what would be the easiest way to inplement a 
 change-password option in Squirrel? I have found a plugin, but that is 
 based on pam, which I dont use. I need something that uses vchkpw. My 
 guess is that somebody on this list has solved this already before, so, 
 why not ask ;) ?

There's a vpopmail plugin for squirrelmail. The only catch is that you have to run 
apache as vpopmail user.

--Jw.


Re: [vchkpw] Change passwd howto

2004-05-31 Thread Jean Wainer
On Mon, 31 May 2004 14:49:17 +0200
Patrick Donker [EMAIL PROTECTED] wrote:

 There's a vpopmail plugin for squirrelmail. The only catch is that you have to 
 run apache as vpopmail user.
 
 --Jw.

 Really? Is it on the squirrel site? Looked there already, didnt see it..

http://www.squirrelmail.org/plugin_view.php?id=103


--Jw.


Re: [vchkpw] Change passwd howto

2004-05-31 Thread Jean Wainer
On Mon, 31 May 2004 09:30:24 -0400
X-Istence [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Jean Wainer wrote:
  snip
 
  There's a vpopmail plugin for squirrelmail. The only catch is that
 you have to run apache as vpopmail user.
 
 Thus giving anyone that has web access or is allowed to run PHP scripts
 on your server the allowance to play with vpopmail as much as they want.
 If this is just a webmail based server i do think it is okay, but if i
 were you i would still be worried.
We are using it on one of our webmail servers, and since we have a lot of anti-spam 
and account management features which depend on the vpopmail user to be configured 
within the webmail, we have choosen to do that..

 
  --Jw.
 
 Jan-Willem Regeer
 X-Istence

So i'm not the only jw here, eh?

Jean C. S. Wainer

--Jw.


[vchkpw] [OT?] dovecot-imap

2004-06-14 Thread Jean Wainer
Has anyone used dovecot-imap with vpopmail?

I'm trying it on my home setup, with vpopmail 5.4.3, Maildir mailboxes, and 
squirrelmail.

Has anyone had any experiencies with dovecot imap on such setup? Would you share them? 
:)

Thanks,

--Jw.


[vchkpw] [OT?] Courier-imap compile without pop3d

2004-06-18 Thread Jean Wainer
I dont know if this is the right list to ask..

But is it possible to compile courier-imap without support for tls, ssl and pop3? I 
just need it to interface with Squirrelmail on the local machine..

thanks in advance,

--Jw.


Re: [vchkpw] Vpopmail 5.4.5 released

2004-06-28 Thread Jean Wainer
On Fri, 25 Jun 2004 18:17:53 -0700
Tom Collins [EMAIL PROTECTED] wrote:

 http://vpopmail.sf.net
 
 Release Notes:
 
 There are significant changes in here for MySQL and Postgres backends.
 
 If you've had errors stating couldn't create table/database because it
 already exists with MySQL, you should definitely upgrade.

Well, I was having such errors with 5.4.3, and I did upgrade. It seems to be working 
fine, now.
I noticed that this error occured only with the server under heavy load (over 8, 10). 
Since it is fixed now in 5.4.5, I have a question out of curiosity: What was the bug 
that was causing this error?

Thanks,

Jean


Re: [vchkpw] Vpopmail 5.4.5 released

2004-06-28 Thread Jean Wainer
On Mon, 28 Jun 2004 21:54:55 +0700
François Wautier [EMAIL PROTECTED] wrote:

 Hi,
 
 Since I submitted that patch.. I guess I should answer.
 
 The code in vpopmail was first trying to connect to the server for a given 
 database. If that was failing, it would try the server only and if that 
 succeeded, it was considering that the server was fine but that the DB was 
 not created.
 
 Apparently, under some load, it could happen that the first request would 
 fail, but the second would be accepted... 
 
 All the patch does is make the code connect to the server first and then use 
 the Database. If the first call fails, the delivery fails (temporary failure) 
 and the message is delivered later.
 
 Cheers,
   François


Thanks for the explanation, François :)

I was having this problem, not only when delivering messages, but specially when 
checking POP3 mail (vchkpw). Will that be fixed too? Or am I going to get a different 
error?
Also, using Antonio Nati's qmail-smtpd-chkusr patch (as in 
http://www.interazioni.it/qmail/qmail-smtpd-chkusr-10.html), what will be the effect 
with the new corrected mysql patch? I was getting some no such user errors before...

thanks!

Jean


Re: [vchkpw] Vpopmail 5.4.5 released

2004-06-29 Thread Jean Wainer
On Tue, 29 Jun 2004 08:34:30 +0700
François Wautier [EMAIL PROTECTED] wrote:

 Hi,
 
 The patch applies does not solve the underlying problem, the fact that you 
 cannot connect to the DB server. It just makes sure the system behaves  properly 
 even when one cannot access the DB.

I see. You said, in your previous message:
The code in vpopmail was first trying to connect to the server for a given database. 
If that was failing, it would try the server only and if that succeeded, it was 
considering that the server was fine but that the DB was not created.

So, wouldnt it be safer to consider the second try, if it succeeds? Sorry, I dont 
understand why consider that the database was not created only because it took 2 tries 
to connect to the database.

 In the case of email delivery, proper behaviour means that the message is put 
 back into the queue for later delivery.
Right.

 In other cases, proper behaviour may means that the system complains it does 
 not know your user. I do not know.
Yes, that's actually whats happening. Specially for Outlook users who keep getting a 
request for their password (using Sylpheed, in my case, I can see the database does 
not exist error).

 Now that I think about it, that could be the problem I am having. When using 
 IMP-Courier imap-vpopmail  some of my users need to login many times. It 
 could be that, because of the problem, authentication fails and they have to 
 loggin again.
Yes, it happes with me using courier + squirrelmail too.


thanks!

--Jw.
 
 Best Regards,
   François
 
 
 
 
 l
  On Mon, 28 Jun 2004 21:54:55 +0700
 
  François Wautier [EMAIL PROTECTED] wrote:
   Hi,
  
   Since I submitted that patch.. I guess I should answer.
  
   The code in vpopmail was first trying to connect to the server for a
   given database. If that was failing, it would try the server only and if
   that succeeded, it was considering that the server was fine but that the
   DB was not created.
  
   Apparently, under some load, it could happen that the first request would
   fail, but the second would be accepted...
  
   All the patch does is make the code connect to the server first and then
   use the Database. If the first call fails, the delivery fails (temporary
   failure) and the message is delivered later.
  
   Cheers,
 François
 
  Thanks for the explanation, François :)
 
  I was having this problem, not only when delivering messages, but specially
  when checking POP3 mail (vchkpw). Will that be fixed too? Or am I going to
  get a different error? Also, using Antonio Nati's qmail-smtpd-chkusr patch
  (as in http://www.interazioni.it/qmail/qmail-smtpd-chkusr-10.html), what
  will be the effect with the new corrected mysql patch? I was getting some
  no such user errors before...
 
  thanks!
 
  Jean
 


Re: [vchkpw] Migrating an entire domain to a different server.

2004-07-23 Thread Jean Wainer
Hi Michael,

On Fri, 23 Jul 2004 10:33:31 +1000
Michael Bellears [EMAIL PROTECTED] wrote:

 Running vpopmail version: 5.3.19, with MySQL auth (I know - Have to
 upgrade!), and we have one client who wishes to move there domain to a
 new server - The domain contains about 400 accounts, and I was wondering
 the best way to migrate the entire domain?
 
 - Add clients_domain to new server
Right.
 - Copy /home/vpopmail/domains/clients_domain/* to new server
Ok.
 - Copy MySQL entries for domain to new server? (This is the step I am
 unsure about!)
Well, you can do that. Or you convert the user base to CDB on the original server 
(~vpopmail/bin/vconvert -m -c $domain), copy the CDB file to the other server (inside 
the domain dir), then run vconvert on the new server (~vpopmail/bin/vconvert -c -m 
$domain). I prefer this way.. :)

Jean
 
 Thanks in advance.
 
 Regards,
 MB
 


Re: [vchkpw] Migrating an entire domain to a different server.

2004-07-26 Thread Jean Wainer
On Sat, 24 Jul 2004 07:59:30 +1000
Michael Bellears [EMAIL PROTECTED] wrote:

 Hi Jean,
 
 Jean Wainer wrote:
  - Copy MySQL entries for domain to new server? (This is the step I am
  unsure about!)
  Well, you can do that. Or you convert the user base to CDB on
  the original server (~vpopmail/bin/vconvert -m -c $domain),
  copy the CDB file to the other server (inside the domain
  dir), then run vconvert on the new server
  (~vpopmail/bin/vconvert -c -m $domain). I prefer this way.. :)
  
 
 Ahh - Thanks!
 
 Any gotchas moving the 5.3.19 - Current Stable with vconvert?

I dont think so. Last time I did that, I moved thousands of domains from vpopmail 4.x 
to 5.4.5 :)


Jean

 
 Regards,
 MB
 


Re: [vchkpw] How to Split a domain into 2 machines?

2004-08-23 Thread Jean Wainer
Just out of curiosity, Rick..


On Mon, 23 Aug 2004 15:41:09 -0500
Rick Romero [EMAIL PROTECTED] wrote:

 On Mon, 2004-08-23 at 15:18, Bruno Negrão wrote:
  Hi Rick,
  
Rick,  are you currently using this?
  
   For a whole domain.  Not per user.
  I can't get you, what you mean for a whole domain, not per user? \
 
 :)  I use the 2nd qmail install for forwarding a whole domain, not an
 individual user account.

Why not just using smtproutes?

--Jw.


[vchkpw] chkuser in my secondary MX

2007-08-28 Thread Jean Carlos Oliveira Guandalini
hello,

I need run chkuser in my secondary MX server.

I followed the following steps:

Install, qmail with chkuser patch.
Install vpopmail
Copy .qmail-* files from my Master MX to secondary MX.
add domain to rcpthosts and virtualdomains files in /var/qmail/control

Run qmail normaly, but it does not function, all rcpt are accepted by
chkuser.

so, added /var/qmail/users/assign file type:
+domain.com-:domain.com:89:89:/home/vpopmail/domains/domain.com:-::

and now, e-mails delivery local and not in my primary server, i add in
smtproutes:
:servermx1.domain.com

but it does not function.


any idea?


Thanks


PS: Sorry for my english

-- 
Jean Carlos O. Guandalini
VisãoNet Tecnologia e Telecomunicações
0800-643-5025



Re: [vchkpw] chkuser in my secondary MX

2007-08-29 Thread Jean Carlos Oliveira Guandalini
Thanks Tom, you save my life! :D

Tom Collins escreveu:
 On Aug 28, 2007, at 4:33 AM, Jean Carlos Oliveira Guandalini wrote:
 I need run chkuser in my secondary MX server.

 I followed the following steps:

 snip

 but it does not function.

 On the backup MX, the domain should be in rcpthosts (or morercpthosts
 which builds morercpthosts.cdb) and users/assign (which builds to
 users/cdb).  It should NOT be in virtualdomains and it does not need
 to be in smtproutes if your primary server has a lower MX record than
 the backup server.

 If you're using the CDB-backend, you'll probably want to copy the
 whole ~vpopmail/domains over, excluding Maildir directories, so
 chkuser will work.  And you'll probably want to rsync it every so
 often so new users and aliases go across.  I rsync the whole
 ~vpopmail/domains directory each night so I have an off-site backup of
 email as well.

 Here's what I rsync every 5 minutes, script runs on primary mx, and
 I've added the primary mx's ssh key to mx2's authorized_keys file:

 rsync -azl --numeric-ids --exclude=Maildir --delete --exclude=lastauth \
   /home/vpopmail/domains/ [EMAIL PROTECTED]:/home/vpopmail/domains/
 rsync -azl --numeric-ids /var/qmail/users
 [EMAIL PROTECTED]:/var/qmail/
 rsync -azl --numeric-ids --exclude=*.lock \
   /var/qmail/control/*hosts* /var/qmail/control/smtproutes \
   /var/qmail/control/badmail* [EMAIL PROTECTED]:/var/qmail/control/

 I guess if I was backing up Maildirs as well, throughout the day, I
 could failover to that server should the primary die a horrible
 death.  I'd have to copy the virtualdomains file, stop the rsync, and
 update DNS so the backup had the lowest MX record.

 -- 
 Tom Collins  -  [EMAIL PROTECTED]
 Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
 QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/






-- 
Jean Carlos O. Guandalini
VisãoNet Tecnologia e Telecomunicações
0800-643-5025