[xmail] Filters: I must be missing something.

2003-06-19 Thread Toby Reiter

I am having difficulties getting filters to activate correctly in my 
filters.in.tab file.  Here is what I've found -- best explained 
through what I'm entering in my filters.in.tab file.

The following line works:

*[tab][EMAIL PROTECTED][tab]0.0.0.0/0[tab]0.0.0.0/0[tab]filter.tab[newline]

So does this line:

*[tab]*[tab]0.0.0.0/0[tab]0.0.0.0/0[tab]filter.tab[newline]

The following line doesn't (although it appears to match the 
specifications from the Read Me):

*[tab]@domain.com[tab]0.0.0.0/0[tab]0.0.0.0/0[tab]filter.tab[newline]

Does anyone know what I might be doing wrong?

Thanks in advance for any help!

Toby
-- 
Toby Reiter  mailto:[EMAIL PROTECTED]
Breezing Internet Communications http://www.breezing.com
1106 West Main Stphone:434.295.2050
Charlottesville, VA 22903fax:603.843.6931
-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Filters: I must be missing something - CORRECTION

2003-06-19 Thread Toby Reiter

I realized I had forgotten to put the * in front of the @ sign in the 
filter directive. However, even with the *, it still does not work...

*[tab][EMAIL PROTECTED][tab]0.0.0.0/0[tab]0.0.0.0/0[tab]filter.tab[newline]


Again, thanks in advance for any help!

Toby
-- 
Toby Reiter  mailto:[EMAIL PROTECTED]
Breezing Internet Communications http://www.breezing.com
1106 West Main Stphone:434.295.2050
Charlottesville, VA 22903fax:603.843.6931
-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Filters: I must be missing something - CORRECTION

2003-06-19 Thread William

 I realized I had forgotten to put the * in front of the @ sign in the
filter directive. However, even with the *, it still does not work...

Toby, filters have to pass a code onto XMail so that it knows what to do
with it. I still dont know how to get these working on 1.15 myself because I
am not positive what in the world sets a code.

I haven't tried it yet, but one of my current filters on 1.10 sets a sort of
code based on what I score something to be, it currently uses a 1-10
system so I am wondering if in the definitions if you change it to the
appropriate 97-99 if it will work, have not tried this yet though and got no
feedback unfortunately about what in the world sets a code and how the
system works.

So, I am still lost myself which is why I still use my 1.10

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Filters: I must be missing something - CORRECTION

2003-06-19 Thread Toby Reiter

  I realized I had forgotten to put the * in front of the @ sign in the
filter directive. However, even with the *, it still does not work...

Toby, filters have to pass a code onto XMail so that it knows what to do
with it. I still dont know how to get these working on 1.15 myself because I
am not positive what in the world sets a code.

I haven't tried it yet, but one of my current filters on 1.10 sets a sort of
code based on what I score something to be, it currently uses a 1-10
system so I am wondering if in the definitions if you change it to the
appropriate 97-99 if it will work, have not tried this yet though and got no
feedback unfortunately about what in the world sets a code and how the
system works.

So, I am still lost myself which is why I still use my 1.10

William,
I was actually able to finally get the filters to work. My issue was 
definitely not with my filter itself but with the filters.in.tab 
file. Other than that (which I guess must have been some kind of 
human error - i.e. I goofed) I've been really happy with 1.15.

The way to set the code from a filter is to exit using a specific 
code. In perl this is exit XX where XX is one of the supported exit 
codes. I think you would use the same in a shell script (I don't know 
how you would return an exit code from a C program, since I don't 
know C).  These are changing in 1.16 (as I understand it) but right 
now the codes are 97,98,99, and 100. These are the only exit codes 
that are supported and they have specific meaning to Xmail.  I don't 
think exiting based upon a scoring code would work, because Xmail 
wouldn't know what to do with it.

What is your filter trying to do? If your scoring of messages is to 
tell Xmail how to deal with the message you should know that these 
are the currently supported codes:

97  Reject the message entirely, without notification, and don't freeze it
98  Reject the message, no notification, freeze it (if specified)
99  Reject the message, with notification
100 The filter has modified the content of the message
8  Do not perform any more filter actions

You can add the last codes to any of the other codes, for instance my 
spam filter returns an exit code of 105 on spam messages, meaning 
Reject message without notification or freezing, and don't perform 
any more filtering.

Let me know if this helps answer your questions, and let me know if 
you have any others.

Have a great day,
Toby
-- 
Toby Reiter  mailto:[EMAIL PROTECTED]
Breezing Internet Communications http://www.breezing.com
1106 West Main Stphone:434.295.2050
Charlottesville, VA 22903fax:603.843.6931
-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Filters: I must be missing something - CORRECTION

2003-06-19 Thread Stig Østvang

Out of curiosity, what was the problem with your filters.in.tab-file? I=20
also have problems getting the AV-script to start.

BR,
Stig =D8stvang

At 14:17 19.06.2003 -0400, you wrote:
Snip

I was actually able to finally get the filters to work. My issue was
definitely not with my filter itself but with the filters.in.tab
file. Other than that (which I guess must have been some kind of
human error - i.e. I goofed) I've been really happy with 1.15.
Snip=20

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Filters: I must be missing something - CORRECTION

2003-06-19 Thread Toby Reiter

Out of curiosity, what was the problem with your filters.in.tab-file? I=20
also have problems getting the AV-script to start.

I'm not quite sure.  We had a user specific that they didn't want to 
have SpamAssassin running for their domain, and since I figured this 
was possible for other of our customers, I made a filter entry for 
each domain that should be using the filter.

This required setting the second column to [EMAIL PROTECTED]. For some 
reason, it took me a real long time to get the syntax just right. 
For most standard filters (applied to all users) using the two 
wildcards *[tab]* worked fine.

I've never tried using the AV filter myself (since I don't have any 
installed virus software).

Let us know what the specifics are for your filter, i.e. is it just 
for selected users, a selected domain, or all users, and we can 
probably give you better feedback on what your filters.in.tab file 
should look like.

Have a nice day,
Toby
-- 
Toby Reiter  mailto:[EMAIL PROTECTED]
Breezing Internet Communications http://www.breezing.com
1106 West Main Stphone:434.295.2050
Charlottesville, VA 22903fax:603.843.6931
-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Filters: I must be missing something - CORRECTION

2003-06-19 Thread Stig Østvang

I have the standard files that came with Peter Lindeman's AV-script.

filters.in.tab =3D filters.out.tab =3D
*[tab]*[tab]0.0.0.0/0[tab]0.0.0.0/0[tab]av-filter.tab[newline]

av-filter.tab (in /var/MailRoot/filters) =3D
/var/MailRoot/filters/checkvirus.pl[tab]@@FILE[tab]@@FROM[tab]@@RCPT=
[tab]@@MSGID[newline]

I also tried to add perl /var/MailRoot/filters/checkvirus.pl in=20
av-filter.tab, without any change. I also read on the Forum that I had to=20
set the files executable (chmod 755 file), without any change. I tried to=20
start xmail in debug and I didn't get any indications that the filter were=
=20
triggered.

This is on a Linux box with Xmail 1.15

BR,
Stig =D8stvang

At 14:41 19.06.2003 -0400, you wrote:

 Out of curiosity, what was the problem with your filters.in.tab-file?=
 I=3D20
 also have problems getting the AV-script to start.

I'm not quite sure.  We had a user specific that they didn't want to
have SpamAssassin running for their domain, and since I figured this
was possible for other of our customers, I made a filter entry for
each domain that should be using the filter.

This required setting the second column to [EMAIL PROTECTED]. For some
reason, it took me a real long time to get the syntax just right.
For most standard filters (applied to all users) using the two
wildcards *[tab]* worked fine.

I've never tried using the AV filter myself (since I don't have any
installed virus software).

Let us know what the specifics are for your filter, i.e. is it just
for selected users, a selected domain, or all users, and we can
probably give you better feedback on what your filters.in.tab file
should look like.

Have a nice day,
Toby
--
Toby Reiter  mailto:[EMAIL PROTECTED]
Breezing Internet Communications http://www.breezing.com
1106 West Main Stphone:434.295.2050
Charlottesville, VA 22903fax:603.843.6931
-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Filters: I must be missing something - CORRECTION

2003-06-19 Thread Andrew Joakimsen

For SpamAssassin setup a rule as follows:

whitelist_to [EMAIL PROTECTED]

-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
nombre de Toby Reiter
Enviado el: Thursday, June 19, 2003 2:41 PM
Para: Stig Ostvang; [EMAIL PROTECTED]
Asunto: [xmail] Re: Filters: I must be missing something - CORRECTION



Out of curiosity, what was the problem with your filters.in.tab-file? I=20
also have problems getting the AV-script to start.

I'm not quite sure.  We had a user specific that they didn't want to 
have SpamAssassin running for their domain, and since I figured this 
was possible for other of our customers, I made a filter entry for 
each domain that should be using the filter.

This required setting the second column to [EMAIL PROTECTED]. For some 
reason, it took me a real long time to get the syntax just right. 
For most standard filters (applied to all users) using the two 
wildcards *[tab]* worked fine.

I've never tried using the AV filter myself (since I don't have any 
installed virus software).

Let us know what the specifics are for your filter, i.e. is it just 
for selected users, a selected domain, or all users, and we can 
probably give you better feedback on what your filters.in.tab file 
should look like.

Have a nice day,
Toby
-- 
Toby Reiter  mailto:[EMAIL PROTECTED]
Breezing Internet Communications http://www.breezing.com
1106 West Main Stphone:434.295.2050
Charlottesville, VA 22903fax:603.843.6931
-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]