Skip to content

Add specific setup for MailScanner files #62

@stefaweb

Description

@stefaweb

It will be nice to add in the install script the creation and modification of all specific files for MailScanner.

As described in https://docs.mailwatch.org/using/faq.html

Why are messages quarantined again when I release them in MailWatch?
This is because you need to bypass certain checks for messages from 127.0.0.1 to allow the released messages to pass through MailScanner without being quarantined again.

This one in conf.d/00_mailwatch.conf

Set the following in /etc/Mailscanner/Mailscanner.conf:

Filename Rules = %etc-dir%/filename.rules
Filetype Rules = %etc-dir%/filetype.rules
Dangerous Content Scanning = %rules-dir%/content.scanning.rules
Is Definitely Not Spam = %rules-dir%/spam.whitelist.rules
Then the following files should be set-up as follows:

filename.rules

From:          127.0.0.1       /etc/MailScanner/filename.rules.allowall.conf
FromOrTo:      default         /etc/MailScanner/filename.rules.conf
filetype.rules

From:          127.0.0.1       /etc/MailScanner/filetype.rules.allowall.conf
FromOrTo:      default         /etc/MailScanner/filetype.rules.conf
Edit the following files in /etc/MailScanner/rules:

content.scanning.rules

From:           127.0.0.1      no
FromOrTo:       default        yes
spam.whitelist.rules

From:           127.0.0.1      yes
FromOrTo:       default        no
Create the following files in /etc/MailScanner:

filename.rules.allowall.conf

allow   .*      -       -
filetype.rules.allowall.conf

allow   .*      -       -

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions