Skip to Content.
Sympa Menu

en - Re: [en@sympa] suppress the message to the sender in moderated list

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: IKEDA Soji <address@concealed>
  • To: karrageorgiou giannis <address@concealed>
  • Cc: "address@concealed" <address@concealed>
  • Subject: Re: [en@sympa] suppress the message to the sender in moderated list
  • Date: Tue, 11 Apr 2023 13:04:28 +0900

Hi giannis,

On 2023/04/08 21:34, karrageorgiou giannis (via en Mailing List) wrote:
dear sympa community,

in lists where sending is open to subscribers and moderated for
external people (what appears as "privateoreditorkey" in
list available options), the external sender, after post is sent
a mail informing him that his message will be considered.

Sympa is able not to send back message moderation notices or some
other notifications to spam messages.

However, Sympa itself cannot identify spam. First, it is necessary
to mark messages delivered to Sympa as spam (or as non-spam).

Many spam filtering software (e.g. SpamAssassin, Rspamd, Bogofilter)
can add special field(s) in the header that indicates the spam
detection result for the incoming message. For example:

X-Spam-Status: Yes; hits=15.0 required=5.0 ...

X-Bogosity: Spam, ...

For more information on how to install and configure such spam
filters, refer to the documentation of the respective software.

Next, configure Sympa to recognize spam according to this special
header field. To do this, use the spam_status scenario. For
example, the scenario for SpamAssassin looks like below (this file is
named "spam_status.spamassassin").

title SpamAssassin

match([header->X-Spam-Status][0],/^Yes\b/) smtp,md5,smime -> spam
match([header->X-Spam-Status][0],/^No\b/) smtp,md5,smime -> ham
match([header->X-Spam-Flag][0],/^YES/) smtp,md5,smime -> spam
match([header->X-Spam-Flag][0],/^NO/) smtp,md5,smime -> ham
true() smtp,md5,smime -> unsure

Place this scenario in the appropriate location (see the Sympa manual
for the basics of scenarios [1]).

Note: Starting with Sympa 6.2.72, several scenarios for some spam
filters are included from the beginning.

Finally, you can use this scenario for your lists. Set the
spam_status parameter to the name of the scenario ("spamassassin" in
the example above) in domain's robot.conf or sympa.conf.


Then, Sympa will recognize the result of the spam filter's spam
determination and reduce the replies to spammers. Also, for safety,
the message marked spam will not be attached to the notification sent
to the moderators.

[1] https://www.sympa.community/manual/customize/basics-scenarios.html


can this mail be suppressed? (since in many times the external
sender is just a spammer)

If you are willing to consider all external domain addresses as spam,
there is no need to install the spam filter. Just use sender address
as a marker for spam (or non-spam). The scenario would be something
like below.

File name: spam_status.external

Content:

title external senders

match([sender],/\@example\.org$/) smtp,md5,smime -> ham
true() smtp,md5,smime -> spam


(Assume the domain of the address in your organization is example.org.)

Then, set spam_status parameter as a value "external".


Hope this helps.

-- Soji


thanks for any tip

--
株式会社 コンバージョン
ITソリューション部 システムソリューション1グループ 池田荘児
e-mail address@concealed
https://www.conversion.co.jp/



Archive powered by MHonArc 2.6.19+.

Top of Page