You're thinking of NMS. Previous versions of iMS have never had this capability. For what you want to do check out SSR (Server Side Rules). There is a MTA wide filter, imta/config/imta.filter as I recall. The SSR is based on Draft 9 of SIEVE. Body scanning is not allowed using SSR, fyi.
-Chad-
Sure, mta wide you can use imta.filter in the msg-<server>/imta/config directory. Create that file and in it use the sieve filter with subject line you need to block.
i.e.
require "fileinto";
if header :contains ["Subject","Comments","Keywords"]
"this is a test"
{
discard;
stop;
}
Then go to msg-<server> directory and use imsimta utility to rebuild the config and restart
imsimta cnbuild
imsimta refresh
Thats it!
I have a related problem. I guess this is mostly a sieve filter syntax question...
I need to single out messages for a specific user but I am catching other unintended users in the process. Example:
imta.filter:
require "reject";
if header : contains "To" "domain.com" {
if header :contains "From" "info@domain.com" {
discard;
}
}
Based on my filter above I am catching info@domain.com but I am also catching testinfo@domain.com, helpinfo@domain.com, etc.
If I insert a space before the info (" info@domain.com"), then the filter doesn't catch emails from info@domain.com. I am using Sun Messaging Server 5.2
Any ideas?
Thanks!