View Single Post
Old 7 Oct 2017, 02:53 AM   #7
BritTim
The "e" in e-mail
 
Join Date: May 2003
Location: mostly in Thailand
Posts: 2,517
Quote:
Originally Posted by FromLine View Post
Here's the code I'm using:

Code:
if header :contains ["From", "X-Mail-from", "Return-Path"] [xxxx.da.gov] {
  reject "Message rejected because Invalid Email Recipient";
  fileinto "INBOX.cdrom"; stop;
}
It's not working at all.

* Emails are going into the Inbox, not the "cdrom" folder

* Sender at the xxxx.da.gov email address is receiving nothing
Is the "xxx.da.gov" 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.
BritTim is online now   Reply With Quote