[vchkpw] about ldap

2009-03-11 Thread Bulend Kolay
I use openldap, qmailadmin1.2.12, vpopmail5.4.23 and qmail-1.03 with 
jms1_patch.


I installed vpopmail with onchange.

I want system to add new user to ldap, when I add a new email user using 
qmailadmin.


I followed 
http://productionmonkeys.net/guides/qmail-server/addons/ldap-addressbook 
about that.


But when I run vpopLDAPaddress.pl script I get an error
Script called with wrong number of arguments
How can I correct this problem ?
Any advance?







!DSPAM:49b837b632681002675766!



Re: [vchkpw] vpopmail now has vusage daemon support

2009-03-11 Thread Rick Romero
On Wed, 2009-03-11 at 14:19 -0500, Rick Romero wrote:
> I think it'll work just dandy if vdelivermail set's the HOME variable
> and writes the email to stdout.  
> 

> I attached a patch, but I think testing this is going to be a pita
> unless someone has some sort of shell 'vdelivermail' tester ?

:O Holy crap it worked.  Not only did it compile without error, but it
actually worked as expected.

The command: 

cat 
/home/vpopmail/domains/havokmon.com/rick/Maildir/cur/1236799820.50282.mx.vfemail.net,S=3365:2,S
 | env -v EXT=rick HOST=havokmon.com 
HOME=/home/vpopmail/domains/havokmon.com/rick 
/usr/local/vpopmail/bin/vdelivermailstdout '' r...@havokmon.com 

Causes the ./vdelivermail (which is compiled to send to STDOUT) to
display the email in the terminal

If I run:

cat 
/home/vpopmail/domains/havokmon.com/rick/Maildir/cur/1236799820.50282.mx.vfemail.net,S=3365:2,S
 | env -v EXT=rick HOST=havokmon.com 
HOME=/home/vpopmail/domains/havokmon.com/rick 
/usr/local/vpopmail/bin/vdelivermail '' r...@havokmon.com

The email will be delivered to my mailbox. So I've got a decent test
environment.

Now appending deliver to that first command line:

cat 
/home/vpopmail/domains/havokmon.com/rick/Maildir/cur/1236751658.43485.mx.vfemail.net,S=3436:2,S
 | env EXT=rick HOST=havokmon.com HOME=/home/vpopmail/domains/havokmon.com/rick 
/usr/local/vpopmail/bin/vdelivermailstdout '' r...@havokmon.com | 
/usr/local/libexec/dovecot/deliver

And it worked too!  Wow.  I'm blown away.  I need a glass of champagne.
Not that I didn't think it would work, but that it worked 'pefectly'
without throwing an error on the first try. :)  I think it took me
longer to figure out how to test it in a shell.

The only problem I see is the new message starts with a (null).
(null)Delivered-To: r...@havokmon.com

Now the null occurs whether I use deliver, the original vdelivermail, or
the new vdelivermailstdout, so I think its part of the cat.  I'll work
on it a little more tomorrow, so I can go to bed happy tonite :)

Rick


!DSPAM:49b8293132681656476147!



Re: [vchkpw] vpopmail now has vusage daemon support

2009-03-11 Thread Rick Romero
On Wed, 2009-03-11 at 13:04 -0500, Matt Brookings wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Rick Romero wrote:
> > According to the Wiki, it's supposed to be implemented as such:
> > http://wiki.dovecot.org/LDA/Qmail
> > 
> > Add the -d parameter to specify the destination username: 
> > 
> > |/var/qmail/bin/preline -f /usr/local/libexec/dovecot/deliver -d $...@$user
> > 
> > But the 'core' LDA Wiki shows that to deliver WITHOUT doing a lookup 
> > (because we already know where it will be delivered), you can do:
> > 
> > HOME=/path/to/user/homedir deliver -f $FROM_ENVELOPE
> > 
> > What I was going to test (and just haven't gotten around to it) is what 
> > '-f' is for.  If it's for bounces, then we can essentially ignore it as 
> > long as deliver doesn't complain.
> > Then all vdelivermail would need to do is set the HOME environment 
> > variable, and pipe the message to deliver.
> 
> Sounds easy enough.  I'll look further into this once I get a chance.  
> Probably sometime early next week.
> ..but, if someone has time now, be my guest :)


Ok.  

#1. deliver won't run as root.  This is fine for us I belive, unless you
want to test from the command line as root :/

#2. Once I figured out how to become vpopmail and run commands, simply
doing (I was running csh on FreeBSD):

%set home = /home/vpopmail/domains/havokmon.com/rick/

%
cat 
/home/vpopmail/domains/havokmon.com/rick/Maildir/cur/1236788062.63198.mx.vfemail.net,S=2092:2,S
 | /usr/local/libexec/dovecot/deliver

Delivered a brand new copy of an existing email into my Inbox.  

I think it'll work just dandy if vdelivermail set's the HOME variable
and writes the email to stdout.  

I assume this would be a compile time option?  Or how about one of those
fancy, "if the program is called as 'x' do x, otherwise do y" filename
checks?

I attached a patch, but I think testing this is going to be a pita
unless someone has some sort of shell 'vdelivermail' tester ?

Oh - and I'm not sure what the best way is to 'chomp' /Maildir off the
maildir variable..  I'm just a hacker.

Rick



!DSPAM:49b80efb32682044720806!
--- vpopmail-5.4.17/vdelivermail.c  Thu Jun 29 14:36:43 2006
+++ vpopmail-5.4.17-vfe/vdelivermail.c  Wed Mar 11 14:14:11 2009
@@ -411,6 +411,7 @@
   size_t headerlen;
   int write_fd;
   char quota[80];
+  char home[150];

 headerlen = strlen (extra_headers);
 msgsize += headerlen;
@@ -426,7 +427,19 @@
 maildir, tm, pid, hostname, (long unsigned) msgsize);

 read_quota_from_maildir (maildir, quota, sizeof(quota));
-
+#ifdef DELIVER_STDOUT
+/* export HOME environment variable - strip /Maildir/ */
+sprintf(home, "HOME=%s", maildir);
+putenv(home);
+/* echo email */
+if (fdcopy (1, read_fd, extra_headers, headerlen) != 0) {
+   printf("echo to stdout failed\n");
+   return -2;
+}else{
+   /* Email sent to STDOUT */
+   return 0;
+}
+#else
 /* open the new email file */
 if ((write_fd=open(local_file_tmp, O_CREAT|O_RDWR, S_IRUSR|S_IWUSR)) == 
-1) {
 if (errno == EDQUOT) return -1;
@@ -487,6 +500,7 @@

 /* return failure (sync/close failed, message NOT delivered) */
 return -2;
+#endif
 }

 /*

Re: [vchkpw] vpopmail now has vusage daemon support

2009-03-11 Thread Rick Romero
On Wed, 2009-03-11 at 14:19 -0500, Rick Romero wrote:
> 
> Oh - and I'm not sure what the best way is to 'chomp' /Maildir off the
> maildir variable..  I'm just a hacker.

scratch that, looks like vpw->pw_dir can probably be used instead of
maildir... still have to test though..

> Rick
> 
> 
> 
> 


!DSPAM:49b8113632681552171626!



Re: [vchkpw] vpopmail domain quotas

2009-03-11 Thread Rick Macdougall

real estate agent wrote:

 I need to know how to unsubscribe again...




From the message headers:

List-Post: 
List-Help: 
List-Unsubscribe: 
List-Subscribe: 

Regards,

Rick


!DSPAM:49b7ff9c32683841819056!



Re: [vchkpw] vpopmail now has vusage daemon support

2009-03-11 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rick Romero wrote:
> According to the Wiki, it's supposed to be implemented as such:
> http://wiki.dovecot.org/LDA/Qmail
> 
> Add the -d parameter to specify the destination username: 
> 
> |/var/qmail/bin/preline -f /usr/local/libexec/dovecot/deliver -d $...@$user
> 
> But the 'core' LDA Wiki shows that to deliver WITHOUT doing a lookup (because 
> we already know where it will be delivered), you can do:
> 
> HOME=/path/to/user/homedir deliver -f $FROM_ENVELOPE
> 
> What I was going to test (and just haven't gotten around to it) is what '-f' 
> is for.  If it's for bounces, then we can essentially ignore it as long as 
> deliver doesn't complain.
> Then all vdelivermail would need to do is set the HOME environment variable, 
> and pipe the message to deliver.

Sounds easy enough.  I'll look further into this once I get a chance.  Probably 
sometime early next week.
..but, if someone has time now, be my guest :)
- --
/*
Matt BrookingsGnuPG Key D9414F70
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkm3/TcACgkQ6QgvSNlBT3CudACfbPyboLopZhmXnW43Wt0G+Tnd
s9AAoKHd5ZXO/0TElsQ0A//zWpLHdJd+
=7Bji
-END PGP SIGNATURE-


[vchkpw] pop3 question

2009-03-11 Thread Remo Mattei
Hello since we are talking about Dovecot which I use for my imap, I wonder
about what you guys think about using it as pop3 instead of using qmail
pop3?

Just wonder. (I use qmail pop3 now no problems whatsoever)

Remo


!DSPAM:49b7fcc732681694517887!



Re: [vchkpw] vpopmail now has vusage daemon support

2009-03-11 Thread Rick Romero
On Wed, 2009-03-11 at 11:27 -0500, Matt Brookings wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Rick Widmer wrote:
> > 
> > 
> > Rick Romero wrote:
> >>
> >> I was considering changing vdelivermail to have a stdout option, where
> >> you could pipe from vdelivermail to Dovecot's deliver for 'final'
> >> delivery instead of direct to Maildir within your .qmail-default file.
> >> That 'should' allow everything else to occur normally, but get those
> >> indexes updated as well.  I think just 'HOME' needs to be exported, but
> >> I haven't tested it yet.
> > 
> > I know there are a few people around who would like to see that happen.
> 
> I'm not really familiar with Dovecot's delivery processes.  Does anyone have
> links to documentation they can provide that would indicate how vdelivermail
> should execute a Dovecot delivery process?


According to the Wiki, it's supposed to be implemented as such:
http://wiki.dovecot.org/LDA/Qmail

Add the -d parameter to specify the destination username: 

|/var/qmail/bin/preline -f /usr/local/libexec/dovecot/deliver -d $...@$user

But the 'core' LDA Wiki shows that to deliver WITHOUT doing a lookup (because 
we already know where it will be delivered), you can do:

HOME=/path/to/user/homedir deliver -f $FROM_ENVELOPE

What I was going to test (and just haven't gotten around to it) is what '-f' is 
for.  If it's for bounces, then we can essentially ignore it as long as deliver 
doesn't complain.
Then all vdelivermail would need to do is set the HOME environment variable, 
and pipe the message to deliver.

Rick





!DSPAM:49b7fbd732685638620574!



Re: [vchkpw] vpopmail domain quotas

2009-03-11 Thread real estate agent

 I need to know how to unsubscribe again...


Thanks,
Susan
- Original Message - 
From: "Matt Brookings" 

To: 
Sent: Wednesday, March 11, 2009 12:24 PM
Subject: [vchkpw] vpopmail domain quotas



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The trunk now contains updates that enable full domain quota support.  The 
commit
added support for enforcing message counts on a domain.  If upgrading to 
trunk,
be sure to recompile the vusage daemon, it also includes updates that 
allow counts

to work.
- --
/*
   Matt BrookingsGnuPG Key D9414F70
   Software developer Systems technician
   Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkm35cQACgkQ6QgvSNlBT3AtPACdHA3XjyTl7DypLkd/nXvBvync
i+EAnAl+RpHPoR+QDu9ADyQaEflLhwcs
=roJZ
-END PGP SIGNATURE-





!DSPAM:49b7fa8d32689510711587!



Re: [vchkpw] vpopmail now has vusage daemon support

2009-03-11 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rick Widmer wrote:
> 
> 
> Rick Romero wrote:
>>
>> I was considering changing vdelivermail to have a stdout option, where
>> you could pipe from vdelivermail to Dovecot's deliver for 'final'
>> delivery instead of direct to Maildir within your .qmail-default file.
>> That 'should' allow everything else to occur normally, but get those
>> indexes updated as well.  I think just 'HOME' needs to be exported, but
>> I haven't tested it yet.
> 
> I know there are a few people around who would like to see that happen.

I'm not really familiar with Dovecot's delivery processes.  Does anyone have
links to documentation they can provide that would indicate how vdelivermail
should execute a Dovecot delivery process?
- --
/*
Matt BrookingsGnuPG Key D9414F70
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkm35msACgkQ6QgvSNlBT3BEHQCgoeYCEd6Pn54F8xPbmPsBzInG
5hMAoIj2YDMqhN97PRF0mO3+W5SLWrLO
=XGAa
-END PGP SIGNATURE-


[vchkpw] vpopmail domain quotas

2009-03-11 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The trunk now contains updates that enable full domain quota support.  The 
commit
added support for enforcing message counts on a domain.  If upgrading to trunk,
be sure to recompile the vusage daemon, it also includes updates that allow 
counts
to work.
- --
/*
Matt BrookingsGnuPG Key D9414F70
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkm35cQACgkQ6QgvSNlBT3AtPACdHA3XjyTl7DypLkd/nXvBvync
i+EAnAl+RpHPoR+QDu9ADyQaEflLhwcs
=roJZ
-END PGP SIGNATURE-


Re: [vchkpw] Courier support

2009-03-11 Thread Mohsen Pahlevanzadeh
You can use mysql module of courier,But its config is difficult.
On Tue, 2009-03-10 at 10:06 -0500, Matt Brookings wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> It's a sad tale, but a true one.  We're all probably aware that Courier-MTA 
> has dropped support for vpopmail.
> This has forced many of us to move to the speedier, and in my opinion, 
> overall better, Dovecot package --An easy
> move indeed.
> 
> While working on implementation of the updated quota code, which involved 
> wading through hundreds of lines
> of code hacked and slashed out of Courier-MTA's libraries to provide support 
> for Courier-IMAP, I realized
> what a good thing this could be.
> 
> Dovecot's quota system does not require Maildir++ support inherently.  The 
> vpopmail library, now compiled in
> with vusage support, can provide a quick plugin to Dovecot that totally 
> removes the requirement of writing
> and reading the maildirsize files.
> 
> My question is this: Courier-IMAP has dropped us, should we drop Courier-IMAP?
> - --
> /*
> Matt BrookingsGnuPG Key D9414F70
> Software developer Systems technician
> Inter7 Internet Technologies, Inc. (815)776-9465
> */
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iEYEARECAAYFAkm2gg0ACgkQ6QgvSNlBT3BcGQCgltzL1FHw/LJp9UYxzYOpzprq
> v6QAoI7wbajsyCLsJoDXv1Ra2OYP+Bmq
> =7GK2
> -END PGP SIGNATURE-


!DSPAM:49b7e4fe32681625015452!



Re: [vchkpw] Current stable versions

2009-03-11 Thread Julien Escario

Antti Kanes a écrit :

Hi all,

This might not be exactly the right mailing list for this question, but as
the tricky part of the installation has previously been that of vchkpw and
mysql authentication, I'll bother you guys with my situation. Sorry if it
seems rather off-topic:

We're in the process of renewing one of our email servers, currently running
qmail (1.03) + vpopmail (5.4.17) + vqadmin (2.3.6)  + qmailadmin (1.2.11) +
courier-imap (3.0.8) + mailddrop (2.0.4) + ezmlm (0.53-idx-0.41) +
autorespond (2.0.2) + rblsmtpd, using mysql authentication and
pop-before-smtp, qmail-scanner (2.04) for clamav, spamassassin. 


Any suggestions of which versions (or alternatives) to use in a production
environment at this point? 


Quite some good choices for me. You'll have to migrate from courier-imap to 
dovecot but others are really good software.



What kind of environment are others using for multi-site mailservers,
requiring web based tools for managing the domains (=vqadmin) and email
accounts (=qmailadmin), with imap/pop3 and webmail support (we're running
IMP on the webmail front)?


What do you mean by 'multi-site' ?
Every webmail today is using imap so you can replicate it anywhere, not a 
problem.
The admin console (vqadmin/qmailadmin) have to be installed on the same server 
or via an NFS export (which is what we're doing).



As I recall, the mysql authentication was rather problematic with the
current setup, on the part of courier-imap at least. 


What is your problem with mysql backend ?


Will the current versions work smoothly with the authentication? Have there
been any (significant) changes that would necessitate some kind of migration
of the current data (as opposed to just building new versions of the
software and copying existing data from the old server)?


I don't think so. All is relying on vpopmail which has been longtime asleep.
Thing are moving but I recommend you to not use any end-2008/early-2009 version 
(except for security patches, of course).



Also, any ideas if qmail supports smtp-auth out of the box these days? (so
we could finally dump the pop-before-smtp)


Yeah, simply use the milkys md-patch.
You'll have TONS of auth schemes and methods (with multiceckpw).


Again, sorry if this is off-topic; If someone does find time to answer me, I
suppose it'd be better to do so just to my address, outside the mailing list
:).


No prob. I think this will be useful. A little remain from time to time.

Have fun with vpopmail.

Julien Escario

P.S. : I'm happy to see vpopmail's dev to go forward. This software is great and 
really used around the w(orld)eb so seeing it disapear would be really annoying.


!DSPAM:49b768e932681468598062!