[Dovecot] delivering with maildrop
Can somebody provide maildrop syntax for using deliver-lda as final delivery program during sorting mail in user mailfilter?
i mean replacement for "to" statement
if ( /^(To|Cc):.*dovecot@dovecot.org/:h ) { to $MAIL/.dovecot/ }
On 3/23/2012 6:41 AM, Radim Kolar wrote:
Can somebody provide maildrop syntax for using deliver-lda as final delivery program during sorting mail in user mailfilter?
i mean replacement for "to" statement
if ( /^(To|Cc):.*dovecot@dovecot.org/:h ) { to $MAIL/.dovecot/ }
Dovecot's local delivery agent uses the Sieve language: http://wiki.dovecot.org/LDA/Sieve
The syntax is quite different than maildrop or procmail.
-- Stan
On 23/03/2012 14:02, Stan Hoeppner wrote:
On 3/23/2012 6:41 AM, Radim Kolar wrote:
Can somebody provide maildrop syntax for using deliver-lda as final delivery program during sorting mail in user mailfilter?
i mean replacement for "to" statement
if ( /^(To|Cc):.*dovecot@dovecot.org/:h ) { to $MAIL/.dovecot/ } Dovecot's local delivery agent uses the Sieve language: http://wiki.dovecot.org/LDA/Sieve
The syntax is quite different than maildrop or procmail.
I think that's why he asked the question?
I presume he wants to filter first with maildir, then actually deliver using the dovecot delivery agent?
In answer to the OP: read the maildropex man pages, but you have several options, eg:
to "| someprogram"
or:
xfilter someprogram
someprogram
However, almost certainly I think you want the top option?
Good luck
Ed W
I presume he wants to filter first with maildir, then actually deliver using the dovecot delivery agent? yes
In answer to the OP: read the maildropex man pages, but you have several options, eg:
Yes found that dovecot-lda -m will do it nicely.
echo "mail message Test " | /usr/local/libexec/dovecot/dovecot-lda -m dovecot
just user agents are not able to display message with 0 headers. That confused me.
participants (3)
-
Ed W
-
Radim Kolar
-
Stan Hoeppner