Hi, I have dovecot installed and working fine. I would like (server side) a rule runs on all messages and if it finds certain words in the message it will run a script which will send a new email. How can I create these rules? Do I need another piece of software? Thank you, Romeo
Romeo Theriault wrote:> Hi, I have dovecot installed and working fine. I would like (server > side) a rule runs on all messages and if it finds certain words in the > message it will run a script which will send a new email.In order to use sieve with dovecot, you must 1) be running a very recent version (1.0.RC2 recommended) 2) build dovecot with deliver (--with-deliver) 3) build the sieve plugin out of cvs 4) configure dovecot to use the sieve plugin 5) create a sieve script for the user 6) configure your LDA to use dovecot's deliver You don't have to be running any special software to do #4; the sieve scripts are normal textfiles which will be compiled when deliver first attempts a deliver to that user. See http://wiki.dovecot.org/LDA for more details... John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748
Romeo Theriault wrote:> Hi, I have dovecot installed and working fine. I would like (server > side) a rule runs on all messages and if it finds certain words in the > message it will run a script which will send a new email. > > How can I create these rules? Do I need another piece of software? > > Thank you, > > RomeoIf you actually need to run an external script to create a new mail, rather than forwarding the incoming mail you will probably need to look at procmail, since sieve doesn't allow you to execute external scripts.
On Wed, 12 Jul 2006, Romeo Theriault wrote:> Hi, I have dovecot installed and working fine. I would like (server side) a > rule runs on all messages and if it finds certain words in the message it > will run a script which will send a new email.It depends on what the "new email" is and what to do if a mail has more than one recipient and if you also want to do something, if an user uploads a message via IMAP. If the latter is required, go with an script, but use some heuristic, in order to skip already processed mails, unless you have only few users. (Might be good to favour Maildir over mbox, too.) Otherwise, I'd tend to perform this action during or even before delivery. New Dovecot LDA has Sieve support, procmail is capable of doing anything (except to prepare coffee), Sendmail/MIMEDefang combo can do so during SMTP time. If you already run a SPAM detection filter, maybe you can configure it accordingly. Actually, you can use any script or program, that can run as filter, in chain before any LDA, hence, the possibilities are wide open. Bye, -- Steffen Kaiser
On 2006-07-13 12:52:34 -0500, Eric wrote:> Romeo Theriault wrote: > > This sounds like a good option. Where would I set "trigger mail" up? > > > > Romeo > > > http://www.procmail.org/the truth is here: http://wiki.dovecot.org/LDA sieve is more readable than procmailrc aswell darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org