MailScanner.conf and spam.assassin.prefs.conf consistency

Julian Field MailScanner at ecs.soton.ac.uk
Tue Sep 18 19:06:39 IST 2007



David Lee wrote:
> MailScanner.conf has a nice feature of defining "%org-name%" near the top,
> then using it further on, particularly for "X-%org-name%-MailScanner-..."
> headers.
>
> But spam.assassin.prefs.conf meanwhile requires some of these "X-..."
> headers to be hard-coded.  Would it be possible for these (at least as
> default) to somehow be automatic from %org-name%"?
>   
No, sorry, can't do it. MailScanner doesn't know how to parse the 
spam.assassin.prefs.conf file. The only important one is the envelope 
sender header, which is checked by "MailScanner --lint" which uses a 
very simple approach to reading the spam.assassin.prefs.conf file which 
is just good enough to read this single setting.

> I realise that SA needs to see the fully expanded form (thus different at
> every "org"), but could the sys.admin's version (default common across all
> "org"s) read "X-%org-name%-...", which MS/SA/something expand up for SA?
>
> Just a thought.
>   
The only thing I could do would be to parse the file and generate a new 
one, but this would need to be put in /etc/mail/spamassassin, and it's 
rather a cardinal sin to overwrite anything in /etc, stuff like that 
should be in /var. But I'm not sure how to tell SpamAssassin to add 
somewhere under /var to the list of directories it reads for admin-level 
settings.

All advice from others out there is gratefully received.

Jules

-- 
Julian Field MEng CITP
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
For all your IT requirements visit www.transtec.co.uk


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit www.transtec.co.uk



More information about the MailScanner mailing list