Trying to understand "filter.conf" in /etc/virtual/<domain>.<ext>

webunity

Verified User
Joined
Sep 23, 2014
Messages
49
Trying to understand "filter.conf" in /etc/virtual/<domain>.<ext>

I have the following in the /etc/virtual/<domain>.<ext>/filter.conf of one of my domains;
Code:
action=action=email
high_score=15
high_score_block=no
where=userspamfolder

I've searched high and low and only seem to be able to find that this file is for the UI in directadmin. E.g. that the file is not related to /home/$username/.spamassassin/user_prefs, but instead is used in Exim filtering.

However, if i look in the "filter" file (which is the 'compiled' file?) i see nothing related to high_score or action=action=email etc. Can somebody explain how this file relates to spam filtering? And i am also assuming 'userspamfolder' is the INBOX.spam (which i configured on my server)?
 
Hello,

Used in /etc/exim.pl

Code:
# grep filter.conf /etc/*exim* --color -R
/etc/exim.pl:   #/etc/virtual/domain.com/filter.conf
/etc/exim.pl:   if (open (FILTER_CONF, "/etc/virtual/$domain/filter.conf"))


and

Code:
# grep high_score /etc/*exim* --color -R
/etc/exim.pl:sub get_spam_high_score_drop
/etc/exim.pl:   #high_score=7
/etc/exim.pl:   #high_score_block=yes
/etc/exim.pl:   my $high_score = 1000;
/etc/exim.pl:           Exim::log_write("get_spam_high_score_drop: Invalid domain: $domain");
/etc/exim.pl:                   if ($line =~ m/^high_score=/)
/etc/exim.pl:                                   $high_score = $hs * 10;
/etc/exim.pl:                   if ($line =~ m/^high_score_block=/)
/etc/exim.pl:                                   $high_score = 1000;
/etc/exim.pl:           return $high_score;
 
Ok so if i understand correctly, this is an ADDITIONAL filtering method on top of e.g. spamassassin?
 
Some kind of, the filter.conf also includes other rules of SPAM Filters, which can be used even without SpamAssassin.
 
Back
Top