sample sieve filter in SunONE Messaging Server 5

2 – imsimta refresh
3 – should work – imsimta test -rewrite -filter [email protected] If you look at RFC 3028, you could get a better understanding of the
language. Example of imta.filter file:
require “envelope”;
require [“reject”]; if header :contains “From” “[email protected]
{
reject “[email protected]”;
} if envelope :contains “From” “[email protected]
{
discard;
} if header :contains “Subject” “$$$” {
reject “I don’t want your mail!”;
} if header :contains “To” “Undisclosed Recipients” {
reject “I don’t want your mail!”;
} require “fileinto;
if header :contains “To” “Undisclosed Recipients” {
fileinto “SPAM”;
}]]>

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.