[vchkpw] vpasswd format

2002-09-05 Thread Giorgio Zarrelli

Hi,

I would like to understand the format of vpasswd file, specially regarding 
those codes used to allow and deny the access to some services like pop, 
disable account and so on.

Is there some documentation about it? I didn't find anything in vpopmail docs.

Ciao

Giorgio



[vchkpw] vpop RFC

2002-09-05 Thread Matthias Henze

hi,

i've some new ideas. i've decided to post them here for disscussion bevore 
i start to code.

my startigpoint was that it would be nice to have really everyting in a 
database without the need of any binary C program creating the 
databaseentries. what i do not want (because i siply don't like it) is:

- a C cgi
- a webserver running at the vpop userid

one major thing to get this is allready done: valias. the next should be 
domains and accounts. this could be done by vdelivermail. when vdelivermail 
ever comes over a domain or an account that exists in the database but the 
directories are missing it simply creates them - qmail style - by calling 
vadddomain and/or vadduser. vadddomain and vadduser need a new commandline 
option. this option checks the maildir structure and corrects 
respectively creates it, if necessary. all this could be done with out 
breaking any existing fuctionality.

autorespond could easily be modified not to use flat files but a database. 
as said, valias, needed for autoresponders allready exists. perhaps 
autorespond should be comletely rewritten an get as vautorespond part of 
vpopmail.

my problem is, that i've only rudimentary knowledge of ezmlm. i've no idea 
how to place all necessary information in a database nor how to create 
needed directories on the fly. i know, that everything is driven by .qmail 
files and could be easily done by valias but ezmlm binaries trust on a 
certain directorystructure afaik. any suggestions?

best regards

Matthias Henze[EMAIL PROTECTED]

Use PGP!! http://www.mhcsoftware.de/MatthiasHenze.asc
- - - - - - - - - - - - - - - - - - - - - - - - - - -
MHC SoftWare GmbH  voice: +49-(0)9533-92006-0
Fichtera 17  fax: +49-(0)9533-92006-6
96274 Itzgrund/Germanye-Mail: [EMAIL PROTECTED]
- - - - - - - - - - - - - - - - - - - - - - - - - - -



msg08750/pgp0.pgp
Description: PGP signature


[vchkpw] maildirsize problem

2002-09-05 Thread Jens Gassmann

Hi,

i have run qmail and vpopmail for a long time along without the 
maildirsizepatch now the mailboxes says full and accept not mails. How 
can i simple update the maildirsize to the new current size? Can i only 
delete the maildirsize or what must i do?


Greetz,

Jens Gassmann






[vchkpw] quotas exceeded problem

2002-09-05 Thread Paul James

Hi,
I am noticing a problem with quota's. For instance, vqadmin shows that I
have 1000 for quota. However, there are only about 200 messages from
lists such as this one. 

On another email account I have, I deleted all mesgs, waited for about
20 to show up from email lists, tried to mv the messages into folders
and get the '[ALERT] You exceeded your mail quota'.

The setup for vpopmail was:


--enable-defaultquota=200

I had thought that meant a 'default' which could be overridden on a
per-user basis.

How can I fix this up.

Thanks for your help.

Paul




Re: [vchkpw] vpasswd format

2002-09-05 Thread Ken Jones

On Thursday 05 September 2002 02:30 am, Giorgio Zarrelli wrote:
 Hi,

 I would like to understand the format of vpasswd file, specially regarding
 those codes used to allow and deny the access to some services like pop,
 disable account and so on.

 Is there some documentation about it? I didn't find anything in vpopmail
 docs.

 Ciao

 Giorgio

Basicly it is the same structure as /etc/passwd entries, 
except the uid is not really used and the gid field uses
the following bit flags.

from vpopmail.h
/* gid flags */
#define NO_PASSWD_CHNG 0x01
#define NO_POP 0x02
#define NO_WEBMAIL 0x04
#define NO_IMAP0x08
#define BOUNCE_MAIL0x10
#define NO_RELAY   0x20
#define NO_DIALUP  0x40
#define V_USER0   0x080
#define V_USER1   0x100
#define V_USER2   0x200
#define V_USER3   0x400
#define NO_SMTP   0x800
#define QA_ADMIN 0x1000

In addition the pw_shell field contains the quota
and if you have enabled clear passwords, it follows the pw_shell field

It's all in the source code
No Secrets

Ken Jones



[vchkpw] SqWebmail, Qmailadmin not authenticating

2002-09-05 Thread Alan Murrell

Hello,

Last week I setup Qmail + Vpopmail + Courier-IMAP +
Sqwebmail + Qmailadmin (and ucspi-tcp, of course!) for
a Customer (using vchkpw to authenticate).

Initially installed everything using Qinstall, but had
some problems with Vpopmail not authenticating.  On
someone's advice, I recompiled/installed Vpopmail and
Courier-IMAP with the following options:

Vpopmail:
./configure --enable-roaming-users=y
--enable-clear-passwd=y --enable-logging=e

Courier-IMAP:
./configure --disable-auto-rename-sent
--without-authpwd --without-autoshadow
--without-authpam --without-auth-userdb --
without-authmysql --without-authpgsql --without-ldap

Everything was authenticating properly afterwards. 
However, when I go to Sqwebmail (still compiled from
the Qinstall), I am unable to log in as any of the
virtual users: I get authentication failure.  I am
using the full email address as the username.

It's the same thing with Qmailadmin: I try to log in
as the postmaster for any of the virtual domains, and
get authentication failure.  On the same person's
advice, I tried recompiling Qmailadmin with almost the
same options as Courier-IMAP (i.e., turning off all
authentication methods except vchkpw), but that did
not help.  I also did add the '--htmldir',
'--html-libdir', and '--cgibindir' options to point to
the directories I was installing them to (I setup a
virtual host in my websites directory)

I am not sure what I have done wrong here, or why it
is not authenticating.  Maybe someone here does, or
has some suggestions?

TIA,


=
--
Alan Murrell [EMAIL PROTECTED]

__ 
Post your free ad now! http://personals.yahoo.ca



RE: [vchkpw] vpopmail ODBC port?

2002-09-05 Thread Tren Blackburn

Why?  If you use MySQL for the backend just use the MyODBC module.  It's
free.

Regards,

Tren

 -Original Message-
 From: Johan Kuuse [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, September 04, 2002 4:21 PM
 To: [EMAIL PROTECTED]
 Subject: [vchkpw] vpopmail ODBC port?
 
 
 Hi,
 
 Has anyone been working on an ODBC port for vpopmail?
 
 Best Regards,
 Johan Kuuse
 [EMAIL PROTECTED]
 
 
 
 




RE: [vchkpw] maildirsize problem

2002-09-05 Thread Tren Blackburn

Did you patch your pop3 server to handle Maildir++ style quotas?  If not
do that as that's the real solution to your problem.  Read the
README.quotas in the vpopmail distribution for the answer to your
question.

Regards,

Tren

 -Original Message-
 From: Jens Gassmann [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, September 05, 2002 3:58 AM
 To: [EMAIL PROTECTED]
 Subject: [vchkpw] maildirsize problem
 
 
 Hi,
 
 i have run qmail and vpopmail for a long time along without the 
 maildirsizepatch now the mailboxes says full and accept not 
 mails. How 
 can i simple update the maildirsize to the new current size? 
 Can i only 
 delete the maildirsize or what must i do?
 
 
 Greetz,
 
 Jens Gassmann
 
 
 
 




Re: [vchkpw] vpopmail ODBC port?

2002-09-05 Thread Johan Kuuse

Why I ask:
I need to solve the following scenario:

I have all mail accounts in an Mimer database, accessing the data using the
unixODBC driver.
Other applications access this information as well.
I don't know how to configure vpopmail/MySQL/MyODBC to access data
physically stored in the Mimer database.
Anyone who knows?

Best Regards
Johan Kuuse
[EMAIL PROTECTED]


- Original Message -
From: Tren Blackburn [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 05, 2002 9:30 AM
Subject: RE: [vchkpw] vpopmail ODBC port?


Why?  If you use MySQL for the backend just use the MyODBC module.  It's
free.

Regards,

Tren

 -Original Message-
 From: Johan Kuuse [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 04, 2002 4:21 PM
 To: [EMAIL PROTECTED]
 Subject: [vchkpw] vpopmail ODBC port?


 Hi,

 Has anyone been working on an ODBC port for vpopmail?

 Best Regards,
 Johan Kuuse
 [EMAIL PROTECTED]











Re: [vchkpw] Using tcpserver/mysql

2002-09-05 Thread Matt Simerson

Paul,

You are exactly correct.  Even when using my patch, vpopmail continues 
to update the tcp.smtp.cdb file. There's one reason for that. The first 
is that my suggestion for adding a --dont-update-tcprulesfile=true was 
never implemented.  Granted, it would only benefit a few users (really 
big ones like me) and it really doesn't make that much difference.

So, in short you are right.  You can do as I do and manually disable 
the routines in the vpopmail code that writes out the file, or you can 
just ignore it. If you're really clever, you can code in a 
--don't-update-tcprulesfile function but to save some time, you might 
want to search through the archives of this list as I've already been 
down that road.

Matt

On Tuesday, September 3, 2002, at 12:08  PM, Paul Fries wrote:

 Greetings,

 I am trying to accomplish using vpopmail with the tcpserver/mysql 
 patch.

 Based on the documentation found on step 13 of
 http://www.inter7.com/vpopmail/INSTALL:

 --
 For sites using the mysql module and --enable-roaming-users=y it is
 highly suggested to use Matt Simersons tcpserver-mysql patch. This
 removes the need for vpopmail to compile a tcp.smtp.cdb file for each
 pop authentication.
 --

 I have implemented the patch, and verified that tcpserver is reading my
 /var/qmail/control/sql file properly (if I chmod 000 this file,
 tcpserver complains about it on startup). Also with
 --enable-roaming-users=y in vpopmail, vchkpw properly writes the
 authenticated IP addresses/timestamp to the vpopmail.relay table in
 MySQL.

 My problem is this:

 Even though it is properly writing the IPs to the vpopmail.relay table,
 it is also writing them into the tcp.smtp.cdb hash file. I would like 
 it
 to ONLY write to MySQL and not to the .cdb. I have tried
 --enable-roaming-users=n, but this causes vchkpw to stop writing the IP
 addresses to either location.

 It is almost like there should be a --dont-update-tcprulesfile=true
 variable upon configuration. Am I missing something here? Has someone
 else configured vpopmail in this manner and gotten around this problem?

 Thanks!

 Regards,
 Paul Fries
 [EMAIL PROTECTED]





[vchkpw] Vdelivermail patch.

2002-09-05 Thread Steve Fulton

Busy day for me, I've been patching left right and center.

I have patched vdelivermail.c to properly handle the exit codes generated 
by Autoresponder (by Brad Dameron), used with QmailAdmin.  Now, depending 
on the exit code returned, vdelivermail.c will either deliver it or bounce 
it.  Wait!  Wasn't it doing that before?  Yes it was, but it was not 
handling exit code 99, which aborted autoresponder but still meant for the 
message to be delivered.

As always, I've tested that patch on my systems and it appears to work 
fine.  I offer no guarantees.

http://www.esoteric.ca/software/src/vdelivermail-5.3.8.patch

And for those who are curious, here are the other patches I did today:

I've patched the autoresponder that is required by QmailAdmin for 
vacation/autoresponder's to work.  Now duplicate From: and Subject 
fields will no longer persist in messages -- and I'm sure my customer 
inquiries will go down because of it.

The details:

Autoresponder 2.0.3

http://www.esoteric.ca/software/src/autorespond-2.03.patch

- Patched autoresponder.c to allow new option -.  This option causes 
Autoresponder to only insert the To: header, thus the autoresponder file 
must contain the From: and Subject: lines first.  This patch was 
submitted to Brad D, though I haven't heard back from him yet.

QmailAdmin 1.0.6

http://www.esoteric.ca/software/src/qa-autorespond.patch

- Patched autorespond.c to include new option.
- Patched user.c to include new option.

In addition to modifying user.c (vacation messages) to use new option, I 
also increased the number of messages the autoresponder can receive from a 
unique e-mail address before it defers additional messages.  I also reduced 
the amount of time funtil the number is reset rom 24 hours to 12.  I did 
this because many offices have people sending multiple e-mails a day to an 
account with a vacation autoresponder.

I've tested this on my own production setup without problems, but of course 
I offer no guarantees.  Make sure you are using those versions listed 
above, and apply BOTH patches for it to work.  Your users will have to 
recreate their autoresponders / vacation messages in order to take effect.

-- Steve




RE: [vchkpw] Using tcpserver/mysql

2002-09-05 Thread Paul Fries

Thanks Matt. =)

Yeah I have been really pulling my hair out over that one. =) With as
many Pop-3 connections/sec that our servers handle I thought that I
would make things a little smoother if Vpopmail didn't write the cdb. I
am afraid that the hash would become corrupt and cause relay problems
for my users. 

Instead, I am just having vpopmail write to a cdb elsewhere on the file
system that nothing else reads. Then I have tcpserver read a different
cdb file that I have created. 

It's messy, but it works. =) 

Paul J. Fries
CWIE, LLC - Internet Services
 

-Original Message-
From: Matt Simerson [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 05, 2002 11:24 AM
To: Paul Fries
Cc: [EMAIL PROTECTED]
Subject: Re: [vchkpw] Using tcpserver/mysql

Paul,

You are exactly correct.  Even when using my patch, vpopmail continues 
to update the tcp.smtp.cdb file. There's one reason for that. The first 
is that my suggestion for adding a --dont-update-tcprulesfile=true was 
never implemented.  Granted, it would only benefit a few users (really 
big ones like me) and it really doesn't make that much difference.

So, in short you are right.  You can do as I do and manually disable 
the routines in the vpopmail code that writes out the file, or you can 
just ignore it. If you're really clever, you can code in a 
--don't-update-tcprulesfile function but to save some time, you might 
want to search through the archives of this list as I've already been 
down that road.

Matt

On Tuesday, September 3, 2002, at 12:08  PM, Paul Fries wrote:

 Greetings,

 I am trying to accomplish using vpopmail with the tcpserver/mysql 
 patch.

 Based on the documentation found on step 13 of
 http://www.inter7.com/vpopmail/INSTALL:

 --
 For sites using the mysql module and --enable-roaming-users=y it is
 highly suggested to use Matt Simersons tcpserver-mysql patch. This
 removes the need for vpopmail to compile a tcp.smtp.cdb file for each
 pop authentication.
 --

 I have implemented the patch, and verified that tcpserver is reading
my
 /var/qmail/control/sql file properly (if I chmod 000 this file,
 tcpserver complains about it on startup). Also with
 --enable-roaming-users=y in vpopmail, vchkpw properly writes the
 authenticated IP addresses/timestamp to the vpopmail.relay table in
 MySQL.

 My problem is this:

 Even though it is properly writing the IPs to the vpopmail.relay
table,
 it is also writing them into the tcp.smtp.cdb hash file. I would like 
 it
 to ONLY write to MySQL and not to the .cdb. I have tried
 --enable-roaming-users=n, but this causes vchkpw to stop writing the
IP
 addresses to either location.

 It is almost like there should be a --dont-update-tcprulesfile=true
 variable upon configuration. Am I missing something here? Has someone
 else configured vpopmail in this manner and gotten around this
problem?

 Thanks!

 Regards,
 Paul Fries
 [EMAIL PROTECTED]







[vchkpw] Bogus subscription to list

2002-09-05 Thread Steve Fulton


Hi Ken et al,

It appears someone signed [EMAIL PROTECTED] up to the list .. I just 
received an automated response from them regarding a message I posted to 
the list.

-- Steve




[vchkpw] error adding domains

2002-09-05 Thread tripnkid



hello,
 i get the following message when 
adding domains, then when i try to check mail for the automatically corrected 
"postmaster" account, the password gets rejected. any ideas?

thanks,
brendan

could not connect to mysql update server Can't 
connect to local MySQL server through socket '/tmp/mysql.sock' (2) with 
databasecould not connect to mysql update server Can't connect to local 
MySQL server through socket '/tmp/mysql.sock' (2)vmysql: sql error[c]: MySQL 
server has gone awayvmysql: sql error[b]: MySQL server has gone 
awayvmysql: sql error[3]: MySQL server has gone awayvmysql: sql 
error[c]: MySQL server has gone awayvmysql: sql error[c]: MySQL server has 
gone awayvmysql: sql error[b]: MySQL server has gone awayvmysql: sql 
error[3]: MySQL server has gone awayvmysql: sql error[2]: MySQL server has 
gone awayError: Unable to chdir to vpopmail/users 
directory


RE: [vchkpw] error adding domains

2002-09-05 Thread remo











-BEGIN PGP SIGNED MESSAGE-

Hash: SHA1



Did you provide the right info in the mysql.c file? Seams like it

does not see you mysql server. Did you check if you
can log in with

your username and password you provide with vpopmail
and check if it

allows you in? 



Remo



- -Original Message-

From: tripnkid
[mailto:[EMAIL PROTECTED]] 

Sent: Thursday, September 05, 2002 6:14 PM

To: [EMAIL PROTECTED]

Subject: [vchkpw]
error adding domains



hello,

 i get the following message when
adding domains, then when i try

to check mail for the automatically corrected postmaster
account,

the password gets rejected. any ideas?



thanks,

brendan



could not connect to mysql update server Can't
connect to local MySQL

server through socket '/tmp/mysql.sock' (2)
with database

could not connect to mysql update server Can't
connect to local MySQL

server through socket '/tmp/mysql.sock' (2)

vmysql: sql error[c]: MySQL server has
gone away

vmysql: sql error[b]: MySQL server has
gone away

vmysql: sql error[3]: MySQL server has
gone away

vmysql: sql error[c]: MySQL server has
gone away

vmysql: sql error[c]: MySQL server has
gone away

vmysql: sql error[b]: MySQL server has
gone away

vmysql: sql error[3]: MySQL server has
gone away

vmysql: sql error[2]: MySQL server has
gone away

Error: Unable to chdir
to vpopmail/users directory



-BEGIN PGP SIGNATURE-

Version: PGPfreeware
6.5.3 for non-commercial use http://www.pgp.com



iQA/AwUBPXf6mF+JHhJFWglrEQJouACfXYMW7NqnHMTcBBlOtIQj5qiVbugAoLvx

YRkvPrrvw1k633UygdqPkQR/

=8/Ei

-END PGP SIGNATURE-










Re: Re[2]: [vchkpw] No joy getting vchkpw to replace checkpassword.

2002-09-05 Thread Robert Porter


Thanks for the feedback, I am going to have a look at both packages.  I think 
I will start another thread for this to solicit info/opinions on Webmail 
interfaces.

Thanks again!

Cheers,

Bob Porter

On Thursday 05 September 2002 10:32 am, Michael Anderson wrote:
 On Wednesday, September 4, 2002, at 11:01 PM, Robert Porter wrote:
 Bob, we started out with sqwebmail.  Personally, I liked it a lot,
 however, our clients like the squirlmail system much better.  They are
 both excellent web interfaces, and it's more like personal choice.
 sqwebmail was a little easier to install, but neither one is very
 difficult.