View Single Post
Old 7 Oct 2017, 04:03 AM   #9
The "e" in e-mail
Join Date: Jan 2002
Posts: 2,612
Originally Posted by BritTim View Post
Is the "" in quotes in the actual sieve code. If not, it needs to be. I would expect a syntax error if the quotes are missing, but perhaps not.
At the very beginning of my rules:

# You were using Advanced Rules (custom sieve script). We disabled all
# the converted rules and appended your existing script below
if header :contains ["From", "X-Mail-from", "Return-Path"] "xxxx.yy.tld" {
  reject "Message rejected because Invalid Email Recipient";
  fileinto "INBOX.cdrom"; stop;

Last edited by FromLine : 8 Oct 2017 at 06:31 PM.
FromLine is offline   Reply With Quote