Can anyone help me with such problem? After I define mail filter (below) a file .sieve is being created: "require ["fileinto", "regex", "date", "relational", "vacation"]; ### BEGIN FILTER_ID:4 `test -e "$DEFAULT/.Test_Dir" && exit 1 || exit 0` if ( $RETURNCODE != 1 ) { `maildirmake -f "Test_Dir" $DEFAULT` `chmod -R 0700 "$DEFAULT/.Test_Dir"` `echo "INBOX.Test_Dir" >> $DEFAULT/courierimapsubscribed` } if (/^Subject: .*test1/:h) { exception { ID4EndFolder = "$DEFAULT/.Test_Dir/" to $ID4EndFolder } } ### END FILTER_ID:4 keep;" When I send a message that sieve script is not processed and sieve.log is being created: sieve: info: started log at Nov 07 21:27:05. main script: line 7: error: unexpected character(s) starting with '`'. main script: line 7: error: unexpected unknown characters found at (the presumed) end of file. main script: error: parse failed. Below my syslog part: Nov 7 21:27:05 xisrv46003 postfix/smtp[12325]: 071B66876B: to=<[email protected]>, relay=127.0.0.1[ 127.0.0.1]:10024, delay=9.2, delays=5.1/0/0/4.1, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0 .1]:10025): 250 2.0.0 Ok: queued as 2D5B36891C) Nov 7 21:27:05 xisrv46003 postfix/qmgr[3605]: 071B66876B: removed Nov 7 21:27:05 xisrv46003 dovecot: lda([email protected]): Error: sieve: failed to open script /var/vmail/artinfo.com.pl/automat/.sieve (view user logfile /var/vmail/artinfo.com.pl/automat/.sieve.log for more information) Thanks ...
The avove script is a maildrop script and not a sieve file. seems as if maildrop and not sibve is selected under System > server config > mail. Change that to sievem then delte your filetr and create it again.
Dovcot and Sieve ... Thanks for fast reply. I've done what You said and it probablu should wrok but... whit "dovecot" and "sieve" option it creates inbox with root priviliges. More - since I hav /var/vmail as a symlink it says: "11.11.2014-14:08 - WARNING - Action aborted, file is a symlink: //var/vmail/artinfo.com.pl/test4 11.11.2014-14:08 - WARNING - Action aborted, file is a symlink: //var/vmail/artinfo.com.pl/test4 11.11.2014-14:08 - WARNING - Action aborted, file is a symlink: //var/vmail/artinfo.com.pl/test4 11.11.2014-14:08 - WARNING - Action aborted, file is a symlink: //var/vmail/artinfo.com.pl/test4 11.11.2014-14:08 - DEBUG - Created Directory: /var/vmail/artinfo.com.pl/test4 11.11.2014-14:08 - WARNING - Action aborted, file is a symlink: /var/vmail/artinfo.com.pl/test4/Maildir 11.11.2014-14:08 - WARNING - Action aborted, file is a symlink: /var/vmail/artinfo.com.pl/test4/Maildir 11.11.2014-14:08 - DEBUG - Created Maildir /var/vmail/artinfo.com.pl/test4/Maildir with subfolder: 11.11.2014-14:08 - DEBUG - Set ownership on /var/vmail/artinfo.com.pl/test4 11.11.2014-14:08 - WARNING - Action aborted, file is a symlink: /var/vmail/artinfo.com.pl/test4/Maildir/.Sent 11.11.2014-14:08 - WARNING - Action aborted, file is a symlink: /var/vmail/artinfo.com.pl/test4/Maildir/.Sent 11.11.2014-14:08 - WARNING - Action aborted, file is a symlink: /var/vmail/artinfo.com.pl/test4/Maildir/subscriptions 11.11.2014-14:08 - DEBUG - Created Maildir /var/vmail/artinfo.com.pl/test4/Maildir with subfolder: Sent 11.11.2014-14:08 - WARNING - Action aborted, file is a symlink: /var/vmail/artinfo.com.pl/test4/Maildir/.Drafts 11.11.2014-14:08 - WARNING - Action aborted, file is a symlink: /var/vmail/artinfo.com.pl/test4/Maildir/.Drafts 11.11.2014-14:08 - WARNING - Action aborted, file is a symlink: /var/vmail/artinfo.com.pl/test4/Maildir/subscriptions 11.11.2014-14:08 - DEBUG - Created Maildir /var/vmail/artinfo.com.pl/test4/Maildir with subfolder: Drafts 11.11.2014-14:08 - WARNING - Action aborted, file is a symlink: /var/vmail/artinfo.com.pl/test4/Maildir/.Trash 11.11.2014-14:08 - WARNING - Action aborted, file is a symlink: /var/vmail/artinfo.com.pl/test4/Maildir/.Trash 11.11.2014-14:08 - WARNING - Action aborted, file is a symlink: /var/vmail/artinfo.com.pl/test4/Maildir/subscriptions 11.11.2014-14:08 - DEBUG - Created Maildir /var/vmail/artinfo.com.pl/test4/Maildir with subfolder: Trash 11.11.2014-14:08 - WARNING - Action aborted, file is a symlink: /var/vmail/artinfo.com.pl/test4/Maildir/.Junk 11.11.2014-14:08 - WARNING - Action aborted, file is a symlink: /var/vmail/artinfo.com.pl/test4/Maildir/.Junk 11.11.2014-14:08 - WARNING - Action aborted, file is a symlink: /var/vmail/artinfo.com.pl/test4/Maildir/subscriptions 11.11.2014-14:08 - DEBUG - Created Maildir /var/vmail/artinfo.com.pl/test4/Maildir with subfolder: Junk 11.11.2014-14:08 - DEBUG - Calling function 'update' from plugin 'maildeliver_plugin' raised by event 'mail_user_insert'." Everything (besides mail_filter) works fine with maildrop option. Other question is if there any possibiity to run pearl scripts via maildrop?