Re: [vchkpw] delete old mails

2003-03-24 Thread Andrew Kohlsmith
 i have the same idea with this kind problem
 where user can get email his latest email only
 all email that not filter nor move is automaticaly delete
 i think this need some changing on vpopmail code

Can you elaborate?  I'm not sure I understand what you are trying to say.

I use a cron script with the 'find' command to find spam email older than 21 
days and remove it automatically.  It erases about 500 emails a day now.

Regards,
Andrew



Re: [vchkpw] delete old mails

2003-03-24 Thread Justin Heesemann
On Monday 24 March 2003 13:22, Andrew Kohlsmith wrote:
  i have the same idea with this kind problem
  where user can get email his latest email only
  all email that not filter nor move is automaticaly delete
  i think this need some changing on vpopmail code

 Can you elaborate?  I'm not sure I understand what you are trying to say.

 I use a cron script with the 'find' command to find spam email older than
 21 days and remove it automatically.  It erases about 500 emails a day now.

 Regards,
 Andrew

at least paul said it in a way i could understand:
he wants to delete _old_ mail in case new mail arrives but would be bounced if 
that _old_ mail wasn't deleted.

old mail could be mail in the Maildir/cur directory. However, if you retrieve 
mail but do not delete it from your pop3 account, this could be for a reason, 
don't you think? If I'm on the road and just check my mail via web2mail.com 
(or something similar).. I might expect the very important job offer/customer 
request/. to still be in my pop3 account and not being deleted for some 
dumb 7mb spam.

and even if that 7mb mail was more important than any old mail i still have 
in my pop3 account: the sender is notified, that i did not get it and may 
therefor send it again.

Pail: if you really want to do this, i think you would have to alter 
vdelivermail.c yourself, as there is no patch, that i know of.

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




[vchkpw] instal vpopmail

2003-03-24 Thread sonjaya
i want instal vpopmail with mysql 
path mysql is : /usr/local/mysql 
path lib mysql : /usr/local/lib/mysql 
because i configure qmail like this #./configure 
--prefix=/usr/local/mysq
so i configure  mysql like this :
 ./configure --enable-mysql=y --enable-
sqlincdir=/usr/local/lib/mysql  --enable-clear-
passwd=y --enable-ip-alias-domains=y
that i is ok
and i try add domain
 ~vpopmail/bin/vadddomain
/home/vpopmail/bin/vadddomain: error while 
loading shared libraries: libmysqlclient.so.10: 
cannot open shared object file: No such file or 
directory

any body can help me 
thank's






[vchkpw] vpopmail custom bounce

2003-03-24 Thread Medovarszky Zoltan
Hi!

Is it possible to create a per domain custom bounce-no-mailbox message
using the .qmail-default file?

Thanks,
Zoltan





Re: [vchkpw] Re: Best Way To Import cdb to MySQL w/ Alterations

2003-03-24 Thread Peter Palmreuther
Hi Wil,

On Fri, 21 Mar 2003 12:25:42 -0800 Wil Hatfield - HVHM Customer Care wrote:

 I know nothing of strace(). The conversion seems to want to find it at the
 old path of ~vpopmail/domains/someonesdomain.com/ and it gladly converts if
 it finds the information there. But of course all of the paths are wrong

What I could see from vconvert.c source code it searches the location of
vpasswd file in /var/qmail/users/assign.

So I'd suggest you 

- either add the new domain via 'vadddomain' if you switched to a new
  server and the old directories aren't present
- or correct the path in above mentioned file to fit the new location if
  you're working on the same server and only recompiled vpopmail.

vconvert searches a.m. file for correct path, opens 'vpasswd' fiel in
this found location and does a 'vdeldomain' followed by a 'vaddomain'
and than parses the vpasswd file into 'vadduser' (of course called
functions are named a littel bit different, as it uses the API calls
directly, the the principle should be shown correctly).

So you have to use vconvert of vpopmail compiled with MySQL support, for
'vadddomain' and 'vadduser' being able to add the users to database!!!

For security reasons I'd make a backup of old vpopmail directories as
well as of database before trying to convert, there are deleting action
I don't know of all possible consequences!!!

If conversation fails again I'd suggest you send the file produced by

strace -o /tmp/vconvert.log -f -s 1024 ~vpopmail/bin/vconvert -c -m -d domain

namely the file '/tmp/vconvert.log', as attachment for us being able to
inspect what could have went wrong.

After all this is done (successfully) you should call 'qmail-newu' to
update the qmail-user-cdb file according to qmail-user-assign, which
contains the new path(s).

Make sure you keep a copy of original 'assign' file as well, in case
something went wrong you should copy it back and call qmail-newu, so old
paths are prevented.

 What vpopmail needs is a big picture like Dan has put together for qmail. I
 think that would be a very valuable resource. Have one that shows the
 schematic of qmail/vpopmail using .cdb and then one showing qmail/vpopmail
 using mysql. That would be most informative.

... and showing vpopmail using pgsql, cdb, etc ... simply all types of
lookup ... quite big project, which is I assume the reason nobody has
done this big picture before :-)
-- 
Ciao,
 Pit



Re: [vchkpw] unable to chdir

2003-03-24 Thread Peter Palmreuther
Hi Nicola,

On Thu, 20 Mar 2003 17:13:09 +0100 Nicola Delbono wrote:

 open(/var/qmail/users/cdb, O_RDONLY)  = 3
 lseek(3, 328, SEEK_SET) = 328
 read(3, \30\23\0\0\0\0\0\0, 8)= 8
 close(3)= 0
 getpid()= 12338
 getpid()= 12338
 open(/var/vpopmail/users/vpasswd, O_RDONLY) = -1 ENOENT (No such file or
 directory)
 

- What does 

  cdbdump /var/qmail/users/cdb |tr '\000' '\t' |grep 'domain'

  give?

- What version of vpopmail are you using?

- What were your compile-time configure settings / switches?
-- 
Ciao,
 Pit



Re: [vchkpw] instal vpopmail

2003-03-24 Thread Peter Palmreuther
Hi sonjaya,

On Mon, 24 Mar 2003 20:18:11 +0700 sonjaya wrote:

 /home/vpopmail/bin/vadddomain: error while loading shared libraries:
 libmysqlclient.so.10: cannot open shared object file: No such file or
 directory

*gee* Get an overall idea of the system you're working on :-(

What does 

 $ ldconfig -p |grep libmysqlclient

print out?

If this is nothing: 
 - Is the _path_ _to_ your 'libmysqlclient.so' in '/etc/ld.so.conf'?
 - Have you run 'ldconfig' after putting the path into this file?
-- 
Ciao,
 Pit



[vchkpw] weird authentication issue

2003-03-24 Thread Jeremy Gault
Hi all,

Here's a good Monday mystery for everbody.  I am having some
weird authentication issues with vpopmail and Courier IMAP (using the
authvchkpw module.)  Let me explain my setup:

I'm running FreeBSD 5.0-RELEASE, qmail 1.03, vpopmail 5.2.1,
MySQL, and Courier IMAP.  (I installed qmail and vpopmail manually,
MySQL came out of the FreeBSD ports collection, and I've tried both the
FreeBSD port of Courier *and* compiling the latest from the Courier site
myself, with same result.)  At any rate, I also have qmail-pop3d running
and users can authenticate there just fine.

However, when someone tries to login using IMAP, sometimes it
works, sometimes it doesn't.  I've tried this with and without MySQL (at
first with it, and then I disabled MySQL for everything and used
vconvert to get non-MySQL stuff running, and had the same results.)
Here is what a snippet of MySQL logs show:

75 Query   select pw_name, pw_passwd, pw_uid, \
pw_gid, pw_gecos, pw_dir, pw_shell , pw_clear_passwd from vpopmail \
where pw_name = carrir and pw_domain = xxx.com 

(There is actually a domain name there, just masked it for user privacy
and anti-spam reasons. g  Also, the \'s I added for E-Mail purposes,
to show that this was all on one line.)

This is what sometimes happens when a user tries to login
through IMAP.  In this example, someone tries to login to IMAP as
[EMAIL PROTECTED] ... you'd think this would break down to
using 'pw_name = carri' but it doesn't.  Somehow, an r ends up after
the username.  However, it's not always an r .. it can be an e or
any other character.

I've also tried telnetting to port 143 and issuing the login
command (* LOGIN [EMAIL PROTECTED] herpassword) to get in,
and I get an authentication failure (with the same mysql query logs
generated.)

So ... does anyone have any ideas why random spurious
characters would show up sometimes like that?  I have this same type of
setup working flawlessly on a Red Hat 7.3 box.  If it comes down to it,
I can install Slackware or Debian on this new mail server instead of
FreeBSD, but I'd prefer to use FreeBSD as it seems to scale better.
(We're doing antivirus and spam filtering on this thing, so scalability
is important.)

Just hoping someone's ran into / seen this before and can give
me a heads up as to how to fix it.  I've been pulling my hair out for a
few days now recompiling, hacking code, etc. trying to figure out where
this is going wrong, with no luck. :(  Any ideas? :)

TIA,
Jeremy :)

-- 
Jeremy Gault [EMAIL PROTECTED]
Network Administrator / MIS, WinWorld Corporation
(v) 4237-473-8084 // (f) 423-472-9465




Re: [vchkpw] weird authentication issue

2003-03-24 Thread Peter Palmreuther
Hi Jeremy,

On Mon, 24 Mar 2003 10:38:51 -0500 Jeremy Gault wrote:

 Just hoping someone's ran into / seen this before and can give
  me a heads up as to how to fix it.

Search the archive ...
-- 
Pit



Re: [vchkpw] weird authentication issue

2003-03-24 Thread Jeremy Gault
Peter,

Okay, thanks...  found it in there.  What threw me off is I use
authdaemon on my personal RH 7.3 Linux server with several domains and
it works like a charm.  However, here at work I wanted to use FreeBSD
since it can scale better at higher loads, and I ran into this weird
issue.  But, it's all working now. :)

Jeremy

Unless the network is lying to me again, Peter Palmreuther said:
 Hi Jeremy,
 
 On Mon, 24 Mar 2003 10:38:51 -0500 Jeremy Gault wrote:
 
  Just hoping someone's ran into / seen this before and can give
   me a heads up as to how to fix it.
 
 Search the archive ...
 -- 
 Pit
 

-- 
Jeremy Gault [EMAIL PROTECTED]
Network Administrator / MIS, WinWorld Corporation
(v) 4237-473-8084 // (f) 423-472-9465




[vchkpw] customizing quota messages

2003-03-24 Thread Nick Harring
Title: customizing quota messages





I'm new to the list, however I've searched the archives and couldn't find an answer to this, nor could I find it in the docs, so I think I'm not duplicating a previous question. 

I run a site where I have users in a dozen or so domains, and need to customize the quota warn messages, not with custom internal text, but to set the reply-to and other header information to reflect the appopriate domain. I'm using vpopmail 5.2.1 with qmail and courier imap/pop. Is this functionality supported in 5.3 or do I need to patch 5.2.1 to support this? 

Also, if I do patch it and make it flexible, would there be interest in my submitting said patches for inclusion in future versions? I'd really like to see this functionality added, and am willing to do the heavy lifting to get it working, however I'd rather not have to continue to maintain an independent patchset if at all possible.

Thanks in advance,
Nicholas Harring
System Administrator
Webley Systems, Inc.





[vchkpw] About to release new devel version 5.3.20

2003-03-24 Thread Ken Jones
I'm about to release a new 5.3.20 devel version.

Does anyone have any patches they  would like to submit?

Some differences from the 5.3.19 release
1) copies the vlimits.h file into the vpopmail/include directory.
The  latest qmailadmin devel release needs the vlimits.h file.

2) New --enable-rebuild-tcpserver-file option to disable 
rebuilding of that file for sites that use the tcpserver/mysql patch.

3) configure did not display the ldap option at the end
if --enable-ldap=y is used

4) new --enable-active-directory option. This is the
initial active directory module code to let vpopmail
use active directory as an authentication store.

5) new vauth_crypt() api function to encapsulate
the normal crypt() function. Active directory 
servers requrie an active directory call to do 
authentication. It won't just hand back an encrypted
password to use with crypt()

6) replace pw_comp() function with new vauth_crypt()
function. 

Thta's about it.
If no one submits patches by end of day Tuesday, I'll
release 5.3.20 as is. The plan then is to let Bill
Shupp finish up some things before we release a 
new 5.4.0 stable version in association with a new
qmailadmin 1.2.0 release.

Cheers
Ken Jones



Re: [vchkpw] About to release new devel version 5.3.20

2003-03-24 Thread nbari
It will be a good idea to support procmail I still having problems when
bouncing messages.




 I'm about to release a new 5.3.20 devel version.

 Does anyone have any patches they  would like to submit?

 Some differences from the 5.3.19 release
 1) copies the vlimits.h file into the vpopmail/include directory.
 The  latest qmailadmin devel release needs the vlimits.h file.

 2) New --enable-rebuild-tcpserver-file option to disable
 rebuilding of that file for sites that use the tcpserver/mysql patch.

 3) configure did not display the ldap option at the end
 if --enable-ldap=y is used

 4) new --enable-active-directory option. This is the
 initial active directory module code to let vpopmail
 use active directory as an authentication store.

 5) new vauth_crypt() api function to encapsulate
 the normal crypt() function. Active directory
 servers requrie an active directory call to do
 authentication. It won't just hand back an encrypted
 password to use with crypt()

 6) replace pw_comp() function with new vauth_crypt()
 function.

 Thta's about it.
 If no one submits patches by end of day Tuesday, I'll
 release 5.3.20 as is. The plan then is to let Bill
 Shupp finish up some things before we release a
 new 5.4.0 stable version in association with a new
 qmailadmin 1.2.0 release.

 Cheers
 Ken Jones







RE: [vchkpw] Re: Best Way To Import cdb to MySQL w/ Alterations

2003-03-24 Thread Wil Hatfield - HVHM Customer Care
Peter,

As I suspected vconvert doesn't lookup the location of vpasswd based on
assign or any other file for that matter. It only seems to use the vpopmail
home directory. Here is the strace segment that tells the story.

2140  read(3, \377\32\4Table \'vpopmail\' already exists, 34) = 34
2140  open(/sites/home/vpopmail/postoffice/hcx.net/vpasswd, O_RDONLY) = -1
ENOENT (No such file or directory)
2140  write(1, converting hcx.net domain conversion failed\n, 44) = 44
2140  exit(0)   = ?

Of course vpasswd isn't located at /sites/home/vpopmail/ on my new systems.
It is under the users directory. If vconvert had a -u switch which we could
use to designate the user and thus the users home directory I think vconvert
would work great. However it doesn't. If there was a -u switch it could
default to ~vpopmail thus keeping to typical configuration.

Anybody up for a patch?

Wil Hatfield


 -Original Message-
 From: Peter Palmreuther [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 24, 2003 5:47 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [vchkpw] Re: Best Way To Import cdb to MySQL w/ Alterations


 Hi Wil,

 On Fri, 21 Mar 2003 12:25:42 -0800 Wil Hatfield - HVHM Customer
 Care wrote:

  I know nothing of strace(). The conversion seems to want to
 find it at the
  old path of ~vpopmail/domains/someonesdomain.com/ and it gladly
 converts if
  it finds the information there. But of course all of the paths are wrong

 What I could see from vconvert.c source code it searches the location of
 vpasswd file in /var/qmail/users/assign.

 So I'd suggest you

 - either add the new domain via 'vadddomain' if you switched to a new
   server and the old directories aren't present
 - or correct the path in above mentioned file to fit the new location if
   you're working on the same server and only recompiled vpopmail.

 vconvert searches a.m. file for correct path, opens 'vpasswd' fiel in
 this found location and does a 'vdeldomain' followed by a 'vaddomain'
 and than parses the vpasswd file into 'vadduser' (of course called
 functions are named a littel bit different, as it uses the API calls
 directly, the the principle should be shown correctly).

 So you have to use vconvert of vpopmail compiled with MySQL support, for
 'vadddomain' and 'vadduser' being able to add the users to database!!!

 For security reasons I'd make a backup of old vpopmail directories as
 well as of database before trying to convert, there are deleting action
 I don't know of all possible consequences!!!

 If conversation fails again I'd suggest you send the file produced by

 strace -o /tmp/vconvert.log -f -s 1024 ~vpopmail/bin/vconvert -c
 -m -d domain

 namely the file '/tmp/vconvert.log', as attachment for us being able to
 inspect what could have went wrong.

 After all this is done (successfully) you should call 'qmail-newu' to
 update the qmail-user-cdb file according to qmail-user-assign, which
 contains the new path(s).

 Make sure you keep a copy of original 'assign' file as well, in case
 something went wrong you should copy it back and call qmail-newu, so old
 paths are prevented.

  What vpopmail needs is a big picture like Dan has put together
 for qmail. I
  think that would be a very valuable resource. Have one that shows the
  schematic of qmail/vpopmail using .cdb and then one showing
 qmail/vpopmail
  using mysql. That would be most informative.

 ... and showing vpopmail using pgsql, cdb, etc ... simply all types of
 lookup ... quite big project, which is I assume the reason nobody has
 done this big picture before :-)
 --
 Ciao,
  Pit





Re: [vchkpw] customizing quota messages

2003-03-24 Thread Michael Bowe
vpopmail supports custom quota warning messages already.

It does the following :

looks for a .quotawarn.msg file in the domain's directory
(ie vpopmail/domains/domainname)
if it cant find on there then it looks in the domain root directory
(ie vpopmail/domains)

So, all you need to do is create your custom quota warning file
(including custom From and Reply-To headers) and place
it into the domain's directory and you are right to go.

An example of the format if this file can be found in the
quotawarn.msg file that is in the vpopmail source dir.

There also is some basic info in the README.quotas file
in the vpopmail source dir

Michael.


- Original Message -
From: Nick Harring [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 6:38 AM
Subject: [vchkpw] customizing quota messages


 I'm new to the list, however I've searched the archives and couldn't find
an
 answer to this, nor could I find it in the docs, so I think I'm not
 duplicating a previous question.
 I run a site where I have users in a dozen or so domains, and need to
 customize the quota warn messages, not with custom internal text, but to
set
 the reply-to and other header information to reflect the appopriate
domain.
 I'm using vpopmail 5.2.1 with qmail and courier imap/pop. Is this
 functionality supported in 5.3 or do I need to patch 5.2.1 to support
this?
 Also, if I do patch it and make it flexible, would there be interest in my
 submitting said patches for inclusion in future versions? I'd really like
to
 see this functionality added, and am willing to do the heavy lifting to
get
 it working, however I'd rather not have to continue to maintain an
 independent patchset if at all possible.
 Thanks in advance,
 Nicholas Harring
 System Administrator
 Webley Systems, Inc.





RE: [vchkpw] customizing quota messages

2003-03-24 Thread Nick Harring
Title: RE: [vchkpw] customizing quota messages





Michael -
Thanks for the reply, however it begs a follow up question. If I put full headers in the file, does vpopmail write the quota message directly into the users maildir, or does it use qmail-inject to run the message through the normal local delivery path?

Thanks,
Nick


-Original Message-
From: Michael Bowe [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 24, 2003 2:47 PM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] customizing quota messages



vpopmail supports custom quota warning messages already.


It does the following :


looks for a .quotawarn.msg file in the domain's directory
(ie vpopmail/domains/domainname)
if it cant find on there then it looks in the domain root directory
(ie vpopmail/domains)


So, all you need to do is create your custom quota warning file
(including custom From and Reply-To headers) and place
it into the domain's directory and you are right to go.


An example of the format if this file can be found in the
quotawarn.msg file that is in the vpopmail source dir.


There also is some basic info in the README.quotas file
in the vpopmail source dir


Michael.



- Original Message -
From: Nick Harring [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 6:38 AM
Subject: [vchkpw] customizing quota messages



 I'm new to the list, however I've searched the archives and couldn't find
an
 answer to this, nor could I find it in the docs, so I think I'm not
 duplicating a previous question.
 I run a site where I have users in a dozen or so domains, and need to
 customize the quota warn messages, not with custom internal text, but to
set
 the reply-to and other header information to reflect the appopriate
domain.
 I'm using vpopmail 5.2.1 with qmail and courier imap/pop. Is this
 functionality supported in 5.3 or do I need to patch 5.2.1 to support
this?
 Also, if I do patch it and make it flexible, would there be interest in my
 submitting said patches for inclusion in future versions? I'd really like
to
 see this functionality added, and am willing to do the heavy lifting to
get
 it working, however I'd rather not have to continue to maintain an
 independent patchset if at all possible.
 Thanks in advance,
 Nicholas Harring
 System Administrator
 Webley Systems, Inc.






Re: [vchkpw] About to release new devel version 5.3.20

2003-03-24 Thread Justin Heesemann
On Monday 24 March 2003 20:53, Ken Jones wrote:
 I'm about to release a new 5.3.20 devel version.

 Does anyone have any patches they  would like to submit?


 Thta's about it.
 If no one submits patches by end of day Tuesday, I'll
 release 5.3.20 as is. The plan then is to let Bill
 Shupp finish up some things before we release a
 new 5.4.0 stable version in association with a new
 qmailadmin 1.2.0 release.


Fine. I really think we should finish vlimits before 5.4.0. At least to an 
extent where it actually is doing something.

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org





Re: [vchkpw] About to release new devel version 5.3.20

2003-03-24 Thread Brian Kolaci


   On Monday 24 March 2003 20:53, Ken Jones wrote:
I'm about to release a new 5.3.20 devel version.
   
Does anyone have any patches they  would like to submit?
   
   
Thta's about it.
If no one submits patches by end of day Tuesday, I'll
release 5.3.20 as is. The plan then is to let Bill
Shupp finish up some things before we release a
new 5.4.0 stable version in association with a new
qmailadmin 1.2.0 release.
   
   
   Fine. I really think we should finish vlimits before 5.4.0. At least to an 
   extent where it actually is doing something.

Its been working for me since mid last year.  I've submitted
the patches only this year, starting around January.
It essentially wraps the .qmailadmin-limits file access
to an API and also allows the information to be stored
in MySQL.  When I put together the API, I had asked for
other wishlist items, which I put into the structures
but haven't implemented such as permissions.  The quotas,
limits, defaults limits, etc. all work fine and have been
for quite some time.

So I have no idea what you mean that it should do something.

The infrastructure is now there for people to implement the
items they wished for.  If I get spare cycles, I'll look
at them, but the areas I use were done a year ago, except for
domain quotas which was completed last month.

Brian




RE: [vchkpw] customizing quota messages

2003-03-24 Thread Michael Bowe
I believe it writes the warning message direct into the user's Maildir


Michael Bowe (B.App.Sc)
Managing Director - Pipeline Internet
96 Pakington Street, Geelong West. VIC. 3218
Tel (03) 5229 7643
Fax (03) 5229 0282
Mobile 0419 242 136
http://www.pipeline.com.au/
  

-Original Message-
From: Nick Harring [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 25 March 2003 7:49 AM
To: 'Michael Bowe'; [EMAIL PROTECTED]
Subject: RE: [vchkpw] customizing quota messages


Michael - 
Thanks for the reply, however it begs a follow up question. If I put full
headers in the file, does vpopmail write the quota message directly into the
users maildir, or does it use qmail-inject to run the message through the
normal local delivery path?
Thanks, 
Nick 
-Original Message- 
From: Michael Bowe [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 24, 2003 2:47 PM 
To: [EMAIL PROTECTED] 
Subject: Re: [vchkpw] customizing quota messages 


vpopmail supports custom quota warning messages already. 
It does the following : 
looks for a .quotawarn.msg file in the domain's directory 
(ie vpopmail/domains/domainname) 
if it cant find on there then it looks in the domain root directory 
(ie vpopmail/domains) 
So, all you need to do is create your custom quota warning file 
(including custom From and Reply-To headers) and place 
it into the domain's directory and you are right to go. 
An example of the format if this file can be found in the 
quotawarn.msg file that is in the vpopmail source dir. 
There also is some basic info in the README.quotas file 
in the vpopmail source dir 
Michael. 


- Original Message - 
From: Nick Harring [EMAIL PROTECTED] 
To: [EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2003 6:38 AM 
Subject: [vchkpw] customizing quota messages 


 I'm new to the list, however I've searched the archives and couldn't find 
an 
 answer to this, nor could I find it in the docs, so I think I'm not 
 duplicating a previous question. 
 I run a site where I have users in a dozen or so domains, and need to 
 customize the quota warn messages, not with custom internal text, but to 
set 
 the reply-to and other header information to reflect the appopriate 
domain. 
 I'm using vpopmail 5.2.1 with qmail and courier imap/pop. Is this 
 functionality supported in 5.3 or do I need to patch 5.2.1 to support 
this? 
 Also, if I do patch it and make it flexible, would there be interest in my

 submitting said patches for inclusion in future versions? I'd really like 
to 
 see this functionality added, and am willing to do the heavy lifting to 
get 
 it working, however I'd rather not have to continue to maintain an 
 independent patchset if at all possible. 
 Thanks in advance, 
 Nicholas Harring 
 System Administrator 
 Webley Systems, Inc. 
 




RE: [vchkpw] customizing quota messages

2003-03-24 Thread Nick Harring
Title: RE: [vchkpw] customizing quota messages





Thanks much for all the info, we solved our problem!
Thanks again.


Nicholas Harring
System Administrator
Webley Systems, Inc
877-609-4795



-Original Message-
From: Michael Bowe [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 24, 2003 5:06 PM
To: [EMAIL PROTECTED]
Subject: RE: [vchkpw] customizing quota messages



I believe it writes the warning message direct into the user's Maildir



Michael Bowe (B.App.Sc)
Managing Director - Pipeline Internet
96 Pakington Street, Geelong West. VIC. 3218
Tel (03) 5229 7643
Fax (03) 5229 0282
Mobile 0419 242 136
http://www.pipeline.com.au/
 


-Original Message-
From: Nick Harring [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, 25 March 2003 7:49 AM
To: 'Michael Bowe'; [EMAIL PROTECTED]
Subject: RE: [vchkpw] customizing quota messages



Michael - 
Thanks for the reply, however it begs a follow up question. If I put full
headers in the file, does vpopmail write the quota message directly into the
users maildir, or does it use qmail-inject to run the message through the
normal local delivery path?
Thanks, 
Nick 
-Original Message- 
From: Michael Bowe [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 24, 2003 2:47 PM 
To: [EMAIL PROTECTED] 
Subject: Re: [vchkpw] customizing quota messages 



vpopmail supports custom quota warning messages already. 
It does the following : 
looks for a .quotawarn.msg file in the domain's directory 
(ie vpopmail/domains/domainname) 
if it cant find on there then it looks in the domain root directory 
(ie vpopmail/domains) 
So, all you need to do is create your custom quota warning file 
(including custom From and Reply-To headers) and place 
it into the domain's directory and you are right to go. 
An example of the format if this file can be found in the 
quotawarn.msg file that is in the vpopmail source dir. 
There also is some basic info in the README.quotas file 
in the vpopmail source dir 
Michael. 



- Original Message - 
From: Nick Harring [EMAIL PROTECTED] 
To: [EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2003 6:38 AM 
Subject: [vchkpw] customizing quota messages 



 I'm new to the list, however I've searched the archives and couldn't find 
an 
 answer to this, nor could I find it in the docs, so I think I'm not 
 duplicating a previous question. 
 I run a site where I have users in a dozen or so domains, and need to 
 customize the quota warn messages, not with custom internal text, but to 
set 
 the reply-to and other header information to reflect the appopriate 
domain. 
 I'm using vpopmail 5.2.1 with qmail and courier imap/pop. Is this 
 functionality supported in 5.3 or do I need to patch 5.2.1 to support 
this? 
 Also, if I do patch it and make it flexible, would there be interest in my


 submitting said patches for inclusion in future versions? I'd really like 
to 
 see this functionality added, and am willing to do the heavy lifting to 
get 
 it working, however I'd rather not have to continue to maintain an 
 independent patchset if at all possible. 
 Thanks in advance, 
 Nicholas Harring 
 System Administrator 
 Webley Systems, Inc. 
 





[vchkpw] no date in quota messages

2003-03-24 Thread Jesse Reynolds
Is there any way to get the quota messages to include a Date: header, 
or mention of the date and time in the body of the message? Because 
currently the quota warnings don't have dates on them and so it's 
hard to pin point when a users Maildir reached 90%.

Also, it would be grand if you could personalise these messages, eg 
taking the user's real name out of the vpopmail database so they can 
be addressed by their name etc. Also if you could say Hi Joe, you're 
using 91% of your 10Mb quota or some such...

I suppose one would need to write some scripts to do this?

Thanks

Jesse




Re: [vchkpw] About to release new devel version 5.3.20

2003-03-24 Thread Justin Heesemann
On Monday 24 March 2003 22:05, you wrote:
On Monday 24 March 2003 20:53, Ken Jones wrote:
 I'm about to release a new 5.3.20 devel version.

 Does anyone have any patches they  would like to submit?


 Thta's about it.
 If no one submits patches by end of day Tuesday, I'll
 release 5.3.20 as is. The plan then is to let Bill
 Shupp finish up some things before we release a
 new 5.4.0 stable version in association with a new
 qmailadmin 1.2.0 release.
   
Fine. I really think we should finish vlimits before 5.4.0. At least to
an extent where it actually is doing something.

 Its been working for me since mid last year.  I've submitted
 the patches only this year, starting around January.
 It essentially wraps the .qmailadmin-limits file access
 to an API and also allows the information to be stored
 in MySQL.  When I put together the API, I had asked for
 other wishlist items, which I put into the structures
 but haven't implemented such as permissions.  The quotas,
 limits, defaults limits, etc. all work fine and have been
 for quite some time.

 So I have no idea what you mean that it should do something.

 The infrastructure is now there for people to implement the
 items they wished for.  If I get spare cycles, I'll look
 at them, but the areas I use were done a year ago, except for
 domain quotas which was completed last month.

 Brian

ok, sorry brian :)
it is just that i don't use qmailadmin and i don't want to. if i have some 
option in my vlimits which denies imap, then why does vchkpw allow me to 
login via imap ?? this is what i feel vlimit should do. for limiting some 
userfrontend i actually don't need any feature of vpopmail, as i can easily 
use my own mysql tables.

furthermore there is no single ./vsetlimit utility.
this isn't meant to attack you in any way, brian, and i didn't say _you_ 
should do all this. you did a great job adding the vlimits, which are able to 
do more, than they are doing at the moment.

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org





Re: [vchkpw] unable to chdir

2003-03-24 Thread Nicola Delbono

  cdbdump /var/qmail/users/cdb |tr '\000' '\t' |grep 'domain'

  give?

server-key5:/var/vpopmail/bin# cdbdump /var/qmail/users/cdb |tr '\000' '\t' |grep 
'domain1.com'

gives:
+16,61:!domain1.com  -domain1.com10041001
/var/vpopmail/users/domain1.com
+16,64:!domain1.com--domain1.com 10041001/var/vpopmail/domains/domain1.com
-

cdbdump /var/qmail/users/cdb |tr '\000' '\t' |grep 'domainBETA.com'
gives
+10,52:!domainBETA.com--domainBETA.com 10041001
/var/vpopmail/domains/domainBETA.com  -


and for all other domains returns always (depending on the domain)
+10,52:!domainXYZ.com--domainXYZ.com 10041001
/var/vpopmail/domains/domainXYZ.com  -



- What version of vpopmail are you using?

server-key5:/var/vpopmail/bin# ./vadddomain -v
version: 4.9.10


- What were your compile-time configure settings / switches?

Don't know...
Someone else installed it-



Ciao,
 Pit






RE: [vchkpw] no date in quota messages

2003-03-24 Thread Michael Bowe
 -Original Message-
 From: Jesse Reynolds [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, 25 March 2003 10:50 AM
 To: [EMAIL PROTECTED]
 Subject: [vchkpw] no date in quota messages
 
 
 Is there any way to get the quota messages to include a Date: header, 
 or mention of the date and time in the body of the message? Because 
 currently the quota warnings don't have dates on them and so it's 
 hard to pin point when a users Maildir reached 90%.

That is a good idea. 

I believe that deliver_quota_warning() in vdelivermail.c would 
need to be modified to implement this.

I think it would only require a couple of lines of code.

Hopefully one of the C wizards could add this feature?


Michael Bowe (B.App.Sc)
Managing Director - Pipeline Internet
96 Pakington Street, Geelong West. VIC. 3218
Tel (03) 5229 7643
Fax (03) 5229 0282
Mobile 0419 242 136
http://www.pipeline.com.au/
  





Re: [vchkpw] About to release new devel version 5.3.20

2003-03-24 Thread Brian Kolaci

   On Monday 24 March 2003 22:05, you wrote:
   On Monday 24 March 2003 20:53, Ken Jones wrote:
I'm about to release a new 5.3.20 devel version.
   
Does anyone have any patches they  would like to submit?
   
   
Thta's about it.
If no one submits patches by end of day Tuesday, I'll
release 5.3.20 as is. The plan then is to let Bill
Shupp finish up some things before we release a
new 5.4.0 stable version in association with a new
qmailadmin 1.2.0 release.
  
   Fine. I really think we should finish vlimits before 5.4.0. At least 
to
   an extent where it actually is doing something.
   
Its been working for me since mid last year.  I've submitted
the patches only this year, starting around January.
It essentially wraps the .qmailadmin-limits file access
to an API and also allows the information to be stored
in MySQL.  When I put together the API, I had asked for
other wishlist items, which I put into the structures
but haven't implemented such as permissions.  The quotas,
limits, defaults limits, etc. all work fine and have been
for quite some time.
   
So I have no idea what you mean that it should do something.
   
The infrastructure is now there for people to implement the
items they wished for.  If I get spare cycles, I'll look
at them, but the areas I use were done a year ago, except for
domain quotas which was completed last month.
   
Brian
   
   ok, sorry brian :)
   it is just that i don't use qmailadmin and i don't want to. if i have some 
   option in my vlimits which denies imap, then why does vchkpw allow me to 
   login via imap ?? this is what i feel vlimit should do. for limiting some 
   userfrontend i actually don't need any feature of vpopmail, as i can easily 
   use my own mysql tables.
   
   furthermore there is no single ./vsetlimit utility.
   this isn't meant to attack you in any way, brian, and i didn't say _you_ 
   should do all this. you did a great job adding the vlimits, which are able 
to 
   do more, than they are doing at the moment.

Hi Justin,

There are currently ways to limit IMAP.  One thing you
should remember is that the vlimits API is for full domain
limits, not individual users.  There are permission bits in the GID
field in the password entry for the user.  These I believe
work.  Before actually implementing the API, I sent out a request
for all the additional items people wanted to see over and above
what I wanted.  This way the database schema would only have to be
written once, and filled in later.  Some limit the qmailadmin app,
others go directly into vdelivermail.  Others will go into other
areas.

Overall, I think we have a functional system as is, with placeholders
for future features.  The wishlist is high, but only so many things
can make each release.  If you've got the cycles and can crank out
some of it tonight, send in a patch.

Thanks,

Brian




Re: [vchkpw] delete old mails

2003-03-24 Thread dWi saSonO b

 at least paul said it in a way i could understand:
 he wants to delete _old_ mail in case new mail arrives but would be bounced if 
 that _old_ mail wasn't deleted.
 
 old mail could be mail in the Maildir/cur directory. However, if you retrieve 
 mail but do not delete it from your pop3 account, this could be for a reason, 
 don't you think? If I'm on the road and just check my mail via web2mail.com 
 (or something similar).. I might expect the very important job offer/customer 
 request/. to still be in my pop3 account and not being deleted for some 
 dumb 7mb spam.
 
 and even if that 7mb mail was more important than any old mail i still have 
 in my pop3 account: the sender is notified, that i did not get it and may 
 therefor send it again.
 
 Pail: if you really want to do this, i think you would have to alter 
 vdelivermail.c yourself, as there is no patch, that i know of.
 
 -- 
 Mit internetten Grüßen / Best Regards
 ---
 Justin Heesemannionium Technologies
 [EMAIL PROTECTED]www.ionium.org
 
 
 

yeah you said that, problem with pop3 that dont change email from unread to read status
perhaps from deliveries qmail to hold a couple of day before it said over quota ?? 
and some notification to user that quota exceded ?
i think it wil be nice to user.


-- 
thx
onOs



Re: [vchkpw] About to release new devel version 5.3.20

2003-03-24 Thread Ken Jones
On Monday 24 March 2003 06:47 pm, Brian Kolaci wrote:
On Monday 24 March 2003 22:05, you wrote:
On Monday 24 March 2003 20:53, Ken Jones wrote:
 I'm about to release a new 5.3.20 devel version.

 Does anyone have any patches they  would like to submit?


 Thta's about it.
 If no one submits patches by end of day Tuesday, I'll
 release 5.3.20 as is. The plan then is to let Bill
 Shupp finish up some things before we release a
 new 5.4.0 stable version in association with a new
 qmailadmin 1.2.0 release.
   
Fine. I really think we should finish vlimits before 5.4.0. At
least

 to

an extent where it actually is doing something.

 Its been working for me since mid last year.  I've submitted
 the patches only this year, starting around January.
 It essentially wraps the .qmailadmin-limits file access
 to an API and also allows the information to be stored
 in MySQL.  When I put together the API, I had asked for
 other wishlist items, which I put into the structures
 but haven't implemented such as permissions.  The quotas,
 limits, defaults limits, etc. all work fine and have been
 for quite some time.

 So I have no idea what you mean that it should do something.

 The infrastructure is now there for people to implement the
 items they wished for.  If I get spare cycles, I'll look
 at them, but the areas I use were done a year ago, except for
 domain quotas which was completed last month.

 Brian
   
ok, sorry brian :)
it is just that i don't use qmailadmin and i don't want to. if i have
some option in my vlimits which denies imap, then why does vchkpw allow
me to login via imap ?? this is what i feel vlimit should do. for
limiting some userfrontend i actually don't need any feature of
vpopmail, as i can easily use my own mysql tables.
   
furthermore there is no single ./vsetlimit utility.
this isn't meant to attack you in any way, brian, and i didn't say
_you_ should do all this. you did a great job adding the vlimits, which
are able

 to

do more, than they are doing at the moment.

 Hi Justin,

 There are currently ways to limit IMAP.  One thing you
 should remember is that the vlimits API is for full domain
 limits, not individual users.  There are permission bits in the GID
 field in the password entry for the user.  These I believe
 work.  Before actually implementing the API, I sent out a request
 for all the additional items people wanted to see over and above
 what I wanted.  This way the database schema would only have to be
 written once, and filled in later.  Some limit the qmailadmin app,
 others go directly into vdelivermail.  Others will go into other
 areas.

 Overall, I think we have a functional system as is, with placeholders
 for future features.  The wishlist is high, but only so many things
 can make each release.  If you've got the cycles and can crank out
 some of it tonight, send in a patch.

 Thanks,

 Brian

Check the authlib/preauthvchkpw.c in your courier-imap distribution.
It should contain a check for NO_IMAP, which is part of the 
flags vpopmail supports per user. The vmoduser command line
lets you turn on or off imap access if your preauthvchkpw.c file
has that check. The standard courier-imap distribution has had
that check in it for quite awhile.

KenJones



Re: [vchkpw] virtual domain problem

2003-03-24 Thread dWi saSonO b
 new msg 1256690
 info msg 1256690: bytes 528 from [EMAIL PROTECTED] qp 7024 uid 506
 starting delivery 1: msg 1256690 to local
 [EMAIL PROTECTED]
 status: local 1/10 remote 0/20
 delivery 1: failure:
 Sorry,_no_mailbox_here_by_that_name._vpopmail_(#5.1.1)/
 status: local 0/10 remote 0/20
 bounce msg 1256690 qp 7028
 end msg 1256690
 

hehehe today i got that kind message too
i test vpopmail 5.2.1 long time ago and it work

this sample using command mail under console, no MX available

@40003e7fc20c32dbd814 starting delivery 76: msg 110293 to local [EMAIL PROTECTED]
@40003e7fc20c3357073c status: local 1/10 remote 0/20
@40003e7fc20c3365e7d4 delivery 76: failure: 
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/

but to postmaster its work 

@40003e7fc20d02965c74 starting delivery 78: msg 110292 to local [EMAIL PROTECTED]
@40003e7fc20d03250fb4 status: local 1/10 remote 0/20
@40003e7fc20d08a8e564 delivery 78: success: did_0+1+0/qp_14897/
@40003e7fc20d09fe2c94 status: local 0/10 remote 0/20

but now with addition new mysql 4 it dont work :(
anyone confirm with mysql 4 with source vpopmail compile on it .. cant work ?
i'm using MySQL-server-4.0.12-0.i386.rpm built from source


-- 
thx
onOs



Re: [vchkpw] virtual domain problem

2003-03-24 Thread dWi saSonO b
  new msg 1256690
  info msg 1256690: bytes 528 from [EMAIL PROTECTED] qp 7024 uid 506
  starting delivery 1: msg 1256690 to local
  [EMAIL PROTECTED]
  status: local 1/10 remote 0/20
  delivery 1: failure:
  Sorry,_no_mailbox_here_by_that_name._vpopmail_(#5.1.1)/
  status: local 0/10 remote 0/20
  bounce msg 1256690 qp 7028
  end msg 1256690
  

sorry false prosedure instalation
i mixed up with problem localhost and virtual domain  again
hehehehe
i apologize guys :)


-- 
thx
onOs



[vchkpw] try move

2003-03-24 Thread sonjaya
hi , mailist 
 i try to convert  from /etc/passwd to tabel vpopmail.
i try like this 
# ./vconvert -e -S mydomain.com
 then i cek di database , user in /etc/paswd not konvert to database 
, may be i wrong please corectly , i wnat convert user form /etc/passwd to tabel 
vpopmail 
thank's






Re: [vchkpw] About to release new devel version 5.3.20

2003-03-24 Thread Vladimir Kabanov
Ken, have no any patches to add,
only suggestions i wrote earlier:
when sql-logging activated by configure, and database with logs get
crashed -- i guess we shouldnt try to recreate tables...

best,
Vladimir Kabanov.




Re: [vchkpw] About to release new devel version 5.3.20

2003-03-24 Thread Marcin Soltysiak
 Brian Kolaski sent in a new patch today for qmailadmin that
 probably fixes the problem.

Execllent! I spent couple of hours hunting for it :-)

Myabe it could be good for future releases but I miss one feature:

My users wnat to be informed on their mobiles about new mail, so I wrote
wrapper script that could be put into .qmail taking a phone number as a
parameter but qmailadmin lacks of chance for user to put his number into
account details form.

I thought it would be nice if during configure run admin could set smtn like

--with-wrapper-scripts=/usr/bin/one|/usr/bin/two --with-wrapper-label=Featur
e one|Feature two

so that in moduser page there were additiona fields labelled corresponding.

If filled, qmailadmin would put

|/usr/bin/one parameter_from_field_one
|/usr/bin/two parameter_from_field_two
/home/vpopmail/domains/...

This way users could also implement some customized filtering action on
their mailboxes.

Solt