Help for a rule

To the Ipswitch web site

Ipswitch Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Help for a ruleExpand / Collapse
Author
Message
Posted 4/21/2008 1:59:22 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/6/2008 12:25:41 PM
Posts: 8, Visits: 18
Hi everyone,

i'm running Imail 2006 and all my domains are virtuals except the primary.

Some of my domains are configured with an antispam service provided by an another company.

On emails headers who arrived by this service, i got a tag on the Header : Here : X-ANTISPAM

I receve locally al lot of spams and i want to set up a rule who did :

 1 - If the mail didn't arrived by my antispam provider

 2 - AND

 3 - If the mail is not send by one of my local domain

 4 - Put it on spam mailbox

Here si my rule  :

<Rule 1>H!=X-ANTISPAM!AND!F!~(domain1.com\domain2.com\domain3.fr\domain4.com\domain5.com\domain6.com\domain7.fr\domain8.com\domain9.com):spam

This rule didn't work and i don't understand Why.

Do you have an idea ?

Thank you for your answer.

Post #43049
Posted 4/28/2008 3:08:49 PM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: Today @ 12:29:19 PM
Posts: 25, Visits: 314
Are you using backslashes \ or pipes | between your domains?
Post #43306
Posted 5/6/2008 8:18:47 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/6/2008 12:25:41 PM
Posts: 8, Visits: 18
Hi,

I tried both for the same result. It didn't work.

I seen that my rule can't be more than 1000 caracters long ? Is that true ?

Thank for your answer

Post #43511
Posted 5/7/2008 3:11:20 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: Today @ 12:29:19 PM
Posts: 25, Visits: 314
From this: http://support.ipswitch.com/kb/IM-19980116-DD08.htm

Any of the values separated by vertical bars within the parentheses; the 
vertical bar represents "or" (this|that|other)

The vertical bar is a 'pipe'.

the following characters have special meaning in a rule: {}()|*+,.:\ If you want to use one of these characters in a search string, precede it with a backslash. For example, to search for a plus sign, enter \+ in the search string.

So for your rule I think it should be like this:

<Rule 1>H!=X-ANTISPAM!AND!F!~(domain1\.com|domain2\.com|domain3\.fr|domain4\.com|domain5\.com|domain6\.com|domain7\.fr|domain8\.com|domain9\.com):spam

Post #43543
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Derek, Matt, Brian Smith, Dave, Adrian, Mark Singh, kevin r gillis, Evan Karp, Jason Benton, David Karp, Brandon Felger, Ben Henderson, Tripp Allen, Derek_Test, Will Sansbury, Hush, Nemo, FTPplanet.com, Hugh Garber, WUP-PM, Tom Lewis, mmulryan@ipswitch.com, mswimm, Brad Senter

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 3:51pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.094. 9 queries. Compression Enabled.