Results 1 to 4 of 4

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

  1. #1
    Join Date
    Sep 2014
    Posts
    38

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

  2. #2
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,485
    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;

  3. #3
    Join Date
    Sep 2014
    Posts
    38
    Ok so if i understand correctly, this is an ADDITIONAL filtering method on top of e.g. spamassassin?

  4. #4
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,485
    Some kind of, the filter.conf also includes other rules of SPAM Filters, which can be used even without SpamAssassin.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •