Problem with user-specific filename rules

Garry Glendown garry at glendown.de
Thu Apr 14 09:13:00 UTC 2016


Hi,

I tried setting up a user-specific filename filtering rule ... after
setting up the general reference to the rule file with

    Filename Rules = %etc-dir%/rules/filename.rules

I set up the above rules file like this:

----
From:   someuser1 at domain.de
/etc/MailScanner/filename.toexternal-rules.conf
From:   someuser2 at domain.de
/etc/MailScanner/filename.toexternal-rules.conf

To:     @domain.de                /etc/MailScanner/filename.rules.conf
To:     @domain.de           /etc/MailScanner/filename.rules.conf

# Default
To:     default         /etc/MailScanner/filename.toexternal-rules.conf
----

filename.rules.conf contains somewhat stricter limits for receiving
mails, while sending outgoing mails are more general with less
restrictions (filename.toexternal-rules.conf). In general, this works
fine. Anyway, I want someuser1 and 2 to be able to send files blocked by
the filename.rules.conf to internal users. I was expecting that by
adding the two "from" lines to the .rules that they would be used.
Anyway, the to: lines still seem to have priority, blocking sending of
the mails ...
Am I missing something here, or is this a limitation of MailScanner that
it does not go through the rules file sequentially, but re-orders the
rule entries?

Thanks, -garry

-- 
PGP Fingerprint: A79F A33F 5B13 BEB7 A51D 274F F99C 3AE2 4BCB 7015



More information about the MailScanner mailing list