Currently I'm struggling to achieve what sounds like a simple thing:
I have a setup with postfix
, dovecot
and sieve
. Mails from two certain addresses to one mailbox are being forwarded to another mail address via a sieve filter, i.e. mailbox a@example.com
forwards all incoming mail from 123@asd.com
and 456@fgh.com
to b@example.com
.
This setup is working fine, but now I want to delay the forwarding of mails that arrive between 10pm and 7am – so all mails arriving in that time period are still forwarded, but not until 7am.
Does anybody know how I could achieve this?
Currently my dovecot.sieve
file (generated by Roundcube Webmail SieveRules Plugin) looks something like this:
[...]
elsif allof (address :is "From" "123@asd.com",
header :contains "Subject" "abc")
{
redirect :copy "b@example.com";
stop;
}
elsif allof (address :is "From" "456@fgh.com",
header :contains "Subject" "abc")
{
redirect :copy "b@example.com";
stop;
}