Einen Überblick über das Administrationstool KeyHelp der Keyweb AG und dessen Download gibt es auf https://www.keyhelp.de

Dieses Forum soll es interessierten Benutzern ermöglichen, sich über KeyHelp auszutauschen und Hilfe bei Problemen zu finden.

How to Blacklist or Whitelist in SPAMASSASSIN

For questions about the usage of KeyHelp and the configuration of it services.
Antworten
Benutzeravatar
george
Beiträge: 69
Registriert: Fr 3. Jan 2020, 05:53
Wohnort: AUSTRALIA

How to Blacklist or Whitelist in SPAMASSASSIN

Beitrag von george »

As this is a common query with regards to spam, I thought it worthy of a post.
It is quite easy to blacklist or whitelist ANY email address, or an entire domain, using SpamAssassin.

All the details can be found on this page, in section "WHITELIST AND BLACKLIST OPTIONS":
https://spamassassin.apache.org/full/3. ... _Conf.html

These options can be added to the SpamAssassin configuration file, to get the job done.

How To

Edit the config file:

Code: Alles auswählen

/etc/spamassassin/local.cf

Add your blacklist/whitelist options at the end:

Code: Alles auswählen

# WHITELIST AND BLACKLIST OPTIONS
blacklist_from spameri@tiscali.it *@site.ru
whitelist_auth *@host.domain.com *@mydomain.com admin@systools.com

Restart spamassassin:

Code: Alles auswählen

service spamassassin restart
service spamassassin status

Notice I used "whitelist_auth" above. This is a great option to assure your own emails (sent) are never marked as spam. This problem may occur when sending test emails between domains, for example.

whitelist_auth
Used to specify addresses which send mail that is often tagged (incorrectly) as spam. This is different from whitelist_from and whitelist_from_rcvd in that it first verifies that the message was sent by an authorized sender for the address, before whitelisting.

All added customisations made to the Spamassassin configuration file, are retained through upgrades. Many options are available...

Enjoy!
Benutzeravatar
george
Beiträge: 69
Registriert: Fr 3. Jan 2020, 05:53
Wohnort: AUSTRALIA

Re: How to Blacklist or Whitelist in SPAMASSASSIN

Beitrag von george »

I still found some email from "root@host.domain.com", was being marked as spam - even when using "whitelist_auth". After further reading of the Spamassassin doc (linked above), I discovered "all_spam_to". This rule guarantees delivery to the address TO:

Code: Alles auswählen

all_spam_to  root@host.domain.com
Antworten