Hello, I'm trying to move from procmail to dovecot sieve. I found the translation script at http://www.dovecot.org/tools/procmail2sieve.pl It works well except the following use cases: * ^From:.*myemail at mydomain.com.* | formail -I"X-Priority: 2 (high)" -I"X-mydomain-com-seen: yes" | $SENDMAIL -oi \ myemail at mydomain2.com \ myemail at mydomain3.com :0c * ^From:.*myemail at mydomain.com.* ! +1123456789 at mysmsprovider.com :0c * ^(To|Cc|Bcc):.*myemail at mydomain.com.* ! myemail at mydomain2.com myemail at mydomain3.com Is there a possibility to support these use cases (can be done manually)? How does forwarding to another domain work at the deliver process? :copy seems not to be supported, right? Thank you. Ciao, Gerhard
Hi Gerhard, Am 28.06.2014 07:40, schrieb Gerhard Wiesinger:> I'm trying to move from procmail to dovecot sieve. > > How does forwarding to another domain work at the deliver process? > > :copy seems not to be supported, right?http://wiki2.dovecot.org/Pigeonhole/Sieve/Examples#Mail_filtering_by_various_headers if header :contains "subject" ["order", "buy"] { redirect "recipient at example.org"; } Dovecot/Pigeonhole simply uses the sendmail executable or SMTP to reinject the redirected/forwarded mail: See Dovecot Options * sendmail_path (to send mail via pipe) * submission_host (to send mail via smtp) Regards Daniel -- Dipl.-Inf. Daniel Parthey System Engineer Metaways Infosystems GmbH Pickhuben 2, D-20457 Hamburg E-Mail: d.parthey at metaways.de Web: http://www.metaways.de Tel: +49 (0)40 317031-537 Fax: +49 (0)40 317031-937 Metaways Infosystems GmbH - Sitz: D-22967 Tremsb?ttel Handelsregister: Amtsgericht L?beck HRB 4508 AH Gesch?ftsf?hrung: Hermann Thaele, L?der-H.Thaele
Am 28.06.2014 07:40, schrieb Gerhard Wiesinger:> :copy seems not to be supported, right?Copy is supported, you just need to require the extension in your SIEVE script like this: require ["copy"]; For a complete list of supported extensions please take a look at: http://wiki2.dovecot.org/Pigeonhole/Sieve Regards Daniel -- Dipl.-Inf. Daniel Parthey System Engineer Metaways Infosystems GmbH Pickhuben 2, D-20457 Hamburg E-Mail: d.parthey at metaways.de Web: http://www.metaways.de Tel: +49 (0)40 317031-537 Fax: +49 (0)40 317031-937 Metaways Infosystems GmbH - Sitz: D-22967 Tremsb?ttel Handelsregister: Amtsgericht L?beck HRB 4508 AH Gesch?ftsf?hrung: Hermann Thaele, L?der-H.Thaele