Per-user or per-domain language settings

Achim J. Latz achim+mailwatch at
Thu Feb 5 13:28:26 GMT 2015

Hello list:

I have been unsuccessfully trying to get MailScanner (4.84.5-4~precise) 
to respect my per-user (or per-domain) language settings. My findings:

1) %report-dir% cannot be overwritten in a local .conf in 
(the value is never used, probably due to QuickPeek)

2) %report-dir% cannot be a ruleset either, so apparently "Reports" can 
only have one pre-defined language, AND that language must be set in 

3) "Language Strings" apparently CAN be a rule set, but apparently only 
the default rule works. For instance, the following combination should 
lead to reports in Dutch/NL for every @example.tld address, and 
German/DE for everybody else:

==== /etc/MailScanner/MailScanner.conf (stock values)
%report-dir% = /etc/MailScanner/reports/en
%rules-dir% = /etc/MailScanner/rules
Language Strings = %report-dir%/languages.conf
include /etc/MailScanner/conf.d/*

==== /etc/MailScanner/conf.d/local.conf (local overwrites)
# setting has no effect, MailScanner.conf value for report-dir is always 
%report-dir% = /etc/MailScanner/reports/de
%rules-dir% = /etc/MailScanner/rules
Language Strings = %rules-dir%/languages.rules

====/etc/MailScanner/rules/languages.rules (Dutch for example.tld, 
German for the rest)
# separated by tabs or space makes no difference
To: *@example.tld /etc/MailScanner/reports/nl/languages.conf
To: default /etc/MailScanner/reports/de/languages.conf

Changing the language in the "To: default" rule does indeed work as 
expected for everybody, but the specific per-domain or per-address rules 
do not seem to work.

I have tried all conceivable combinations of the rules file, including 
with tabs, spaces, "*@example.tld", "example.tld", 
"john.doe at example.tld" etc…: no success, only the default rule is evaluated.

Anybody on this list using MailScanner in a multi-language set-up? I saw 
that Baruwa apparently can use that MailScanner setting, perhaps 
somebody has experience?

Cheers, Achim

More information about the MailScanner mailing list