View Single Post
Old 26 May 2021, 06:49 AM   #2
xyzzy
Essential Contributor
 
Join Date: May 2018
Posts: 474
Quote:
Originally Posted by kennio View Post
For the incoming emails I am trying to create a Sieve Filter to block all external emails. This is what I am trying but for some reason is not working...
To send stuff to the trash you specify the mailbox name as "\\Trash". Just saying "trash" will send stuff, by default, into the inbox.

If you are only accepting incoming mail to your domain (example.com in your example) then the first test on your domain should be sufficient:

Code:
if not address :domain :is "from" "example.com" {
  fileinto "\\Trash";
}

Last edited by xyzzy : 26 May 2021 at 07:02 AM.
xyzzy is offline   Reply With Quote