Mailing List Archive

Filter Spam on forwarded mail
Hi All,

I use qmail/vpopmail and have a Spamassassin in front for mail scanning.

For the local postboxes I use mailfilter to sort mails marked as Spam
into special folders. Is there a way for a similar approch on forwarded
mail (e.g. sending them to /dev/null...).

My Problem is that a lot of mass mailings get thru the SA being tagged
and then forwarded to the final receipient, but blocked by their
mailserver. Result is a lot of backscatter/undeliverable mail (which put
me on a blacklist last week).

best regards

Oliver

--
Protect your environment - close windows and adopt a penguin!
Re: Filter Spam on forwarded mail [ In reply to ]
On 2016-04-06 12:34, Oliver Welter wrote:
> Hi All,
Hi,
>
> I use qmail/vpopmail and have a Spamassassin in front for mail
> scanning.
>
> For the local postboxes I use mailfilter to sort mails marked as Spam
> into special folders. Is there a way for a similar approch on
> forwarded mail (e.g. sending them to /dev/null...).

In this case I would do it before invoking qmail-remote. Similar like
doing DKIM signing, but check the Spam-Status instead. You can rename
qmail-remote and replace it by a script or use this patch:
https://blog.dyndn.es/doku.php/blog/2016/02/01_netqmail-bfrmt. In case
more things should be done the patch is may be more flexible. Just a
suggestion.

Kai

>
> My Problem is that a lot of mass mailings get thru the SA being tagged
> and then forwarded to the final receipient, but blocked by their
> mailserver. Result is a lot of backscatter/undeliverable mail (which
> put me on a blacklist last week).
>
> best regards
>
> Oliver
Re: Filter Spam on forwarded mail [ In reply to ]
Hello Kai,

Am 06.04.2016 um 17:13 schrieb Kai Peter:
> On 2016-04-06 12:34, Oliver Welter wrote:
>> Hi All,
> Hi,
>>
>> I use qmail/vpopmail and have a Spamassassin in front for mail scanning.
>>
>> For the local postboxes I use mailfilter to sort mails marked as Spam
>> into special folders. Is there a way for a similar approch on
>> forwarded mail (e.g. sending them to /dev/null...).
>
> In this case I would do it before invoking qmail-remote. Similar like
> doing DKIM signing, but check the Spam-Status instead. You can rename
> qmail-remote and replace it by a script or use this patch:
> https://blog.dyndn.es/doku.php/blog/2016/02/01_netqmail-bfrmt. In case
> more things should be done the patch is may be more flexible. Just a
> suggestion.
>

This sounds like an idea, I will see if this works out.

I came up with a second in the meantime - as I read "user prefs" for
spamscanner from the database already, I think it should be doable to
have a kind of switch to deny those mails in spam assassing directly,
e.g. by setting the "reject score" dynamically.

Oliver

--
Protect your environment - close windows and adopt a penguin!
Re: Filter Spam on forwarded mail [ In reply to ]
Oliver Welter <mail@oliwel.de> wrote:
>
> My Problem is that a lot of mass mailings get thru the SA being
> tagged and then forwarded to the final receipient, but blocked by
> their mailserver. Result is a lot of backscatter/undeliverable mail
> (which put me on a blacklist last week).

You should be replacing the envelope-sender address with one under your
control when you forward messages in this fashion, i.e. after the initial
destination (as specified by the MX record for the domain) has accepted the
message. That means any bounces go to an address you control, eliminating the
backscatter and preventing mail admins around the 'net from being upset with
you.

Charles
--
--------------------------------------------------------------------------
Charles Cazabon
GPL'ed software available at: http://pyropus.ca/software/
Read http://pyropus.ca/personal/writings/12-steps-to-qmail-list-bliss.html
--------------------------------------------------------------------------