[Mimedefang] Disable filter on smtp-auth

Tilman Schmidt t.schmidt at phoenixsoftware.de
Sun Jan 27 17:37:29 EST 2013


Am 27.01.2013 21:09, schrieb Wesley M.A:
> I just enable saslauthd on this mail server.
> But when clients send emails using our MTA, their message are filtered
> and so they are like [SPAM]
> 
> Is there a way to disable this filter only for SMTP Auth ?

Sure. More than one, actually. My (rather simplistic) approach is this:
I simply amended the standard filter_end section

> # Spam checks if SpamAssassin is installed
> if ($Features{"SpamAssassin"}) {
> if (-s "./INPUTMSG" < 100*1024) {

to

>     # Spam checks if SpamAssassin is installed
>     if ($Features{"SpamAssassin"}) {
>         if (defined($SendmailMacros{"auth_type"})) {
>             # Don't scan messages from authenticated senders.
>             md_graphdefang_log('auth');
>         }
>         elsif (-s "./INPUTMSG" < 100*1024) {

So messages are not SpamAssassin scanned if "auth_type" is defined,
which it is if the sender has authenticated through SMTP AUTH.
This has proved good enough for me.

HTH
Tilman



More information about the MIMEDefang mailing list