Skip to Content.
Sympa Menu

en - Re: [sympa-users] Feature for spam control

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: c l <address@concealed>
  • To: sympa-users <address@concealed>
  • Subject: Re: [sympa-users] Feature for spam control
  • Date: Wed, 15 Feb 2012 09:58:07 +0100

Hello,

Here we are using the exim4 MTA with 'sendmail_aliases none' in sympa.conf
https://listes.cru.fr/sympa/arc/sympa-users/2012-02/msg00005.html

The idea is then to let smapd, spamc check and tag incomming emails
then route them to sympa and use the same scenario rules to filter
them is this right ?


On Tue, Feb 14, 2012 at 7:26 PM, Dan Pritts <address@concealed> wrote:
> Then, use sympa's scenario files to look for the X-Spam-Level headers and
> act as you wish.
>
>
> e.g.:
>
> /etc/sympa/scenari@lists1% cat send.private
>
> title.gettext Drop Spam, allow subscribers/owners/moderators, else bounce to
> sender
>
> match([header->X-Spam-Level],/\*\*\*\*\*\*\*\*\*\*/)      smtp ->
> reject,quiet
>
> is_subscriber([listname],[sender])             smtp,smime,md5    -> do_it
> is_editor([listname],[sender])                 smtp,smime,md5    -> do_it
> is_owner([listname],[sender])                  smtp,smime,md5    -> do_it
> true()                           smtp,md5,smime  ->
> reject(reason='send_subscriber')
>
>
> --
> Dan Pritts, Sr. Systems Engineer
> Internet2
> office: +1-734-352-4953 | mobile: +1-734-834-7224
>

Exim4 conf could look something like :
Create the file
/etc/exim4/conf.d/transport/30_exim4-config_spamcheck

with the following contents
spamcheck:
debug_print = "T: spamassassin_pipe for $local_part@$domain"
driver = pipe
command = /usr/sbin/exim4 -oMr spam-scanned -bS
use_bsmtp
transport_filter = /usr/bin/spamc
home_directory = "/tmp"
current_directory = "/tmp"
user = Debian-exim
group = Debian-exim
return_fail_output
message_prefix =
message_suffix =

Create the file
/etc/exim4/conf.d/router/850_exim4-config_spamcheck_router

with the following contents
spamcheck_router:
no_verify
check_local_user
# When to scan a message :
# - it isn't already flagged as spam
# - it isn't already scanned
condition = "${if and { {!def:h_X-Spam-Flag:} {!eq
{$received_protocol}{spam-scanned}}} {1}{0}}"
driver = accept
transport = spamcheck

Then use Dan scenari for each list.


Does this make sense ?

Laurent




Archive powered by MHonArc 2.6.19+.

Top of Page