| Author |
Message |
Ian FREISLICH *nix forums addict
Joined: 15 Feb 2005
Posts: 91
|
Posted: Mon Jan 30, 2006 7:49 am Post subject:
Re: Spamd + clamav and mail size check condition
|
|
|
"Vahric MUHTARYAN" wrote:
| Quote: | Thanks Jakob ,
acl_check_data: section spamd and clamav is working together at this moment
if I apply condition to this ACL it will perform for both , right ? What I
have to do if I want to apply different conditions to spamd and clamav !
can I put different conditions under each section like this
acl_check_data:
# Deny if the message contains a virus. Before enabling this check, you
# must install a virus scanner and set the av_scanner option above.
#
deny malware = *
** condition = ${if <{$message_size}{1M}}
message = This message contains a virus ($malware_name).
|
Except that you want the "condition" as your first statement because
the ACL evalutes statements in order. What you have here will still
run the AV scanner and then ignore the result, in stead of not
even running the AV scanner if the message is over 1M.
Ian
--
Ian Freislich
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/ |
|
| Back to top |
|
 |
Vahric MUHTARYAN *nix forums beginner
Joined: 10 Jun 2005
Posts: 13
|
Posted: Sat Jan 28, 2006 2:15 pm Post subject:
RE: Spamd + clamav and mail size check condition
|
|
|
Okey thank you
-----Original Message-----
From: Jakob Hirsch [mailto:jh@plonk.de]
Sent: Saturday, January 28, 2006 3:24 PM
To: Vahric MUHTARYAN
Cc: exim-users@exim.org
Subject: Re: [exim] Spamd + clamav and mail size check condition
Vahric MUHTARYAN wrote:
| Quote: | can I put different conditions under each section like this
|
yes.
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/ |
|
| Back to top |
|
 |
Jakob Hirsch *nix forums Guru
Joined: 29 Jan 2005
Posts: 403
|
|
| Back to top |
|
 |
Vahric MUHTARYAN *nix forums beginner
Joined: 10 Jun 2005
Posts: 13
|
Posted: Sat Jan 28, 2006 11:40 am Post subject:
RE: Spamd + clamav and mail size check condition
|
|
|
Thanks Jakob ,
acl_check_data: section spamd and clamav is working together at this moment
if I apply condition to this ACL it will perform for both , right ? What I
have to do if I want to apply different conditions to spamd and clamav !
can I put different conditions under each section like this
acl_check_data:
# Deny if the message contains a virus. Before enabling this check, you
# must install a virus scanner and set the av_scanner option above.
#
deny malware = *
** condition = ${if <{$message_size}{1M}}
message = This message contains a virus ($malware_name).
# Add headers to a message if it is judged to be spam. Before enabling
this,
# you must install SpamAssassin. You may also need to set the
spamd_address
# option above.
#
warn spam = nobody:true
** condition = ${if <{$message_size}{2M}}
message = X-Spam_score: $spam_score\n\
X-Spam_score_int: $spam_score_int\n\
X-Spam_bar: $spam_bar\n\
X-Spam_report: $spam_report
# Accept the message.
warn message = X-New-Subject: !!***SPAM***!! $h_subject:
spam = nobody
accept
Thanks
Vahric
-----Original Message-----
From: Jakob Hirsch [mailto:jh@plonk.de]
Sent: Saturday, January 28, 2006 1:33 PM
To: Vahric MUHTARYAN
Cc: exim-users@exim.org
Subject: Re: [exim] Spamd + clamav and mail size check condition
Vahric MUHTARYAN wrote:
| Quote: | I do not want to perform virus and spam control for some mails which past
x
size for example ? Any possibility to do this ? I mean I want to skip
virus
and spam control if mails bigger then 1 mb for example !
|
condition = ${if <{$message_size}{1M}}
in the respective ACLs
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/ |
|
| Back to top |
|
 |
Jakob Hirsch *nix forums Guru
Joined: 29 Jan 2005
Posts: 403
|
Posted: Sat Jan 28, 2006 11:33 am Post subject:
Re: Spamd + clamav and mail size check condition
|
|
|
Vahric MUHTARYAN wrote:
| Quote: | I do not want to perform virus and spam control for some mails which past x
size for example ? Any possibility to do this ? I mean I want to skip virus
and spam control if mails bigger then 1 mb for example !
|
condition = ${if <{$message_size}{1M}}
in the respective ACLs
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/ |
|
| Back to top |
|
 |
Vahric MUHTARYAN *nix forums beginner
Joined: 10 Jun 2005
Posts: 13
|
Posted: Sat Jan 28, 2006 11:30 am Post subject:
Spamd + clamav and mail size check condition
|
|
|
Hi Everybody ,
I do not want to perform virus and spam control for some mails which past x
size for example ? Any possibility to do this ? I mean I want to skip virus
and spam control if mails bigger then 1 mb for example !
Thanks
Vahric
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/ |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|