User Tools

Site Tools


internet:mail:mailcleaner_customize

This is an old revision of the document!


Customizing MailCleaner

InfoBox

The InfoBox feature lets you communicate with admins and users.

https://support.mailcleaner.net/boards/3/topics/48

Admin Web GUI

There is no web GUI selection for the Admin template. You must edit the default Admin template.
cd /usr/mailcleaner/www/guis/admin/public/templates/
cp -avr default yourtemplate
mv default default.orig
mv yourtemplate default
vim default/css/login.css

#mclogo
  background-color:

https://support.mailcleaner.net/boards/3/topics/42

User Web GUI and Summary Report

MailCleaner Admin → Domains → Domain Default Settings → Templates

Quarantine Report

cd /usr/mailcleaner/templates/summary
cp -avr default yoursummarytemplate
  • banner.jpg

Web Interface

https://support.mailcleaner.net/boards/3/topics/57

cd /usr/mailcleaner/www/user/htdocs/templates/
cp -avr default yourtemplate
vim /usr/mailcleaner/www/user/htdocs/templates/yourtemplate/footer.tmpl
  • login.tmpl
  • login.css
  • navigation.css

SpamC Score

Full Whitelist

Sender Rules

Hostlist Entry Formatting

SPF

https://support.mailcleaner.net/projects/support-user/wiki/SPF_Sender_Policy_Framework

https://support.mailcleaner.net/boards/3/topics/64-spf-configuration

You can adjust the SPF rule MC_SPF_SOFTFAIL by adding points or reducing points.

Configuration → Domains → domain.tld → SpamC rules adjustments

Customize SpamAssassin

vim /usr/mailcleaner/share/spamassassin/99_custom_rules_scores.cf

Test Custom Rules

/usr/local/bin/spamassassin --siteconfigpath=/usr/mailcleaner/share/spamassassin/ -t -d < spam_sharepoint.eml

99_custom_rules_sharepointonline.cf

/usr/mailcleaner/share/spamassassin/99_custom_rules_sharepointonline.cf

describe SENT_FROM_SHAREPOINT Add points to messages from sharepointonline.com
header   SENT_FROM_SHAREPOINT From:addr =~ /no-reply\@sharepointonline\.com$/i
score    SENT_FROM_SHAREPOINT 2.0

99_custom_rules_scores.cf

/usr/mailcleaner/share/spamassassin/99_custom_rules_scores.cf

freemail_domain sharepointonline.com

score    KHOP_BIG_TO_CC  2.0

score    FREEMAIL_FROM 2.0
score    FREEMAIL_ENVFROM_END_DIGIT  0.25
score    FREEMAIL_REPLYTO_END_DIGIT  0.25
score    FREEMAIL_FORGED_REPLYTO 3.0
score    FREEMAIL_REPLYTO 2.5
score    FREEMAIL_REPLY  1.0

score    MC_MANY_FREEMAIL_RCPT  2.5

rawbody   GOOGLE_APIS   /https?:\/\/storage\.googleapis\.com/i
score     GOOGLE_APIS   1.5
describe  GOOGLE_APIS   Has a hyperlink that points to Google APIs

header    DOMAIN_NUM    From =~ /\@[\w+=\.]*\d{2,}[\w+=\.]*/
score     DOMAIN_NUM    1.0
describe  DOMAIN_NUM    Domain name has 2 or more numbers

header    LONG_SUBJECT  Subject =~ /.{120,}/
score     LONG_SUBJECT  1.0
describe  LONG_SUBJECT  Subject line is very long
internet/mail/mailcleaner_customize.1660243472.txt.gz · Last modified: 2022/08/11 12:44 by gcooper