Re: [vchkpw] Dovecot-lda for vpopmail

2012-09-24 Thread Alessio Cecchi

Il 24/09/2012 16:57, Rick Romero ha scritto:


Quoting Alessio Cecchi ales...@skye.it:


Il 24/09/2012 15:34, Rick Romero ha scritto:

Heres a patch for 5.4.17 - I've been running this for a while now.

Basically, run the deliver command after the tempfile is created (to 
verify delivery and quota) then unlink the tempfile and return.  I 
tried to make it all fancy with build options, then figured I was 
the only one who would do it this wacky way.  :)


This version passes the home directory to deliver, so you don't need 
to run the dovecot lookup service.
I also had to specify the timezone to get the correct timestamp for 
some reason.


Rick



Thanks Rick!

your patch is very helpful for me, also passes the HOME to deliver is 
a good idea.


Another useful options, for delivery, will be to add the extension 
via -m mailbox so dovecot will deliver the email directly in this 
folder (if vpopmail is build with enable-qmail-ext).


An email to alessio-vpopml@ will be delivery to the vpopml folder.

In the enviroment, what is the variable for the extension (vpopml)?


There is none at the point deliver is called - by the time it gets 
called, all the qmail-ext work has been done so the HOME directory is 
the correct user's Maildir directory.  'deliver' just needs to drop 
the email into that location and update the indexes.  That's what I 
was shooting for.  Besides using qmail-ext, I still have old vacation 
and forwards that I didn't want to worry about. vdelivermail still 
handles all of that.  I just wanted deliver to update indexes on 
delivery.


I hadn't thought about it - but the version of Dovecot on my front-end 
servers that do delivery is still in the 1.2 series.  So there may be 
some slight differences if you're running 2.0 deliver.


Rick


I'm using dovecot 2.1 with native auth-vpopmail. With 1.2 native 
auth-vpopmail have some limits.


My idea is to run dovecot-lda like:

/usr/lib/dovecot/deliver -d $EXT@$HOST -m $Extension

where if original recipient is alessio-li...@cecchi.it Extension is 
lists, but in vpopmail environment how is called Extension (if is 
present)?


Thanks

--
Alessio Cecchi is:
@ ILS - http://www.linux.it/~alessice/
on LinkedIn - http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/
@ PLUG - ex-Presidente, adesso senatore a vita, http://www.prato.linux.it


!DSPAM:50607a9b34217963441700!



Re: [vchkpw] Dovecot-lda for vpopmail

2012-09-24 Thread Rick Romero


Quoting Alessio Cecchi ales...@skye.it:


Il 24/09/2012 16:57, Rick Romero ha scritto:


Quoting Alessio Cecchi ales...@skye.it:


Il 24/09/2012 15:34, Rick Romero ha scritto:

Heres a patch for 5.4.17 - I've been running this for a while now.

Basically, run the deliver command after the tempfile is created  
(to verify delivery and quota) then unlink the tempfile and  
return.  I tried to make it all fancy with build options, then  
figured I was the only one who would do it this wacky way.  :)


This version passes the home directory to deliver, so you don't  
need to run the dovecot lookup service.
I also had to specify the timezone to get the correct timestamp  
for some reason.


Rick



Thanks Rick!

your patch is very helpful for me, also passes the HOME to deliver  
is a good idea.


Another useful options, for delivery, will be to add the  
extension via -m mailbox so dovecot will deliver the email  
directly in this folder (if vpopmail is build with  
enable-qmail-ext).


An email to alessio-vpopml@ will be delivery to the vpopml folder.

In the enviroment, what is the variable for the extension (vpopml)?


There is none at the point deliver is called - by the time it gets  
called, all the qmail-ext work has been done so the HOME directory  
is the correct user's Maildir directory.  'deliver' just needs to  
drop the email into that location and update the indexes.  That's  
what I was shooting for.  Besides using qmail-ext, I still have old  
vacation and forwards that I didn't want to worry about.  
vdelivermail still handles all of that.  I just wanted deliver to  
update indexes on delivery.


I hadn't thought about it - but the version of Dovecot on my  
front-end servers that do delivery is still in the 1.2 series.  So  
there may be some slight differences if you're running 2.0 deliver.


Rick


I'm using dovecot 2.1 with native auth-vpopmail. With 1.2 native  
auth-vpopmail have some limits.


My idea is to run dovecot-lda like:

/usr/lib/dovecot/deliver -d $EXT@$HOST -m $Extension

where if original recipient is alessio-li...@cecchi.it Extension is  
lists, but in vpopmail environment how is called Extension (if  
is present)?


I don't think that's right - according to the Dovecot Wiki -m is  
Mailbox.  Like INBOX or Trash, etc..

http://wiki2.dovecot.org/LDA

If you wish to use Dovecot's mailbox lookup, you can just use:
/usr/lib/dovecot/deliver -d $EXT@$HOST

I don't use thatt, what's why I pass the HOME variable.

Rick



!DSPAM:5060803034217488412077!



Re: [vchkpw] Dovecot-lda for vpopmail

2012-09-24 Thread Alessio Cecchi

Il 24/09/2012 17:45, Rick Romero ha scritto:


Quoting Alessio Cecchi ales...@skye.it:


Il 24/09/2012 16:57, Rick Romero ha scritto:


Quoting Alessio Cecchi ales...@skye.it:


Il 24/09/2012 15:34, Rick Romero ha scritto:

Heres a patch for 5.4.17 - I've been running this for a while now.

Basically, run the deliver command after the tempfile is created 
(to verify delivery and quota) then unlink the tempfile and 
return.  I tried to make it all fancy with build options, then 
figured I was the only one who would do it this wacky way.  :)


This version passes the home directory to deliver, so you don't 
need to run the dovecot lookup service.
I also had to specify the timezone to get the correct timestamp 
for some reason.


Rick



Thanks Rick!

your patch is very helpful for me, also passes the HOME to deliver 
is a good idea.


Another useful options, for delivery, will be to add the 
extension via -m mailbox so dovecot will deliver the email 
directly in this folder (if vpopmail is build with enable-qmail-ext).


An email to alessio-vpopml@ will be delivery to the vpopml folder.

In the enviroment, what is the variable for the extension (vpopml)?


There is none at the point deliver is called - by the time it gets 
called, all the qmail-ext work has been done so the HOME directory 
is the correct user's Maildir directory.  'deliver' just needs to 
drop the email into that location and update the indexes.  That's 
what I was shooting for.  Besides using qmail-ext, I still have old 
vacation and forwards that I didn't want to worry about. 
vdelivermail still handles all of that.  I just wanted deliver to 
update indexes on delivery.


I hadn't thought about it - but the version of Dovecot on my 
front-end servers that do delivery is still in the 1.2 series.  So 
there may be some slight differences if you're running 2.0 deliver.


Rick


I'm using dovecot 2.1 with native auth-vpopmail. With 1.2 native 
auth-vpopmail have some limits.


My idea is to run dovecot-lda like:

/usr/lib/dovecot/deliver -d $EXT@$HOST -m $Extension

where if original recipient is alessio-li...@cecchi.it Extension is 
lists, but in vpopmail environment how is called Extension (if is 
present)?


I don't think that's right - according to the Dovecot Wiki -m is 
Mailbox.  Like INBOX or Trash, etc..

http://wiki2.dovecot.org/LDA


Yes but, with Postfix for example, you can set:

/usr/lib/dovecot/deliver -d ${user}@${domain} -m ${extension}

so if you receive an email to rick-vch...@domain.com (or 
rick+vch...@domain.com according to your recipient_delimiter) dovecot 
will delivery the email in the Mailbox vchkpw and this is very useful.


I would like to reproduce this behavior with qmail.

--
Alessio Cecchi is:
@ ILS - http://www.linux.it/~alessice/
on LinkedIn - http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/
@ PLUG - ex-Presidente, adesso senatore a vita, http://www.prato.linux.it


!DSPAM:50608ed634211858513917!



Re: [vchkpw] Dovecot-lda for vpopmail

2012-09-24 Thread Rick Romero


Quoting Alessio Cecchi ales...@skye.it:


Il 24/09/2012 17:45, Rick Romero ha scritto:


Quoting Alessio Cecchi ales...@skye.it:


Il 24/09/2012 16:57, Rick Romero ha scritto:


Quoting Alessio Cecchi ales...@skye.it:


Il 24/09/2012 15:34, Rick Romero ha scritto:

Heres a patch for 5.4.17 - I've been running this for a while now.

Basically, run the deliver command after the tempfile is  
created (to verify delivery and quota) then unlink the tempfile  
and return.  I tried to make it all fancy with build options,  
then figured I was the only one who would do it this wacky way.  
 :)


This version passes the home directory to deliver, so you don't  
need to run the dovecot lookup service.
I also had to specify the timezone to get the correct timestamp  
for some reason.


Rick



Thanks Rick!

your patch is very helpful for me, also passes the HOME to  
deliver is a good idea.


Another useful options, for delivery, will be to add the  
extension via -m mailbox so dovecot will deliver the email  
directly in this folder (if vpopmail is build with  
enable-qmail-ext).


An email to alessio-vpopml@ will be delivery to the vpopml folder.

In the enviroment, what is the variable for the extension (vpopml)?


There is none at the point deliver is called - by the time it  
gets called, all the qmail-ext work has been done so the HOME  
directory is the correct user's Maildir directory.  'deliver'  
just needs to drop the email into that location and update the  
indexes.  That's what I was shooting for.  Besides using  
qmail-ext, I still have old vacation and forwards that I didn't  
want to worry about. vdelivermail still handles all of that.  I  
just wanted deliver to update indexes on delivery.


I hadn't thought about it - but the version of Dovecot on my  
front-end servers that do delivery is still in the 1.2 series.   
So there may be some slight differences if you're running 2.0  
deliver.


Rick


I'm using dovecot 2.1 with native auth-vpopmail. With 1.2 native  
auth-vpopmail have some limits.


My idea is to run dovecot-lda like:

/usr/lib/dovecot/deliver -d $EXT@$HOST -m $Extension

where if original recipient is alessio-li...@cecchi.it Extension  
is lists, but in vpopmail environment how is called Extension  
(if is present)?


I don't think that's right - according to the Dovecot Wiki -m is  
Mailbox.  Like INBOX or Trash, etc..

http://wiki2.dovecot.org/LDA


Yes but, with Postfix for example, you can set:

/usr/lib/dovecot/deliver -d ${user}@${domain} -m ${extension}

so if you receive an email to rick-vch...@domain.com (or  
rick+vch...@domain.com according to your recipient_delimiter)  
dovecot will delivery the email in the Mailbox vchkpw and this is  
very useful.


I would like to reproduce this behavior with qmail.


Ahh I see what you mean.  In qmail the -ext doesn't have a specific  
destination, it's just a unique address.  If you are going to assume  
that -blah will be a specific mailbox, you could use the EXT2  
variable.
Here's a list of variables:   
http://ipucu.enderunix.org/view.php?id=1929lang=en


Rick



!DSPAM:50608ffa34219032040418!



Re: [vchkpw] Dovecot-lda for vpopmail

2012-09-24 Thread Alessio Cecchi

Il 24/09/2012 18:53, Rick Romero ha scritto:


Quoting Alessio Cecchi ales...@skye.it:


Il 24/09/2012 17:45, Rick Romero ha scritto:


Quoting Alessio Cecchi ales...@skye.it:


Il 24/09/2012 16:57, Rick Romero ha scritto:


Quoting Alessio Cecchi ales...@skye.it:


Il 24/09/2012 15:34, Rick Romero ha scritto:

Heres a patch for 5.4.17 - I've been running this for a while now.

Basically, run the deliver command after the tempfile is created 
(to verify delivery and quota) then unlink the tempfile and 
return.  I tried to make it all fancy with build options, then 
figured I was the only one who would do it this wacky way.  :)


This version passes the home directory to deliver, so you don't 
need to run the dovecot lookup service.
I also had to specify the timezone to get the correct timestamp 
for some reason.


Rick



Thanks Rick!

your patch is very helpful for me, also passes the HOME to 
deliver is a good idea.


Another useful options, for delivery, will be to add the 
extension via -m mailbox so dovecot will deliver the email 
directly in this folder (if vpopmail is build with 
enable-qmail-ext).


An email to alessio-vpopml@ will be delivery to the vpopml folder.

In the enviroment, what is the variable for the extension 
(vpopml)?


There is none at the point deliver is called - by the time it gets 
called, all the qmail-ext work has been done so the HOME directory 
is the correct user's Maildir directory.  'deliver' just needs to 
drop the email into that location and update the indexes.  That's 
what I was shooting for.  Besides using qmail-ext, I still have 
old vacation and forwards that I didn't want to worry about. 
vdelivermail still handles all of that.  I just wanted deliver to 
update indexes on delivery.


I hadn't thought about it - but the version of Dovecot on my 
front-end servers that do delivery is still in the 1.2 series.  So 
there may be some slight differences if you're running 2.0 deliver.


Rick


I'm using dovecot 2.1 with native auth-vpopmail. With 1.2 native 
auth-vpopmail have some limits.


My idea is to run dovecot-lda like:

/usr/lib/dovecot/deliver -d $EXT@$HOST -m $Extension

where if original recipient is alessio-li...@cecchi.it Extension is 
lists, but in vpopmail environment how is called Extension (if 
is present)?


I don't think that's right - according to the Dovecot Wiki -m is 
Mailbox.  Like INBOX or Trash, etc..

http://wiki2.dovecot.org/LDA


Yes but, with Postfix for example, you can set:

/usr/lib/dovecot/deliver -d ${user}@${domain} -m ${extension}

so if you receive an email to rick-vch...@domain.com (or 
rick+vch...@domain.com according to your recipient_delimiter) dovecot 
will delivery the email in the Mailbox vchkpw and this is very useful.


I would like to reproduce this behavior with qmail.


Ahh I see what you mean.  In qmail the -ext doesn't have a specific 
destination, it's just a unique address.  If you are going to assume 
that -blah will be a specific mailbox, you could use the EXT2 variable.
Here's a list of variables: 
http://ipucu.enderunix.org/view.php?id=1929lang=en


Rick


:-)

Thank you!

--
Alessio Cecchi is:
@ ILS - http://www.linux.it/~alessice/
on LinkedIn - http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/
@ PLUG - ex-Presidente, adesso senatore a vita, http://www.prato.linux.it


!DSPAM:5060914834211168415842!



Re: [vchkpw] dovecot LDA with vpopmail

2009-07-18 Thread Tren Blackburn
I know one this has been something that's been batted around a few times now. 
Last I recall the developer (and I'm sorry, I can't remember his name off of 
the top of my head) was working on some custom modifications to vdelivermail. 
Unfortunately what is required is fairly complex. The pipe method while 
functional is potentially dangerous. Especially when you start considering 
nesting them. If something breaks in the middle, your mail is lost due to how 
error codes are handled between pipes. I think he was working with the actual 
file descriptors being passedbut I'll admit my memory is fuzzy, and it got 
beyond my understanding near the end.

Just search the archives. The full thread should be there. 

HTH,

Tren

- Original Message -
From: news n...@ger.gmane.org
To: vchkpw@inter7.com vchkpw@inter7.com
Sent: Sat Jul 18 04:13:56 2009
Subject: [vchkpw] dovecot LDA with vpopmail

hi

i am using on my qmail/vpopmail installation dovecot as IMAP/POP3
server. at the moment i have only some of the users having their mail
filtered through sieve/delivered to the mailbox by dovecot LDA. for this
users i have added a line to their .qmail-default file file as written
on http://wiki.dovecot.org/LDA/Qmail
--   |/var/qmail/bin/preline -f /usr/lib/dovecot/deliver -d $...@$user

this works like a charm. but i would like to have dovecots LDA used for
ALL my users and i haven't found a way to activate it for EACH user
without changing/creating every users .qmail-default file.

as i understand, vdelivermail is delivering the mails to the users
mailboxes? so i would have to say to vdelivermail that it should use
dovecots deliver, or what is the right way to do that? or is it just not
possible?

greets  thanks for help
   KoS





!DSPAM:4a61c60432712200319617!