You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/01/15 10:25:25 UTC

[Bug 2927] New: qmail-scanc - only scan inbound / non-authenticated messages

http://bugzilla.spamassassin.org/show_bug.cgi?id=2927

           Summary: qmail-scanc - only scan inbound / non-authenticated
                    messages
           Product: Spamassassin
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: spamc/spamd
        AssignedTo: spamassassin-dev@incubator.apache.org
        ReportedBy: devin.nate@bridgecomm.net


Hi;

Based on qmail-scanner, I've found that I only want to spam scan emails that are
coming from outside our organization. Assuming qmail-scanc is running normally
(i.e. QMAILQUEUE patch installed, etc), I really only want to spam scan emails
that don't have the RELAYCLIENT variable set (the IP addresses with RELAYCLIENT
set are considered trusted - they've either been added by an admin, or
auto-added by the client using a pop3, imap4, or smtp-auth password). The below
C code changes qmail-scanc to use the regular qmail-queue if RELAYCLIENT is set.
(Some folks may want to use different or additional variables). It applies
different to 2.61 and 2.70 (I prefer the 2.70 qmail-spamc). Make sure the char
*relay goes in the variable section. I put the if statement first after the
variable section. I thought it might be helpful (and save some cpu cycles) for
folks.

To qmail-spamc.c add:

    #include <stdlib.h>
    
    char *relay  = getenv("RELAYCLIENT");

    /* Use standard qmail-queue if this is a RELAYCLIENT */
    if ( relay != NULL ) {
        execlp("qmail-queue", "qmail-queue", NULL);
        exit(0);
    }

Thanks,
Devin Nate



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.