niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Exim
Spamd + clamav and mail size check condition
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
Author Message
Ian FREISLICH
*nix forums addict


Joined: 15 Feb 2005
Posts: 91

PostPosted: Mon Jan 30, 2006 7:49 am    Post subject: Re: Spamd + clamav and mail size check condition Reply with quote

"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

PostPosted: Sat Jan 28, 2006 2:15 pm    Post subject: RE: Spamd + clamav and mail size check condition Reply with quote

Okey thank you Smile


-----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

PostPosted: Sat Jan 28, 2006 1:23 pm    Post subject: Re: Spamd + clamav and mail size check condition Reply with quote

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
Vahric MUHTARYAN
*nix forums beginner


Joined: 10 Jun 2005
Posts: 13

PostPosted: Sat Jan 28, 2006 11:40 am    Post subject: RE: Spamd + clamav and mail size check condition Reply with 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).

# 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

PostPosted: Sat Jan 28, 2006 11:33 am    Post subject: Re: Spamd + clamav and mail size check condition Reply with quote

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

PostPosted: Sat Jan 28, 2006 11:30 am    Post subject: Spamd + clamav and mail size check condition Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 1:58 pm | All times are GMT
navigation Forum index » Apps » Exim
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts postfix - mail directory bandito Postfix 0 Tue Dec 09, 2008 11:13 pm
No new posts Restricting postfix mail incoming only from Barracuda firewa gnewak Postfix 0 Thu Jul 03, 2008 12:57 am
No new posts Filtering internal mail and forwarding to another domain fmaa1 Postfix 0 Wed Apr 30, 2008 12:50 pm
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am
No new posts mail delivery to cyrus fails embedded Postfix 0 Mon Mar 03, 2008 2:43 pm

Credit Cards | Refinance | Web Advertising | Europe Hotel | Car salvage
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2611s ][ Queries: 20 (0.1184s) ][ GZIP on - Debug on ]