Discussion:
[Dovecot] deliver & procmail
Carsten Henkel
2008-02-27 14:36:01 UTC
Permalink
hi together,

procmail provides an error by delivery.

procmail: Executing "/usr/local/libexec/dovecot/deliver,Maildir"
procmail: Error while writing to "/usr/local/libexec/dovecot/deliver"
procmail: Program failure (64) of "/usr/local/libexec/dovecot/deliver"
procmail: Assigning "LASTFOLDER=/usr/local/libexec/dovecot/deliver Maildir"
From dovecot-bounces+mailinglisten=chatlabel.de at dovecot.org Wed Feb 27
15:24:29 2008

ls -lisa /usr/local/libexec/dovecot/
insgesamt 20508
3359315 4 drwxr-xr-x 2 root mail 4096 27. Feb 12:51 .
3359314 4 drwxr-xr-x 3 root root 4096 21. Feb 22:53 ..
3359317 184 -rwxr-xr-x 1 root mail 183796 27. Feb 12:51
checkpassword-reply
3359342 3048 -rwxr-xr-x 1 root mail 3116882 27. Feb 12:51 convert-tool
3359326 3224 -rwxr-xr-x 1 mail mail 3294933 27. Feb 12:51 deliver
3359320 400 -rwxr-xr-x 1 root mail 403444 27. Feb 12:51 dict
3359316 936 -rwxr-xr-x 1 root mail 950874 27. Feb 12:51 dovecot-auth
3359348 3060 -rwxr-xr-x 1 root mail 3129139 27. Feb 12:51 expire-tool
3359328 188 -rwxr-xr-x 1 root mail 184512 27. Feb 12:51 gdbhelper
3359329 948 -rwxr-xr-x 1 root mail 963614 27. Feb 12:51 idxview
3359323 3468 -rwxr-xr-x 1 root mail 3544710 27. Feb 12:51 imap
3359322 520 -rwxr-xr-x 1 root mail 524522 27. Feb 12:51 imap-login
3359330 192 -rwxr-xr-x 1 root mail 188447 27. Feb 12:51 listview
3359331 192 -rwxr-xr-x 1 root mail 190004 27. Feb 12:51 logview
3359325 3172 -rwxr-xr-x 1 root mail 3242957 27. Feb 12:51 pop3
3359324 492 -rwxr-xr-x 1 root mail 496819 27. Feb 12:51 pop3-login
3359327 272 -rwxr-xr-x 1 root mail 273003 27. Feb 12:51 rawlog
3359321 204 -rwxr-xr-x 1 root mail 201001 27. Feb 12:51 ssl-build-param


--
Welche grammatikalische Form ist: Du h?ttest niemals geboren werden
sollen? Antwort: Pr?servativ defekt!

* Dies ist ein Zufallstext und hat nichts mir dem Empf?nger der Mail zu tun
Timo Sirainen
2008-02-27 14:42:19 UTC
Permalink
Post by Carsten Henkel
procmail: Program failure (64) of "/usr/local/libexec/dovecot/deliver"
#define EX_USAGE 64 /* command line usage error */

How do you call deliver?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080227/2a0867f0/attachment.bin
Carsten Henkel
2008-02-27 14:49:50 UTC
Permalink
DELIVER=/usr/local/libexec/dovecot/deliver
:0 w
| $DELIVER Maildir

mails are delivered

thanks
Post by Timo Sirainen
Post by Carsten Henkel
procmail: Program failure (64) of "/usr/local/libexec/dovecot/deliver"
#define EX_USAGE 64 /* 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
Timo Sirainen
2008-02-27 14:54:30 UTC
Permalink
Post by Carsten Henkel
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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080227/a48950cc/attachment.bin
Carsten Henkel
2008-02-27 14:58:21 UTC
Permalink
thanks, it works.

have a nice day
Post by Timo Sirainen
Post by Carsten Henkel
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
Jeff Grossman
2008-02-28 04:44:38 UTC
Permalink
Post by Timo Sirainen
Post by Carsten Henkel
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
Timo Sirainen
2008-02-28 17:47:26 UTC
Permalink
Post by Jeff Grossman
Post by Timo Sirainen
Post by Carsten Henkel
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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080228/131a3d09/attachment-0001.bin
Jeff Grossman
2008-02-28 18:02:50 UTC
Permalink
Post by Timo Sirainen
Post by Jeff Grossman
Post by Timo Sirainen
Post by Carsten Henkel
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
Asheesh Laroia
2008-02-28 18:51:24 UTC
Permalink
Post by Jeff Grossman
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.
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.
Jeff Grossman
2008-02-28 19:32:12 UTC
Permalink
Post by Asheesh Laroia
Since /etc/procmailrc is executed as root typically, you probably need to
DROPPRIVS=YES
-- Asheesh.
That appears to have done the trick. Thank you very much.

Jeff

Continue reading on narkive:
Loading...