Re: [Dovecot] deliver & procmail

2008-02-28 Thread Jeff Grossman
> On Thu, 28 Feb 2008, Jeff Grossman wrote:
>
>
> Since /etc/procmailrc is executed as root typically, you probably need to
> make this the first line of it:
>
> DROPPRIVS=YES
>
> At least, that's what I have, and that's my recollection of my reason. (-:
>
> -- Asheesh.

That appears to have done the trick.  Thank you very much.

Jeff



Re: [Dovecot] deliver & procmail

2008-02-28 Thread Asheesh Laroia

On Thu, 28 Feb 2008, Jeff Grossman wrote:


Thanks for the information.  I have one additional question, it is
probably not a Dovecot question more of a Procmail question.  I tried
adding the above code to my /etc/procmailrc file but it did not work.  Do
I have to put that code in each users .procmailrc file?  I would prefer to
just put it in on a system wide basis.

My current /etc/procmailrc file has this line:

DEFAULT=$HOME/Maildir/

Do I keep that line and put the above Deliver code in?  And if so, do I
keep the DEFAULT line at the top or after the Deliver code?


Since /etc/procmailrc is executed as root typically, you probably need to 
make this the first line of it:


DROPPRIVS=YES

At least, that's what I have, and that's my recollection of my reason. (-:

-- Asheesh.

--
It is a poor judge who cannot award a prize.


Re: [Dovecot] deliver & procmail

2008-02-28 Thread Jeff Grossman
> On Feb 28, 2008, at 6:44 AM, Jeff Grossman wrote:
>
>> Timo Sirainen wrote:
>>> On Feb 27, 2008, at 4:49 PM, Carsten Henkel wrote:
>>>
 DELIVER=/usr/local/libexec/dovecot/deliver
 :0 w
 | $DELIVER Maildir
>>>
>>> There shouldn't be Maildir in there. deliver reads dovecot.conf to
>>> figure out where your mails are located.
>>>
>> Sorry for jumping in this thread.  I am currently using Dovecot as
>> my IMAP and POP server.  I am using Sendmail as my MTA and Procmail
>> as my LDA.  Would I gain anything by using Deliver through Procmail
>> like the above example is?  My server is just a small home server
>> with very little e-mail traffic.
>
> If you haven' t noticed any performance slowdowns when accessing new
> mails for the first time, then probably not.
>
> With mboxes it could help. With Maildirs probably not. With v1.1 it
> helps more than with v1.0.
>
>
Thanks for the information.  I have one additional question, it is
probably not a Dovecot question more of a Procmail question.  I tried
adding the above code to my /etc/procmailrc file but it did not work.  Do
I have to put that code in each users .procmailrc file?  I would prefer to
just put it in on a system wide basis.

My current /etc/procmailrc file has this line:

DEFAULT=$HOME/Maildir/

Do I keep that line and put the above Deliver code in?  And if so, do I
keep the DEFAULT line at the top or after the Deliver code?

Thanks,
Jeff



Re: [Dovecot] deliver & procmail

2008-02-28 Thread Timo Sirainen

On Feb 28, 2008, at 6:44 AM, Jeff Grossman wrote:


Timo Sirainen wrote:

On Feb 27, 2008, at 4:49 PM, Carsten Henkel wrote:


DELIVER=/usr/local/libexec/dovecot/deliver
:0 w
| $DELIVER Maildir


There shouldn't be Maildir in there. deliver reads dovecot.conf to  
figure out where your mails are located.


Sorry for jumping in this thread.  I am currently using Dovecot as  
my IMAP and POP server.  I am using Sendmail as my MTA and Procmail  
as my LDA.  Would I gain anything by using Deliver through Procmail  
like the above example is?  My server is just a small home server  
with very little e-mail traffic.


If you haven' t noticed any performance slowdowns when accessing new  
mails for the first time, then probably not.


With mboxes it could help. With Maildirs probably not. With v1.1 it  
helps more than with v1.0.




PGP.sig
Description: This is a digitally signed message part


Re: [Dovecot] deliver & procmail

2008-02-27 Thread Jeff Grossman

Timo Sirainen wrote:

On Feb 27, 2008, at 4:49 PM, Carsten Henkel wrote:


DELIVER=/usr/local/libexec/dovecot/deliver
:0 w
| $DELIVER Maildir


There shouldn't be Maildir in there. deliver reads dovecot.conf to 
figure out where your mails are located.


Sorry for jumping in this thread.  I am currently using Dovecot as my 
IMAP and POP server.  I am using Sendmail as my MTA and Procmail as my 
LDA.  Would I gain anything by using Deliver through Procmail like the 
above example is?  My server is just a small home server with very 
little e-mail traffic.


Thanks,
Jeff


Re: [Dovecot] deliver & procmail

2008-02-27 Thread Carsten Henkel

thanks, it works.

have a nice day

Timo Sirainen schrieb:

On Feb 27, 2008, at 4:49 PM, Carsten Henkel wrote:


DELIVER=/usr/local/libexec/dovecot/deliver
:0 w
| $DELIVER Maildir


There shouldn't be Maildir in there. deliver reads dovecot.conf to 
figure out where your mails are located.




 --
Das Denken ist zwar allen Menschen erlaubt, aber vielen bleibt es erspart.

* Dies ist ein Zufallstext und hat nichts mir dem Empfänger der Mail zu tun


Re: [Dovecot] deliver & procmail

2008-02-27 Thread Timo Sirainen

On Feb 27, 2008, at 4:49 PM, Carsten Henkel wrote:


DELIVER=/usr/local/libexec/dovecot/deliver
:0 w
| $DELIVER Maildir


There shouldn't be Maildir in there. deliver reads dovecot.conf to  
figure out where your mails are located.




PGP.sig
Description: This is a digitally signed message part


Re: [Dovecot] deliver & procmail

2008-02-27 Thread Carsten Henkel

DELIVER=/usr/local/libexec/dovecot/deliver
:0 w
| $DELIVER Maildir

mails are delivered

thanks

Timo Sirainen schrieb:

On Feb 27, 2008, at 4:36 PM, Carsten Henkel wrote:


procmail: Program failure (64) of "/usr/local/libexec/dovecot/deliver"


#define EX_USAGE64  /* command line usage error */

How do you call deliver?



 --
Wenn man zwei Stunden lang mit einem Mädchen zusammensitzt, meint man, 
es wäre eine Minute. Sitzt man jedoch eine Minute auf einem heißen Ofen, 
meint man, es wären zwei Stunden. Das ist Relativität.


* Dies ist ein Zufallstext und hat nichts mir dem Empfänger der Mail zu tun


Re: [Dovecot] deliver & procmail

2008-02-27 Thread Timo Sirainen

On Feb 27, 2008, at 4:36 PM, Carsten Henkel wrote:


procmail: Program failure (64) of "/usr/local/libexec/dovecot/deliver"


#define EX_USAGE64  /* command line usage error */

How do you call deliver?



PGP.sig
Description: This is a digitally signed message part