Re: [vchkpw] Vpopmail Debian

2002-10-23 Thread Peter Palmreuther
Hi Zeno,

First let me say there's no need to drop me a copy of your answer to my
e-mail-address directly. I'm reading the list, therefore answering on
list is sufficient.

On Tue, 22 Oct 2002 19:17:47 +0200
Zeno Davatz [EMAIL PROTECTED] wrote:

 Replace '/home/vpopmail/' with the path to vpopmail home directory
 (e.g.'~vpopmail/') of your installation. Should have been obvious
 you should do a test run of vchkpw, _of course_ with correct paths
 :-/

 alphonse:/etc/init.d# [EMAIL PROTECTED] P=info printf
 $U\0$P\0SDKFJSD\0 | strace -o /tmp/vchkpw.log -s 256 -f -e
 trace=file,read/usr/sbin/vchkpw /bin/true 30; echo $?
 
 I get:
 0

So in general authentication seems to work.

How 's your POP3 started? What's the complete invocation command that
makes use of vchkpw for authentication?

 strace -f -s 512 -o /tmp/clearopensmtp.strace /usr/sbin/clearopensmtp

Seems 'clearopensmtp' hangs in function 'tcprules_open()' in vpopmail.c,
line 1939. Why? I dunno.

As you stated you're using still 4.9.9-1 I'd suggest you remove
vpopmail-bin from debian pool and compile at least a 5.2.1 from
http://www.inter7.com/vpopmail, if not even a 5.3.8 from same site but
devel page. The latter I'd call quite stable so there shouldn't be to
much risk left.

If the problem persists with newer version we'll probably be able to
hunt down the culprit, at least much easier than me or anybody else
installing a 4.9.9 with Debian specs and do the debugging job for you
(albeit I'm running Debian [Woody] too I don't want to step back, it's
not worth the trouble as the older version is quite outdated).
-- 
Pit




Re: [vchkpw] Vpopmail Debian

2002-10-23 Thread Zeno Davatz
Hi Pit

Thanks for helping - sorry for the cc.

On 23.10.2002 13:48 Uhr, Peter Palmreuther [EMAIL PROTECTED] wrote:

 If the problem persists with newer version we'll probably be able to
 hunt down the culprit, at least much easier than me or anybody else
 installing a 4.9.9 with Debian specs and do the debugging job for you
 (albeit I'm running Debian [Woody] too I don't want to step back, it's
 not worth the trouble as the older version is quite outdated).
So you also suggest not using the binaries from the Debian packages for my
Mail-setup?

Zeno





Re: [vchkpw] Vpopmail Debian

2002-10-23 Thread Peter Palmreuther
Hi Zeno,

On Wed, 23 Oct 2002 13:59:11 +0200
Zeno Davatz [EMAIL PROTECTED] wrote:

 So you also suggest not using the binaries from the Debian packages
 for my Mail-setup?

Yes. Definitely. Seems the packages are only in unstable _and_ they're
pretty old. So a manual installtion of vpopmail will be (IMHO) the best
solution.
-- 
Pit




[vchkpw] vdelivermail fails when alias line starting with | and containing /Maildir/

2002-10-23 Thread Anders Brander
Hi,

I think i've encountered a bug, vdelivermail seems to process the line:
|/do/deliver/to /home/vpopmail/domains/example.com/test1/Maildir/
wrongly. It deals with it like it's a /Maildir/-line, which is wrong.
It seems like vdelivermail checks for /Maildir/ anywhere in the line, 
before it checks for a | at the start of the line. I've made a quick fix 
to vdelivermail.c.

http://fmail.dk/stuff/vdeliver-command.diff

Please test and comment.

/Anders




[vchkpw] return code 100 and vdelivermail

2002-10-23 Thread Anders Brander
Hi,

Is there any reason that vdelivermail doesn't catch return code 100 when 
running |-commands?

Please see vdelivermail.c line 764-770. It deals with 100 as it were 111. 
Is this right?

For the curious: http://fmail.dk/stuff/vdeliver-command-return-100.diff :)

/Anders




Re: [vchkpw] smtp-auth

2002-10-23 Thread vpopmail
On Tue, 2002-10-22 at 13:19, Tunc Gunergun wrote:
 i think there is a problem with smtp-auth`s new version (0.31)  Version
 0.30 is working very well. Has anybody tried the new version (0.31)?

Yes, actuall, I'm having a problem with 0.31, but I don't know if it's
due to this patch or something else.

I've rebuilt bruceg's qmail RPM ( http://untroubled.org/qmail+patches/ )
and have updated it to use 0.31, but it appears that it's accepting mail
even when prompted for the required username and password, you give it
fudged values, i.e. a user account and passwd that I _know_ are invalid.

It happily accepts these and sends out this mail -- not quite the sort
of authentication I'd like :)

Are you also seeing this behaviour with 0.31?

Bill





Re: [vchkpw] patch for vpopmail 5.3.8 for .qmailadmin-limits

2002-10-23 Thread Bill Shupp
On Wednesday, October 23, 2002, at 12:55  AM, tonix (Antonio Nati) 
wrote:


As usual, I don't see anything related to disablesmtp.

Is this feature going to be merged in the main stream, or do I have to 
continue with my private copies?

Yes, it will be merged.  It's just been overlooked.  I'll add it to 
5.3.10.

Anyway, two notes:

1) I feel that would be much better another layout, like:
domain  CHAR(64) PRIMARY KEY,
option  CHAR(64) PRIMARY KEY,
value   CHAR(64) NOT NULL

that would permit to add other options more easily.


Yes, but the downside is that the value field is way too big for items 
that just need to be 0 or 1.  I don't know how much of an impact this 
will have, though.

Brian: Any thoughts on this?  Some of your code would have to be 
rewritten to do this.

2) I'ld like to have other options in qmailadmin-limits, that could 
permit to deny some functions to 'admin' users that are not 
'postmaster':
ex. deny_list_create
deny_list_modify
deny_list_users_modify
deny_list_moderators_modify
deny_account_create
deny_alias_create

Yes, this would be great.  Do you have any code that implements this?

Regards,

Bill Shupp





Re: [vchkpw] vdelivermail fails when alias line starting with | and containing /Maildir/

2002-10-23 Thread Bill Shupp
On Wednesday, October 23, 2002, at 05:28  AM, Anders Brander wrote:


Hi,

I think i've encountered a bug, vdelivermail seems to process the line:
|/do/deliver/to /home/vpopmail/domains/example.com/test1/Maildir/
wrongly. It deals with it like it's a /Maildir/-line, which is wrong.
It seems like vdelivermail checks for /Maildir/ anywhere in the line,
before it checks for a | at the start of the line. I've made a quick 
fix
to vdelivermail.c.

http://fmail.dk/stuff/vdeliver-command.diff

Please test and comment.

Looks good, I've added this.

Regards,

Bill Shupp





Re: [vchkpw] return code 100 and vdelivermail

2002-10-23 Thread Bill Shupp

On Wednesday, October 23, 2002, at 06:35  AM, Anders Brander wrote:


Hi,

Is there any reason that vdelivermail doesn't catch return code 100 
when
running |-commands?

Please see vdelivermail.c line 764-770. It deals with 100 as it were 
111.
Is this right?

For the curious: 
http://fmail.dk/stuff/vdeliver-command-return-100.diff :)

Got it, thanks for the diff.

Regards,

Bill Shupp





Re: [vchkpw] vpopmail development

2002-10-23 Thread Matthias Trevarthan
Granted, vpopmail does a great job as is...

I'd just hate to see this project die for lack of renovation someday.

What's the licensing like? Could I modify the source and create another 
project? (Not that I want to... trust me. I've got plenty of better things to 
do.)

Matthias


On Wednesday 23 October 2002 13:41, Bill Shupp wrote:
 On Wednesday, October 23, 2002, at 07:03  AM, Matthias Trevarthan wrote:
  Howdy,
 
  Just curious: Is vpopmail still being actively developed?

 Yes.

  Is it a single developer, or is there a CVS and an open development
  community?
 
  I ask because I see people talking about patches a lot. If we had a
  CVS and an
  active development team, we wouldn't need patches, would we?
 
  Isn't that the strength of Open Source? The product evolves very
  quickly in
  response to it's user's needs. This gets foiled if there is only one
  developer...

 Ken Jones and Inter7 are the maintainers.  I've been helping out with
 putting together releases and adding patches, etc.., but this decision
 is really up to Ken.  Several people have offered to run CVS, and of
 course there's sourceforge.  I'm not opposed to this.

 Regards,

 Bill Shupp





Re: [vchkpw] vpopmail development

2002-10-23 Thread Bill Shupp
On Wednesday, October 23, 2002, at 12:51  PM, Matthias Trevarthan wrote:


Granted, vpopmail does a great job as is...

I'd just hate to see this project die for lack of renovation someday.

What's the licensing like? Could I modify the source and create another
project? (Not that I want to... trust me. I've got plenty of better 
things to
do.)

GPL.  This is easily found on at on the vpopmail website, and in the 
source code.

Bill




Re: [vchkpw] patch for vpopmail 5.3.8 for .qmailadmin-limits

2002-10-23 Thread tonix (Antonio Nati)
At 23/10/02 23/10/02 -0700, Bill Shupp wrote:

On Wednesday, October 23, 2002, at 12:55  AM, tonix (Antonio Nati) wrote:


2) I'ld like to have other options in qmailadmin-limits, that could 
permit to deny some functions to 'admin' users that are not 'postmaster':
ex. deny_list_create
deny_list_modify
deny_list_users_modify
deny_list_moderators_modify
deny_account_create
deny_alias_create

Yes, this would be great.  Do you have any code that implements this?


No Bill, I'm just willing to do it. If it looks interesting, I'll raise its 
priority among my jobs.

It could be interesting to know what to deny, in all's opinion.

Tonino

Regards,

Bill Shupp






Re: [vchkpw] patch for vpopmail 5.3.8 for .qmailadmin-limits

2002-10-23 Thread Bill Shupp
On Wednesday, October 23, 2002, at 01:17  PM, tonix (Antonio Nati) 
wrote:

At 23/10/02 23/10/02 -0700, Bill Shupp wrote:

On Wednesday, October 23, 2002, at 12:55  AM, tonix (Antonio Nati) 
wrote:

2) I'ld like to have other options in qmailadmin-limits, that could 
permit to deny some functions to 'admin' users that are not 
'postmaster':
ex. deny_list_create
deny_list_modify
deny_list_users_modify
deny_list_moderators_modify
deny_account_create
deny_alias_create

Yes, this would be great.  Do you have any code that implements this?


No Bill, I'm just willing to do it. If it looks interesting, I'll 
raise its priority among my jobs.

It could be interesting to know what to deny, in all's opinion.

Ideally, I want  to have all the same functionality in qmailadmin that 
EZWEB has.  Some thought needs to go into that, as well as the limits 
you are suggesting.  I won't have time to work on that right now, as 
I'm still trying to integrate other things.

Regards,

Bill Shupp




[vchkpw] 5.3.10 devel

2002-10-23 Thread Bill Shupp
Ken, all:

I've posted 5.3.10 devel on my site:

Download:
http://shupp.org/patches/vpopmail-5.3.10.tar.gz

Changes:

5.3.10
10/23/02   Bill Shupp hostmaster at shupp dot org
   - Added limits table layout to vmysql.h
   - Changed valias_line to be type blob to compensate for 
large
 mailing list commands.  Increased FILE_LINE_SIZE to 1024 in
 vcalias for the same reason.  vcalias now escapes FileLine 
input.
 Thanks to Brad Dameron for pointing this out.
   - Added disable_smtp support to the new vlimits functions
   - Fixed configure.in so that --enable-mysql-limits is now 
reported
 after running configure
   - Moved format_maildirquota() to the vpopmail library.  
Updated
 vlimits.c to use format_maildirquota() for default_quota.
   - format_maildirquota() now uses 1024 and and 1048576 when
 converting KB and MB instead of 1000 and 100, 
respectively.

10/23/02   Anders Brander anders at brander dot dk
   - vdelivermail: Check for | *before* /Maildir/ in .qmail 
processing
   - vdelivermail: Add missing case for error code 100


Please help test, and report any problems to the list.

Regards,

Bill Shupp




Re: [vchkpw] patch for vpopmail 5.3.8 for .qmailadmin-limits

2002-10-23 Thread tonix (Antonio Nati)
At 23/10/02 23/10/02 -0700, Bill Shupp wrote:

On Wednesday, October 23, 2002, at 12:55  AM, tonix (Antonio Nati) wrote:



As usual, I don't see anything related to disablesmtp.

Is this feature going to be merged in the main stream, or do I have to 
continue with my private copies?

Yes, it will be merged.  It's just been overlooked.  I'll add it to 5.3.10.


Bill, I was speaking mainly about qmailadmin.
It's not included in the last version, not in the suggested MySQL notes 
below. That's the reason for which I was suggesting to change layout, in 
order to add new options without working too much on MySQL.

Anyway, two notes:

1) I feel that would be much better another layout, like:
domain  CHAR(64) PRIMARY KEY,
option  CHAR(64) PRIMARY KEY,
value   CHAR(64) NOT NULL

that would permit to add other options more easily.


Yes, but the downside is that the value field is way too big for items 
that just need to be 0 or 1.  I don't know how much of an impact this will 
have, though.

Why not to use VARCHAR fields?


Brian: Any thoughts on this?  Some of your code would have to be rewritten 
to do this.

2) I'ld like to have other options in qmailadmin-limits, that could 
permit to deny some functions to 'admin' users that are not 'postmaster':
ex. deny_list_create
deny_list_modify
deny_list_users_modify
deny_list_moderators_modify
deny_account_create
deny_alias_create

Yes, this would be great.  Do you have any code that implements this?


These options would be impossible to add with the 'fixed' MySQL layout, 
unless you create a huge record to manage them.

Tonino




[vchkpw] 5.3.11 devel available

2002-10-23 Thread Bill Shupp
I found a problem with the 5.3.10 release, and also received another 
fix for vdelivermail.  So I have put up 5.3.11 on my site:

ChangeLog:
http://shupp.org/patches/vpopmail-ChangeLog

Download:
http://shupp.org/patches/vpopmail-5.3.11.tar.gz

Cheers,

Bill Shupp




[vchkpw] RE: FW: patch for vpopmail 5.3.8 for .qmailadmin-limits

2002-10-23 Thread John Johnson
 Sorry foe missing the list on that... I will be getting it now.


-Original Message-
From: Bill Shupp [mailto:hostmaster;shupp.org] 
Sent: Wednesday, October 23, 2002 2:42 PM
To: [EMAIL PROTECTED]
Subject: Re: FW: patch for vpopmail 5.3.8 for .qmailadmin-limits


On Wednesday, October 23, 2002, at 02:43  PM, John Johnson wrote:

  ok, what is the problem so I can decide what to do...

I fixed it.  Get 5.3.11 from my site:  http://shupp.org

Please keep posts on the list.

Regards,

Bill







[vchkpw] Vpopmail and mysql limits

2002-10-23 Thread John Johnson
 ok to use mysql-limits is there a convert program to convert the limits
I have
Or do I have to start over with them and reset them.. I guess I will
also have
To recompile vqadmin and qmailadmin for this as well?

-John








Re: [vchkpw] Vpopmail and mysql limits

2002-10-23 Thread Bill Shupp
On Wednesday, October 23, 2002, at 03:28  PM, John Johnson wrote:


 ok to use mysql-limits is there a convert program to convert the 
limits
I have
Or do I have to start over with them and reset them.. I guess I will
also have
To recompile vqadmin and qmailadmin for this as well?

Qmailadmin and vqadmin do not support the new vlimits functions yet.  
vqadmin has its own code to modify the limits file only (not sql).  
Brian, the author of this patch, does have his own patches for 
qmailadmin I think.  So you really can't do anything with them until 
you have code to use them.  Not sure if Brian is planning to publish 
his qmailadmin patch...

Regards,

Bill




RE: [vchkpw] Vpopmail and mysql limits

2002-10-23 Thread John Johnson

Well it would be nice if the patch was out there.. I guess I will hold
off
On my make install till I get more info on what is going to happen with 
Qmailadmin and vqadmin

-John

-Original Message-
From: Bill Shupp [mailto:hostmaster;shupp.org] 
Sent: Wednesday, October 23, 2002 3:29 PM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] Vpopmail and mysql limits


On Wednesday, October 23, 2002, at 03:28  PM, John Johnson wrote:

  ok to use mysql-limits is there a convert program to convert the
 limits
 I have
 Or do I have to start over with them and reset them.. I guess I will
 also have
 To recompile vqadmin and qmailadmin for this as well?

Qmailadmin and vqadmin do not support the new vlimits functions yet.  
vqadmin has its own code to modify the limits file only (not sql).  
Brian, the author of this patch, does have his own patches for 
qmailadmin I think.  So you really can't do anything with them until 
you have code to use them.  Not sure if Brian is planning to publish 
his qmailadmin patch...

Regards,

Bill










RE: [vchkpw] smtp-auth

2002-10-23 Thread vpopmail
On Wed, 2002-10-23 at 08:30, Clayton Weise wrote: 
 How do you startup qmail-smtpd?
Hi Clayton, thanks for the reply. 

Tunc Gunergun noted that this behaviour is symptomatic of running
qmail-smtpd without a hostname after it.  Is that what you were
thinking?  But how does this effect the other vpopmail domains on that
box if at all?  I'll post my smtpd 'run' below (sorry for the poor
formatting): 

--- 
#!/bin/sh 
. /usr/share/qmail/run-functions 

# If rblsmtpd is installed, process rbltimeout rbldomains, and
antirbldomains 
if [ -x /usr/bin/rblsmtpd ]; then 
readdefault domains antirbldomains  
for domain in $domains; do 
rblopts=$rblopts -a $domain 
done 
readdefault domains rbldomains  
for domain in $domains; do 
rblopts=$rblopts -r $domain 
done 
readdefault timeout rbltimeout 60 
if [ -n $rblopts ]; then 
rbl=/usr/bin/rblsmtpd -t $timeout $rblopts 
fi 
fi 

# Start daemons. 
readdefault concurrency concurrencysmtpd 20 
readdefault ulimitdata ulimitdata 200 

exec \ 
softlimit -m $ulimitdata \ 
envuidgid qmaild \ 
tcpserver -DRUvX -c $concurrency -l `head -1 /var/qmail/control/me`
\ 
-x /etc/tcpcontrol/smtp.cdb 0 smtp \ 
fixcrio $rbl qmail-smtpd /usr/local/vpopmail/bin/vchkpw /bin/true 
--- 

Thanks again for the reply, 

Bill





Re: [vchkpw] Vpopmail and mysql limits

2002-10-23 Thread Brian Kolaci


   On Wednesday, October 23, 2002, at 03:28  PM, John Johnson wrote:
   
 ok to use mysql-limits is there a convert program to convert the 
limits
I have
Or do I have to start over with them and reset them.. I guess I will
also have
To recompile vqadmin and qmailadmin for this as well?
   
   Qmailadmin and vqadmin do not support the new vlimits functions yet.  
   vqadmin has its own code to modify the limits file only (not sql).  
   Brian, the author of this patch, does have his own patches for 
   qmailadmin I think.  So you really can't do anything with them until 
   you have code to use them.  Not sure if Brian is planning to publish 
   his qmailadmin patch...
   
   Regards,
   
   Bill
   

I see there's been alot of traffic on this today.  I've
been out (working) most of the day and haven't been able to
keep up.  It should be easy to put together a utility to convert
the limits, not an issue.

As for several of the other comments, I'd like to take tonight to
think about several of the suggestions and post one myself.  I've
been running with the current patched API since vpopmail 4.9.6 and
its been working well.  I also have a patched qmailadmin-1.0.4
with quotas (I forgot who wrote the quota patch), and a patched
version of vdelivermail.  Both of these use a recursive stat()
to determine usage  quota since it was before the Maildir++ quotas
were in there, so I always had *regular* disk usage quotas enforced
which I believe may differ from the Maildir++ quotas.

My intent was to get the API into the library before updating the
programs/utilities to actually use the API.  I've been sitting on
this for about 10 months now (with a working system), and now finally
got it into the distribution.  Now it seems (from all the traffic on
it today) that nobody can wait for it...  I think it would be best to
get the base correct and sound before actually using it in the utilities
and programs.  I have some pros/cons (and I'd like to extend the list
and send it out to everyone) about the current implementation and want
to get some feedback before moving on it.  (Its waited 10 months already,
another day or two won't hurt).  I'll compile and post some questions 
in a bit to see what people really want/need and make sure this gets
done properly.

Thanks,

Brian





RE: [vchkpw] Vpopmail and mysql limits

2002-10-23 Thread John Johnson
 Thanks... As for waiting 10 months, we didn't know it was around so we
really were
Not waiting and you know us bitchy sysadmins we want it and we want it
Yesterday LOL

-John


-Original Message-
From: Brian Kolaci [mailto:bk;Kola.com] 
Sent: Wednesday, October 23, 2002 4:38 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [vchkpw] Vpopmail and mysql limits




   On Wednesday, October 23, 2002, at 03:28  PM, John Johnson wrote:
   
 ok to use mysql-limits is there a convert program to convert the 
limits
I have
Or do I have to start over with them and reset them.. I guess I
will
also have
To recompile vqadmin and qmailadmin for this as well?
   
   Qmailadmin and vqadmin do not support the new vlimits functions yet.

   vqadmin has its own code to modify the limits file only (not sql).  
   Brian, the author of this patch, does have his own patches for 
   qmailadmin I think.  So you really can't do anything with them until

   you have code to use them.  Not sure if Brian is planning to publish

   his qmailadmin patch...
   
   Regards,
   
   Bill
   

I see there's been alot of traffic on this today.  I've
been out (working) most of the day and haven't been able to keep up.  It
should be easy to put together a utility to convert the limits, not an
issue.

As for several of the other comments, I'd like to take tonight to think
about several of the suggestions and post one myself.  I've been running
with the current patched API since vpopmail 4.9.6 and its been working
well.  I also have a patched qmailadmin-1.0.4 with quotas (I forgot who
wrote the quota patch), and a patched version of vdelivermail.  Both of
these use a recursive stat() to determine usage  quota since it was
before the Maildir++ quotas were in there, so I always had *regular*
disk usage quotas enforced which I believe may differ from the Maildir++
quotas.

My intent was to get the API into the library before updating the
programs/utilities to actually use the API.  I've been sitting on this
for about 10 months now (with a working system), and now finally got it
into the distribution.  Now it seems (from all the traffic on it today)
that nobody can wait for it...  I think it would be best to get the base
correct and sound before actually using it in the utilities and
programs.  I have some pros/cons (and I'd like to extend the list and
send it out to everyone) about the current implementation and want to
get some feedback before moving on it.  (Its waited 10 months already,
another day or two won't hurt).  I'll compile and post some questions 
in a bit to see what people really want/need and make sure this gets
done properly.

Thanks,

Brian










Re: [vchkpw] Vpopmail Debian

2002-10-23 Thread David Phillips
Zeno Davatz writes:
 So you also suggest not using the binaries from the Debian packages
 for my Mail-setup?

This is my recommendation for the easiest and best vpopmail setup on Debian.
This is from memory, so I might be missing something:

* Add Gerrit Pape's repository to your apt sources list.  Install the qmail
package.  This will install qmail, including the necessary uids and gids:

http://smarden.org/pape/Debian/qmail.html

* Install the qmail-run package.  This will setup qmail as the mail transfer
agent under daemontools.  This will uninstall exim or whatever MTA you
already have installed.

* Change the /var/qmail/rc file to deliver to Maildir.  This will break mail
for local users and cause the mail system not to work as it would on a
standard Debian system.  The mail program, for example, does not work with
Maildir.  But for a POP toaster using vpopmail, this doesn't really matter.
The file should look like this:

#!/bin/sh
exec env - PATH=/var/qmail/bin:$PATH \
 qmail-start ./Maildir/

* By default, the qmail-run package sets up qmail to log to syslog, as is
standard for Debian.  However, the daemontools method (as setup by
qmail-conf) is much better, in my opinion.  Fix the qmail-send and
qmail-smtpd services to do this.  qmail-smtpd may already be setup this way.
In the log directory of the service directory (say /service/qmail-send/log),
change main to be a symlink to the log directory, say /var/log/qmail-send.
Change the run script for the log service to be as follows:

#!/bin/sh
exec setuidgid qmaill multilog t ./main

* Install vpopmail from source.  The Debian packages are pretty old and seem
to be buggy, at least the last time I tried.

* Change the run script for qmail-smtpd (/service/qmail-smtpd/run) to use
vpopmail.  The tcp.smtp.cdb file needs to point to the one in the vpopmail
home directory (ex. /home/vpopmail/etc/tcp.smtp.cdb).  This step makes
POP-before-SMTP work.

* Install a qmail-pop3d service.  The easiest way to do this is qmail-conf.
You could use qmail-conf to redo all the qmail services, but it is easier to
stick with the ones that qmail-run sets up:

http://www.din.or.jp/~ushijima/qmail-conf.html

* Allow incoming connections to pop3d.  By default, it does not allow any
connections.  There is an add-client script in
/var/qmail/service/qmail-pop3d that can be used.  To simply allow
connections from everywhere, create an empty tcp file and run the Makefile.
You will need to run the Makefile after using add-client.

* Change the qmail-pop3d run script to use vpopmail.  It needs to use vchkpw
as the checkpassword program.  Change this to your vchkpw program (ex.
/home/vpopmail/bin/vchkpw).  The parameter to be changed is the second
parameter to qmail-popup.

* Restart all of the services:

svc -t /service/qmail-*

* You can make things easier if you add /var/qmail/bin and the vpopmail bin
directory to root's PATH.

--
David Phillips [EMAIL PROTECTED]
http://david.acz.org/





[vchkpw] vpopmail quota bugs

2002-10-23 Thread Chris

when i sent an email using sqwebmail it save a copy in my sent folder and
i can see the quota report increase. i use sqwebmail move the sent email
from sent folder to inbox and download and remove such email using
Outlook Express. but there is no changes on the quota report. is there any
patches available for this? or it's the sqwebmail problem?

P.S. it's fine if we download and remove the normal incoming email.

 
   Chris





Re: [vchkpw] Vpopmail Debian

2002-10-23 Thread Jason Lim
The alternative way, of course, is to use the slightly more out-of-date
packages that Debian provides.

Download (or dselect) the qmail-src package in Debian, the run
build-qmail (during installation this will mention this, so don't
worry).

After that, grab the vpopmail packages in Debian as well, and install
those.

Blam. Apart from some tweaking, you're done.

Of course, you don't get the new fancy features that are in the latest
versions, but it works, and so far for us it has been reliable.

YMMV.

- Original Message -
From: David Phillips [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 24, 2002 10:06 AM
Subject: Re: [vchkpw] Vpopmail Debian


 Zeno Davatz writes:
  So you also suggest not using the binaries from the Debian packages
  for my Mail-setup?

 This is my recommendation for the easiest and best vpopmail setup on
Debian.
 This is from memory, so I might be missing something:

 * Add Gerrit Pape's repository to your apt sources list.  Install the
qmail
 package.  This will install qmail, including the necessary uids and
gids:

 http://smarden.org/pape/Debian/qmail.html

 * Install the qmail-run package.  This will setup qmail as the mail
transfer
 agent under daemontools.  This will uninstall exim or whatever MTA you
 already have installed.

 * Change the /var/qmail/rc file to deliver to Maildir.  This will break
mail
 for local users and cause the mail system not to work as it would on a
 standard Debian system.  The mail program, for example, does not work
with
 Maildir.  But for a POP toaster using vpopmail, this doesn't really
matter.
 The file should look like this:

 #!/bin/sh
 exec env - PATH=/var/qmail/bin:$PATH \
  qmail-start ./Maildir/

 * By default, the qmail-run package sets up qmail to log to syslog, as
is
 standard for Debian.  However, the daemontools method (as setup by
 qmail-conf) is much better, in my opinion.  Fix the qmail-send and
 qmail-smtpd services to do this.  qmail-smtpd may already be setup this
way.
 In the log directory of the service directory (say
/service/qmail-send/log),
 change main to be a symlink to the log directory, say
/var/log/qmail-send.
 Change the run script for the log service to be as follows:

 #!/bin/sh
 exec setuidgid qmaill multilog t ./main

 * Install vpopmail from source.  The Debian packages are pretty old and
seem
 to be buggy, at least the last time I tried.

 * Change the run script for qmail-smtpd (/service/qmail-smtpd/run) to
use
 vpopmail.  The tcp.smtp.cdb file needs to point to the one in the
vpopmail
 home directory (ex. /home/vpopmail/etc/tcp.smtp.cdb).  This step makes
 POP-before-SMTP work.

 * Install a qmail-pop3d service.  The easiest way to do this is
qmail-conf.
 You could use qmail-conf to redo all the qmail services, but it is
easier to
 stick with the ones that qmail-run sets up:

 http://www.din.or.jp/~ushijima/qmail-conf.html

 * Allow incoming connections to pop3d.  By default, it does not allow
any
 connections.  There is an add-client script in
 /var/qmail/service/qmail-pop3d that can be used.  To simply allow
 connections from everywhere, create an empty tcp file and run the
Makefile.
 You will need to run the Makefile after using add-client.

 * Change the qmail-pop3d run script to use vpopmail.  It needs to use
vchkpw
 as the checkpassword program.  Change this to your vchkpw program (ex.
 /home/vpopmail/bin/vchkpw).  The parameter to be changed is the second
 parameter to qmail-popup.

 * Restart all of the services:

 svc -t /service/qmail-*

 * You can make things easier if you add /var/qmail/bin and the vpopmail
bin
 directory to root's PATH.

 --
 David Phillips [EMAIL PROTECTED]
 http://david.acz.org/








RE: [vchkpw] Pb: message_is_looping_/mail_is_looping/....

2002-10-23 Thread julien koffel
hi thanks for response!
i have this in my qmail_default:

| /home/vpopmail/bin/vdelivermail '' bounce-nomailbox

but i think it don't work!
another idea?
thanks a lot


-Message d'origine-
De : Nyt Q. Crawler [mailto:nytcrwlr70;netscape.net]
Envoye : mardi 22 octobre 2002 23:09
A : vchkpw
Objet : Re: [vchkpw] Pb: message_is_looping_/mail_is_looping/


Check the .qmail-default file for socdir.fr and make sure that it's not
forwarding the email to [EMAIL PROTECTED]
---

julien koffel wrote:

Hi
I have this pb with vpopmail

could you help me ?

thanks for the help.

@40003db5b1502d71339c new msg 486739
@40003db5b1502d713f54 info msg 486739: bytes 6864558 from  qp 18510
uid 1009
@40003db5b1502ddece34 starting delivery 48657: msg 486739 to local
[EMAIL PROTECTED]
@40003db5b1502ddf1484 status: local 2/10 remote 0/20
@40003db5b152319a3054 new msg 486743
@40003db5b152319adc34 info msg 486743: bytes 10013292 from
[EMAIL PROTECTED] qp 18512 uid 89
@40003db5b152326534fc starting delivery 48658: msg 486743 to local
[EMAIL PROTECTED]
@40003db5b152326592bc status: local 3/10 remote 0/20
@40003db5b1523265a25c delivery 48656: success:
/home/vpopmail/domains/socdir.fr,anonymous,socdir.fr/
@40003db5b1523265b9cc status: local 2/10 remote 0/20
@40003db5b1523265c584 end msg 486581
@40003db5b1523af80414 delivery 48658: failure:
/home/vpopmail/domains/socdir.fr,,socdir.fr/message_is_looping_/mail_is_loo
p
ing/
@40003db5b1523af8467c status: local 1/10 remote 0/20
@40003db5b1551fba5274 bounce msg 486743 qp 18517
@40003db5b1551fbe5d9c end msg 486743
@40003db5b15520424ef4 delivery 48657: success:
/home/vpopmail/domains/socdir.fr,anonymous,socdir.fr/
@40003db5b15520496374 status: local 0/10 remote 0/20
@40003db5b155205054cc end msg 486739

email loop an loop and loop ...






--
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/








Re: [vchkpw] patch for vpopmail 5.3.8 for .qmailadmin-limits

2002-10-23 Thread tonix (Antonio Nati)

As usual, I don't see anything related to disablesmtp.

Is this feature going to be merged in the main stream, or do I have to 
continue with my private copies?

Anyway, two notes:

1) I feel that would be much better another layout, like:
domain  CHAR(64) PRIMARY KEY,
option  CHAR(64) PRIMARY KEY,
value   CHAR(64) NOT NULL

that would permit to add other options more easily.

2) I'ld like to have other options in qmailadmin-limits, that could permit 
to deny some functions to 'admin' users that are not 'postmaster':
ex. deny_list_create
deny_list_modify
deny_list_users_modify
deny_list_moderators_modify
deny_account_create
deny_alias_create

Any idea or suggestion?

Tonino


At 22/10/02 22/10/02 -0700, Bill Shupp wrote:
On Tuesday, October 22, 2002, at 02:37  PM, Brian Kolaci wrote:



The layout should have been in vmysql.h.  I must have tested
the wrong directory when I thought I tested 5.3.9.  I see
its missing.

This should be appended to vmysql.h:


#ifdef ENABLE_MYSQL_LIMITS
#define LIMITS_TABLE_LAYOUT domain CHAR(64) PRIMARY KEY, \
  maxpopaccounts  INT(10) NOT NULL DEFAULT -1, \
  maxaliases  INT(10) NOT NULL DEFAULT -1, \
  maxforwards INT(10) NOT NULL DEFAULT -1, \
  maxautoresponders   INT(10) NOT NULL DEFAULT -1, \
  maxmailinglists INT(10) NOT NULL DEFAULT -1, \
  diskquota   INT(12) NOT NULL DEFAULT 0, \
  defaultquotaINT(12) NOT NULL DEFAULT 0, \
  disablepop  TINYINT(1) NOT NULL DEFAULT 0, \
  disableimap TINYINT(1) NOT NULL DEFAULT 0, \
  disabledialup   TINYINT(1) NOT NULL DEFAULT 0, \
  disablepasswordchanging TINYINT(1) NOT NULL DEFAULT 0, \
  disablewebmail  TINYINT(1) NOT NULL DEFAULT 0, \
  disablerelayTINYINT(1) NOT NULL DEFAULT 0
#endif

There's also a potential problem reading the ascii file
and interpreting the k or m symbols for quotas.  Bill said
he'd like it to use the format_maildirquota() function, however
I've updated my copy to parse out the symbols and multiply by 1024
or 1024*1024, but I'm not sure if this is the vpopmail standard.

Bill:

Shall I put a patch for these two items ?
I must have sent you the incorrect patch file (I had two, one with
the vmysql.h changes and one without).

Thanks,



I've added the above definition to vmysql.h.  format_maildirquota() also 
accounts for message counts, i.e. Maildir++ style quotas, which is why I 
want to use it rather than just converting the number.  Can you supply me 
a patch of what you did, and I'll work from there?

Regards,

Bill




Inter@zioniInterazioni di Antonio Nati
   http://www.interazioni.it  [EMAIL PROTECTED]