On 28.06.2014 14:33, Daniel Parthey wrote:
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 "[email protected]";
}

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)

Thank you.

As I'm new to sieve can someone verify the example translations?

################################################################################################################################################################
* ^From:.*[email protected].*
| formail -I"X-Priority: 2 (high)" -I"X-mydomain-com-seen: yes" | $SENDMAIL -oi \
  [email protected]  \
  [email protected]
################################################################################
# http://www.emaildiscussions.com/showthread.php?t=57138
# http://tools.ietf.org/html/rfc5293
if header :contains ["from"] ["[email protected]"] {
  addheader "X-Priority" "2 (high)";
  addheader "X-mydomain-com-seen" "yes";
  redirect :copy "[email protected]";
  redirect "[email protected]";
}
################################################################################################################################################################
:0c
* ^From:.*[email protected].*
! [email protected]
################################################################################
if header :contains ["from"] ["[email protected]"] {
  redirect "[email protected]";
}
################################################################################################################################################################
:0c
* ^(To|Cc|Bcc):.*[email protected].*
!   [email protected] [email protected]
################################################################################
if envelope :detail :contains ["to", "cc", "bcc"] "[email protected]" {
  redirect :copy "[email protected]";
  redirect "[email protected]";
}
################################################################################################################################################################

Thank you.

Ciao,
Gerhard

-- http://www.wiesinger.com/

Reply via email to