[vchkpw] vpopmail + openldap + qmail

2003-10-11 Thread Muhamad Soleh Fajari



Hi, I am new in ldap. I want to set a mail server 
with openldap authentification. I already set openldap and qmail (+ qmail-ldap 
patch), but I little confuse after read a milis archive in http://www.mail-archive.com/[EMAIL PROTECTED]/msg12889.html

1. From that, archive Jens Jahr said that we must 
not use qmail-ldap + vpopmail-ldap. what's that mean ? Is that mean that I must 
install qmail without qmail-ldap patch ?

2. In step # 2 from that mail, we must add 
this entry in core.schema

 
objectclass ( 2.5.6.6 NAME 
'person' DESC 'RFC2256: a 
person' SUP top 
STRUCTURAL MAY ( sn $ cn $ 
userPassword $ telephoneNumber $ seeAlso $ description  $ mail 
$ 
workphonenumber $ cellphonenumber $ postalAddress 
$ 
title $ telexNumber $street $givenName $registeredAddress  $cellphone) 
)
but when I run slapd, I get error about it 
misslng "mail" attribut. But no answer about it ( in the 
arcvhives)

c. Is there any cool step by step (new) 
installation about qmail + vpopmail + ldap ??


[vchkpw] mysql error

2003-10-11 Thread Sébastien FOUTREL
Hello I installed a QMAIL + Vpopmail + courier-imap + Qmailadmin + MySql
from this page : http://sylvestre.ledru.info/howto/howto_qmail_vpopmail.php
I configure the vpopmail to use mysql and tried accessing to mysql from bash
with the user/pass used by vpopmail. It worked.
but after compiling and installing vpop when I try to do a vadddomain or
vadduser I always got a :
qmail-newu: fatal: bad format in users/assign
vmysql: sql error[3]: Access denied for user: '[EMAIL PROTECTED]' to
database 'vpopmail'
Error: Domain does not exist

I use a MySQL 4.0.13 on debian/testing.





[vchkpw] different per user quotas on a single domain

2003-10-11 Thread Animesh Bansriyar

Hi All,

Is it possible to implement per user level per domain based quotas with
vpopmail. Suppose I have a virtual domain using vpopmail and want some
users to have 2 MB quotas, some to have 5 MB quotas and some say, 10 MB
quotas. What do I do.

I have searched the Mailing List Archives, Google extensively but was
unable to come up triumphs.

I would be really grateful if somebody could send me some pointers on
this.

With Warm Regards,
Animesh




Re: [vchkpw] different per user quotas on a single domain

2003-10-11 Thread Michael Bowe



 Hi All,

 Is it possible to implement per user level per domain based quotas with
 vpopmail. Suppose I have a virtual domain using vpopmail and want some
 users to have 2 MB quotas, some to have 5 MB quotas and some say, 10 MB
 quotas. What do I do.

Just use the vmoduser command to alter the quota for any given user

You can also nominate a quota to allocate a user when running the vadduser
command

Michael.




Re: [vchkpw] different per user quotas on a single domain

2003-10-11 Thread Justin Heesemann
On Saturday 11 October 2003 13:47, Animesh Bansriyar wrote:
 Hi All,

 Is it possible to implement per user level per domain based quotas
 with vpopmail. Suppose I have a virtual domain using vpopmail and
 want some users to have 2 MB quotas, some to have 5 MB quotas and
 some say, 10 MB quotas. What do I do.

 I have searched the Mailing List Archives, Google extensively but was
 unable to come up triumphs.

 I would be really grateful if somebody could send me some pointers on
 this.

 With Warm Regards,
 Animesh

domain quotas need vlimits, so you have to use the -devel branch.
--enable-domainquotas=y  is the config switch.
then it should be fine. user quotas get checked first, domain quotas 
afterwards (so you can even do things like: user1 2mb, user2 10mb and 
domain 10mb = when user1 has reached his quota, user2 can only use 
8mb..

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





[vchkpw] Re: Re-injection of email from .qmail-default

2003-10-11 Thread Ahmet Takci
Hi,

   Have you tried serialmail ??

 http://cr.yp.to/serialmail.html

Regards
Ahmet Takci



Jeff Koch [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

 We've have searched the mailing lists archives on this list and several
 other but have not found the answer to this question. Maybe someone can
advise.

 We would like to know if it is possible to re-inject mail for delivery by
 smtp after vpopmail has dropped it into a domain's .qmail-default file.
 Basically, we're trying to setup a mailserver that stores messages for
some
 domains but routes messages by smtp for others AFTER performing some
 operations on them by commands within the .qmail-default file.

 We do not want to forward the messages to an email address but instead
want
 to route them using smtp to another mailserver willing to accept email for
 that domain.

 Any suggestions would be appreciated.



 Best Regards,

 Jeff Koch










[vchkpw] vmoddomlimits doesn't know kilo- and megabyte-abbreviations

2003-10-11 Thread Jochen Schug
Hi,

I noticed that vmoddomlimits doesn't care about a trailing 'M' or 'K' 
when specifing quotas... Instead of complaining that there's an unknown 
character in the quota, it silently ignores it. I ended up with a domain 
with 100 byte quota and 20 byte per-user quota, and only noticed it from 
the bouncing messages in the qmail-send log.

An example to illustrate what I mean:

$ vmoddomlimits -Q 100M -q 20M example.com

results in a 100 byte quota for domain example.com, and 20 byte default 
quota for users.

IMO, vmoddomlimits should be changed to accept these abbreviations, or 
at least complain when I specify a quota and it can't handle it properly 
- instead of just silently ignoring invalid characters.

Regards
Jochen



Re: [vchkpw] different per user quotas on a single domain

2003-10-11 Thread cyko
Quoting Justin Heesemann [EMAIL PROTECTED]:

 On Saturday 11 October 2003 13:47, Animesh Bansriyar wrote:
  Hi All,
 
  Is it possible to implement per user level per domain based quotas
  with vpopmail. Suppose I have a virtual domain using vpopmail and
  want some users to have 2 MB quotas, some to have 5 MB quotas and
  some say, 10 MB quotas. What do I do.
 
  I have searched the Mailing List Archives, Google extensively but was
  unable to come up triumphs.
 
  I would be really grateful if somebody could send me some pointers on
  this.
 
  With Warm Regards,
  Animesh
 
 domain quotas need vlimits, so you have to use the -devel branch.
 --enable-domainquotas=y  is the config switch.
 then it should be fine. user quotas get checked first, domain quotas 
 afterwards (so you can even do things like: user1 2mb, user2 10mb and 
 domain 10mb = when user1 has reached his quota, user2 can only use 
 8mb..
 
 -- 
 Mit internetten Grüßen / Best Regards
 ---
 Justin Heesemannionium Technologies
 [EMAIL PROTECTED]www.ionium.org
 

I don't believe thats entirely what he's asking.  I wanted to implement a
similar system I believe Justin is trying to describe:

Say, during setup of vpopmail initially, I setup a default quota of 10m.  I use
the latest vpopmail/qmailadmin and don't allow domain postmasters to change
quotas (must be done through commandline only).

Now, let's say I add 3 domains: domain1.com, domain2.com, and domain3.com. 
domain1.com is to have all their subsequent users to have 10m quotas - no big
deal.  Everytime their postmaster logs in and creats a new user, it gets
assigned a 10m quota.

Now, I want all the users of domain2.com to have a 20m quota.  Is there a way to
automate this?  Initially, when [EMAIL PROTECTED] is created it is
automatically assigned a 10m quota and I would have to change that myself. NOTE:
I am not talking about domain quotas (since that is always the response I get)!
 I'm talking about per user domain quotas aside from the set quota during
initial configuration.

So with that in mind, I want domain2.com's users to EACH have a 20m quota now. 
Since I am not the one adding the users (their postmaster is through qmailadmin
and he doesn't have the ability to modify quotas...as how can you trust that
he'll put 20m each time, heh?

Does this make sense?  I believe this is what Justin was trying to describe and
what I've been trying to find an answer to for months now.  If this currently
isn't possible, does anyone else think this would be a great feature to add?

Take care all,
:Patrick Lahni
 [EMAIL PROTECTED]




-
This mail sent through IMP: http://horde.org/imp/




Re: [vchkpw] different per user quotas on a single domain

2003-10-11 Thread Jochen Schug
[EMAIL PROTECTED] wrote:

Say, during setup of vpopmail initially, I setup a default quota of 10m.  I use
the latest vpopmail/qmailadmin and don't allow domain postmasters to change
quotas (must be done through commandline only).
Now, let's say I add 3 domains: domain1.com, domain2.com, and domain3.com. 
domain1.com is to have all their subsequent users to have 10m quotas - no big
deal.  Everytime their postmaster logs in and creats a new user, it gets
assigned a 10m quota.

Now, I want all the users of domain2.com to have a 20m quota.  Is there a way to
automate this?  Initially, when [EMAIL PROTECTED] is created it is
automatically assigned a 10m quota and I would have to change that myself. NOTE:
I am not talking about domain quotas (since that is always the response I get)!
I'm talking about per user domain quotas aside from the set quota during
initial configuration.
So with that in mind, I want domain2.com's users to EACH have a 20m quota now. 
Since I am not the one adding the users (their postmaster is through qmailadmin
and he doesn't have the ability to modify quotas...as how can you trust that
he'll put 20m each time, heh?

Does this make sense?  I believe this is what Justin was trying to describe and
what I've been trying to find an answer to for months now.  If this currently
isn't possible, does anyone else think this would be a great feature to add?
Unless I'm not getting this right, vmoddomlimits should be exactly what 
you need:

vmoddomlimits: usage: [options] domain
options: -v ( display the vpopmail version number )
-S ( show current settings )
-Q quota ( set domain quota )
-q quota ( set default user quota )
So a one-time vmoddomlimits -q 20971520 domain2.com, together with a 
vmoduser -q 20971520 [EMAIL PROTECTED] for the postmaster 
account, and you're done.

Regards
Jochen



[vchkpw] clearopensmtp fatal

2003-10-11 Thread Alexander Bruns
Hi,

the programm clearopensmtp does not work:

[EMAIL PROTECTED] etc]# pwd
/home/vpopmail/etc
[EMAIL PROTECTED] etc]# ls -al
total 28
drwxr-xr-x2 vpopmail vchkpw   4096 Oct 11 17:22 .
drwxr-xr-x8 vpopmail vchkpw   4096 Oct 11 17:16 ..
-rw-r--r--1 vpopmail vchkpw 25 Oct 11 13:23 inc_deps
-rw-r--r--1 vpopmail vchkpw 32 Oct 11 13:23 lib_deps
-rw-r--r--1 vpopmail vchkpw 61 Oct 11 17:22 open-smtp
-rw-r--r--1 vpopmail vchkpw  0 Oct 11 17:14 open-smtp.lock
-rw-rw-r--1 vpopmail vchkpw744 Oct 11 17:20 tcp.smtp
-rw-r--r--1 vpopmail vchkpw   2930 Oct 11 11:58 tcp.smtp.cdb
[EMAIL PROTECTED] etc]# /home/vpopmail/bin/clearopensmtp 
tcprules: fatal: unable to create ~vpopmail/etc/tcp.smtptmp.5960: file does 
not exist
Broken pipe

Can anybody tell me why?

Greetings

Alexander Bruns




[vchkpw] vmoduser does not create maildirsize

2003-10-11 Thread Alexander Bruns
Hi,

I reinstalled vpopmail 5.2.1 with quota-support. The Mailserver is running for 
at least 1 Year now without quota, but for one single domain I have to enable 
quota.

I tried to change the quota for one single user:

/home/vpopmail/bin/vmoduser -q 1S [EMAIL PROTECTED]

then the line in /home/vpopmail/domains/bla.com/vpasswd is changed from
NOQUOTA to 1S

But the necessary file in 
/home/vpopmail/domains/bla.com/alexander.bruns/Maildir/maildirsize
is not generated? 

Is this the default behaviour of vmoduser and vsetuserquota?

Do I habe to do a manuel maildirmake -q 1S 
/home/vpopmail/domains/bla.com/alexander.bruns/Maildir/ ? for each user I 
want to add quota support to?

Greetings

Alex




Re: [vchkpw] different per user quotas on a single domain

2003-10-11 Thread Alexander Bruns
Hi,

I am traying to get quota work for my installation og vpopmail stable (5.2.1)


 Unless I'm not getting this right, vmoddomlimits should be exactly what
 you need:

 vmoddomlimits: usage: [options] domain
 options: -v ( display the vpopmail version number )
  -S ( show current settings )
  -Q quota ( set domain quota )
  -q quota ( set default user quota )

 So a one-time vmoddomlimits -q 20971520 domain2.com, together with a
 vmoduser -q 20971520 [EMAIL PROTECTED] for the postmaster
 account, and you're done.

I do not have the command /home/vpopmail/bin/vmoddomlimits.
Is this a feature of the develment versions of vpopmail?

Greeting

Alex




Re: [vchkpw] different per user quotas on a single domain

2003-10-11 Thread Jochen Schug
Alexander Bruns wrote:

I am traying to get quota work for my installation og vpopmail stable (5.2.1)
 

I don't know how reliable the quota support in vpopmail-5.2.1 is, in the 
developement branch it's working pretty good. One big improvement is the 
per-domain quota, and not just on a per-user basis (I don't want my 
users to create 100 accounts per domain that take up 20 megs each).

I tried to reproduce the behaviour you mentioned in your other mail, but 
I have vpopmail compiled with a default quota size, so the maildirsize 
file is created automatically when I add a user.

Unless I'm not getting this right, vmoddomlimits should be exactly what
you need:
vmoddomlimits: usage: [options] domain
options: -v ( display the vpopmail version number )
-S ( show current settings )
-Q quota ( set domain quota )
-q quota ( set default user quota )
So a one-time vmoddomlimits -q 20971520 domain2.com, together with a
vmoduser -q 20971520 [EMAIL PROTECTED] for the postmaster
account, and you're done.
   

I do not have the command /home/vpopmail/bin/vmoddomlimits.
Is this a feature of the develment versions of vpopmail?
 

Yes, it is indeed. I'm currently running 5.3.27.

Regards
Jochen



Re: [vchkpw] Vpopmail + sa-learn (SpamAssassin)

2003-10-11 Thread Nate Davis
Doug,

Could you give us a little more information on how you edited this file...

Like what you added, specifically, as well as where I should put my $disallow_rules_in_sql = 0;

I am really hoping to set up something similar with MailDrop, and if I can get this working, then I think I can figure out the rest.  I am sure hoping I can figure it all out :)  I just want a bayen database per domain.  Not per user.  

Thanks,
Nate


On Oct 6, 2003, at 8:13 AM, Doug Ledbetter wrote:

I had to make a small change to one of the SpamAssassin scripts because normally it won't read certain settings from a database for security reasons.  Notice I have modified the source of SpamAssassin!  Please use at your own risk!  As long as access to your database is secure, you shouldn't have any problems.


/usr/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin/Conf.pm


Around line 280:


sub parse_scores_only {
  my ($self) = @_;
#  $self->_parse ($_[1], 1); # don't copy $rules!
  $self->_parse ($_[1], $disallow_rules_in_sql); # allow copying of rules -dougl
}


Where:


my $disallow_rules_in_sql = 0;



- Here's how I run the spamd daemon:

spamd -d -a -v -x -q -u vpopmail -H /home/vpopmail/





Re: [vchkpw] different per user quotas on a single domain

2003-10-11 Thread cyko
Quoting Jochen Schug [EMAIL PROTECTED]:

 Alexander Bruns wrote:
 
 I am traying to get quota work for my installation og vpopmail stable
 (5.2.1)
   
 
 I don't know how reliable the quota support in vpopmail-5.2.1 is, in the 
 developement branch it's working pretty good. One big improvement is the 
 per-domain quota, and not just on a per-user basis (I don't want my 
 users to create 100 accounts per domain that take up 20 megs each).
 
 I tried to reproduce the behaviour you mentioned in your other mail, but 
 I have vpopmail compiled with a default quota size, so the maildirsize 
 file is created automatically when I add a user.
 
 Unless I'm not getting this right, vmoddomlimits should be exactly what
 you need:
 
 vmoddomlimits: usage: [options] domain
 options: -v ( display the vpopmail version number )
  -S ( show current settings )
  -Q quota ( set domain quota )
  -q quota ( set default user quota )
 
 So a one-time vmoddomlimits -q 20971520 domain2.com, together with a
 vmoduser -q 20971520 [EMAIL PROTECTED] for the postmaster
 account, and you're done.
 
 
 
 I do not have the command /home/vpopmail/bin/vmoddomlimits.
 Is this a feature of the develment versions of vpopmail?
   
 
 Yes, it is indeed. I'm currently running 5.3.27.
 
 Regards
 Jochen
 

If I understand vmoddomlimits correctly, that sets a TOTAL quota on the domain.
 Say I set the domain quota for domain2.com to 20m, that means that the entire
domain can only use 20m to be split between all their users.

So for domain2.com, I need a way to set vmoduser for each user created under
domain2.  However, you must remember that this needs to be entirely automated
for that domain.  The admins cannot constantly be overlooking that domain to
vmoduser that account manually.

Perhaps the authors of vpopmail could add another column to mysql for per-domain
USER quota.

domain1 - each user created gets a 10m quota
domain2 - each user created gets a 15m quota
etc etc

Does this seem to clarify at all?

:Patrick Lahni
 [EMAIL PROTECTED]




-
This mail sent through IMP: http://horde.org/imp/




Re: [vchkpw] different per user quotas on a single domain

2003-10-11 Thread Tom Collins
On Saturday, October 11, 2003, at 10:32  AM, [EMAIL PROTECTED] wrote:
Perhaps the authors of vpopmail could add another column to mysql for 
per-domain
USER quota.

domain1 - each user created gets a 10m quota
domain2 - each user created gets a 15m quota
etc etc
Does this seem to clarify at all?
This already exists, at least in the development tree.  Take a look at 
the -q option (not to be confused with -Q) of vmoddomlimits.

--
Tom Collins  -  [EMAIL PROTECTED]
Note: The Tom Logic offices will be closed October 23 to November 18.
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/



Re: [vchkpw] vmoddomlimits doesn't know kilo- and megabyte-abbreviations

2003-10-11 Thread Tom Collins
On Saturday, October 11, 2003, at 07:07  AM, Jochen Schug wrote:
An example to illustrate what I mean:

$ vmoddomlimits -Q 100M -q 20M example.com

results in a 100 byte quota for domain example.com, and 20 byte 
default quota for users.
The current development builds parse the -q option properly, but not 
-Q.  I've added this as a bug report on SourceForge, and we should be 
able to get it into the next release.

--
Tom Collins  -  [EMAIL PROTECTED]
Note: The Tom Logic offices will be closed October 23 to November 18.
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/



Re: [vchkpw] mysql error

2003-10-11 Thread Tom Collins
On Saturday, October 11, 2003, at 03:12  AM, Sébastien FOUTREL wrote:
Hello I installed a QMAIL + Vpopmail + courier-imap + Qmailadmin + 
MySql
from this page : 
http://sylvestre.ledru.info/howto/howto_qmail_vpopmail.php
I configure the vpopmail to use mysql and tried accessing to mysql 
from bash
with the user/pass used by vpopmail. It worked.
but after compiling and installing vpop when I try to do a vadddomain 
or
vadduser I always got a :
qmail-newu: fatal: bad format in users/assign
vmysql: sql error[3]: Access denied for user: 
'[EMAIL PROTECTED]' to
database 'vpopmail'
Error: Domain does not exist
If your users/assign file is corrupted, it could cause many parts of 
vpopmail to fail.  You need to edit it and fix any problems, and then 
run qmail-newu to regenerate users/cdb.  Note that users/assign should 
end with a line that contains a single period.

What version of vpopmail are you using?  New versions store mysql login 
settings in ~vpopmail/etc/vpopmail.mysql.  Older versions required you 
to edit the vmysql.h file to insert the username and password.  Make 
sure the login information is set properly in vmysql.h before building 
vpopmail.

--
Tom Collins  -  [EMAIL PROTECTED]
Note: The Tom Logic offices will be closed October 23 to November 18.
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/



Re: [vchkpw] clearopensmtp fatal

2003-10-11 Thread Michael Bowe
 the programm clearopensmtp does not work:


 [EMAIL PROTECTED] etc]# /home/vpopmail/bin/clearopensmtp
 tcprules: fatal: unable to create ~vpopmail/etc/tcp.smtptmp.5960: file
does
 not exist
 Broken pipe

 Can anybody tell me why?

When you ./configured vpopmail, it looks like you used

--enable-tcpserver-file=~vpopmail/etc/tcp.smtp

when in fact you must use the full path eg

--enable-tcpserver-file=/home/vpopmail/etc/tcp.smtp

Michael.




Re: [vchkpw] vmoddomlimits doesn't know kilo- and megabyte-abbreviations

2003-10-11 Thread Tom Collins
On Saturday, October 11, 2003, at 03:36  PM, Jochen Schug wrote:
Tom Collins wrote:
On Saturday, October 11, 2003, at 07:07  AM, Jochen Schug wrote:
An example to illustrate what I mean:

$ vmoddomlimits -Q 100M -q 20M example.com

results in a 100 byte quota for domain example.com, and 20 byte 
default quota for users.
The current development builds parse the -q option properly, but not 
-Q.  I've added this as a bug report on SourceForge, and we should be 
able to get it into the next release.
I've only checked it with 5.3.27, not the very last release. 5.3.27 
doesn't handle -q correct:
It was in 5.3.28.  My entry from the ChangeLog:

Tom Collins
- Update vmoddomlimits to use format_maildirquota().
If someone else doesn't do it, I'll make sure -Q gets the same 
treatment.

--
Tom Collins  -  [EMAIL PROTECTED]
Note: The Tom Logic offices will be closed October 23 to November 18.
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/