mail filter in iMS 5.2?

In older versions of iMS you used to be able to configure UBE filters via a gui. Now how is it done? All we want to do is a simple server filter to scan Subject: line of messages and if a specific tag is found, dump that mail.
[240 byte] By [708561] at [2007-11-25 7:13:53]
# 1

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-

708686 at 2007-6-29 17:48:27 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2
As as I Know iMS5.2 support RFC3028, this rfc has no support to handle the body and header of a multipart message. Does anybody has an idea in how to this in iMS5.2 with sieve?I will appreciate your help. Thanks
wallyu at 2007-6-29 17:48:27 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 3

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!

navin504 at 2007-6-29 17:48:27 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 4

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!

unix_g at 2007-6-29 17:48:27 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 5
How about not using "contains". I suspect that there's a "equals" comparator? I admit, I don't know sieve.
jay_plesset at 2007-6-29 17:48:27 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 6
Thanks for the suggestion...I was able to get "is: " to work. A coworker also suggested that "mataches:" would work as well. It sure would be nice to have the full list of keywords!!!!
unix_g at 2007-6-29 17:48:27 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 7
Well, we don't provide documentation for Sieve, but such is available online: http://www.rfc-archive.org/getrfc.php?rfc=3028
jay_plesset at 2007-6-29 17:48:27 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 8
Does Sun's Messaging server fully support this RFC or just it implement certain portions? Just curious...Thanks for the link!
unix_g at 2007-6-29 17:48:27 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 9
Fully
jay_plesset at 2007-6-29 17:48:27 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...