[exim] Spam Scanning Issue

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Matt
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [exim] Spam Scanning Issue
I have this to scan messages by spamassassin:

# Spam Assassin
spamcheck_director:
  driver = accept
  condition = "${if and { \
                        {!def:h_X-Spam-Flag:} \
                        {!eq {$received_protocol}{spam-scanned}} \
                        {!eq {$received_protocol}{local}} \
                        {<{$message_size}{200k}} \


{exists{/home/${lookup{$domain}lsearch{/etc/virtual/domainowners}{$value}}/.spamassassin/user_prefs}}
\
                        {exists{/etc/virtual/${domain}/passwd}} \
                        { \
                        or \
                            { \
                                {!eq
{}{${lookup{$local_part}lsearch{/etc/virtual/${domain}/passwd}}}} \
                                {eq {$local_part}
{${lookup{$domain}lsearch{/etc/virtual/domainowners}}}}  \
                            } \
                        } \
                } {1}{0}}"
  retry_use_local_part
  transport = spamcheck
  no_verify


Is there any way to tell it not to scan messages if the source IP is in:

/etc/virtual/pophosts

That file contains a list of IP's that have authenticated with POP3 in
last fifteen minutes.

Or how about if its sent by an authenticated user?

Thanks.

Matt