Spamassassin not considering a catch all as an alias for the sake of scanning mail?

Bastille

Verified User
Joined
Mar 25, 2013
Messages
51
I was just taking a look at the mail queue on one of our servers and noticed that there were roughly 8 pages worth of e-mails thrown back at us by Google. When I took a closer look, the user had a catch all for his domain forwarding to gmail but spamassassin wasn't checking it.

I have it set to scan forwarders and I would have thought catch alls qualify as that, since it's just a wildcard entry in the alias file. Does something else need to be done for it to factor in catch alls sent to an external address?

Code:
#EDIT#50:
 spamcheck_director:
   driver = accept
   condition = "${if and { \
    {!def:authenticated_id} \
    {!def:h_X-Spam-Flag:} \
    {!eq {$received_protocol}{spam-scanned}} \
    {!eq {$received_protocol}{local}} \
    {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 {}{${lookup{$local_part}lsearch{/etc/virtual/${domain}/aliases}}}} \
          {eq {$local_part} {${lookup{$domain}lsearch{/etc/virtual/domainowners}}}}  \
        } \
      } \
    {<{$message_size}{2048k}} \
    } {1}{0}}"
  retry_use_local_part
  transport = spamcheck
  no_verify
 
Does your modified code above enable the scanning of email forwarders through SpamAssassin? May I use your code?
 
I'm aware of the flaws of using a catch all but that doesn't stop customers from wanting to use one.
 
Back
Top