Startup errors after major upgrade
Julian Field
MailScanner at ecs.soton.ac.uk
Thu Apr 30 09:12:32 IST 2009
On 29/04/2009 22:10, G. Armour Van Horn wrote:
> Jules,
>
> To the first, you were dead on. I originally copied the lines from the
> default filename rules and just changed "deny" to "allow". It didn't
> generate any errors before.
>
> To the second, the error lists three characters that aren't allowed,
> and I'm not using any of them. I didn't change the string, it's the
> same as it has been for the two and a half years since this machine
> was setup. It also failed with square brackets, and with just a
> semi-colon before the server name. I ended up with this:
> Mail Header = X-%org-name%-VanguardMailScanner:
>
> I really don't like confusing my server name with your product name,
> but without at least some non-alpha character that works it's difficult.
You do have the option of removing the word "MailScanner" from that
setting. The legal characters (from my code) are these:
_
a-z
A-Z
0-9
-
so you could also use X-%org-name%-Vanguard-MailScanner: for example. I
play it safe as many mail systems are badly written and misbehave if you
don't.
>
> Van
>
> Julian Field wrote:
>>
>> On 29/04/2009 04:05, G. Armour Van Horn wrote:
>>> Okay, I just installed MailScanner 4.75.11 over an existing
>>> installation, which was 4.57.6. When I restarted MS I got a few
>>> complaints about spaces that should have been tabs in a couple of
>>> domain-specific rule files, which I took care of.
>>>
>>> Well, I guess not. I'm still getting this one:
>>>
>>> Possible syntax error on line 14 of
>>> /etc/MailScanner/filename.tlc.conf at
>>> /usr/lib/MailScanner/MailScanner/Config.pm line 1472
>>> Remember to separate fields with tab characters! at
>>> /usr/lib/MailScanner/MailScanner/Config.pm line 1474
>>>
>>> Line 14 of that file is the "allow" line below, and the space after
>>> allow and the space between $ and Found are both single tabs.
>>>
>>> # Allow all other double file extensions. Specifically for
>>> ClickAndPledge.com
>>> allow \.[a-z][a-z0-9]{2,3}\s*\.[a-z0-9]{3}$ Found possible
>>> filename hiding
>> If you look at the other "allow" and "deny" lines, they have 2
>> strings after the regexp. Both of which, in an allow, are normally
>> "-" as they are not used. But there must be **2* of them!
>>
>>>
>>>
>>> The main problem, I think, is this one:
>>>
>>> Your setting "Mail Header" contains illegal characters.
>>> This is most likely caused by your "%org-name%" setting
>>> which must not contain any spaces, "." or "_" characters
>>> as these are known to cause problems with many mail systems.
>>>
>>> I believe these are the applicable lines out of MailScanner.conf:
>>>
>>> %org-name% = DomainVanHorn
>>>
>>> Mail Header = X-%org-name%-MailScanner(vanguard):
>> Are () brackets allowed in mail header names? I don't think they are.
>>>
>>> I sent myself a test message, and here is a chunk out of the source
>>> of the message I got back:
>>>
>>> Subject: test
>>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>> Content-Transfer-Encoding: 7bit
>>> X-DomainVanHorn-MailScanner-Information: Please contact the ISP for
>>> more information
>>> X-DomainVanHorn-MailScanner-ID: n3T2mLYw025775
>>> X-DomainVanHorn-MailScanner(vanguard): Found to be clean
>>> X-DomainVanHorn-MailScanner-SpamCheck(vanguard): not spam,
>>> SpamAssassin (not cached, score=-2.599, required 4,
>>> autolearn=not spam, BAYES_00 -2.60)
>>> X-DomainVanHorn-MailScanner-From: vanhorn at whidbey.com
>>> X-Spam-Status: No
>>> X-WNSpam-Score: 6.3
>>> X-WNSpam-Int: 63
>>> X-Spambayes-Classification: ham
>>> X-Spambayes-Spam-Probability: 0.00 (7)
>>> X-Spambayes-MailId: 1240953637
>>>
>>>
>>> Odd that my server and SpamBayes both say it's clean, but my ISP
>>> considered it spam (WNSpam at 6.3, on that system 3.5 is a good
>>> default for the cutoff.) But the MS headers seem to be working
>>> coherently, and without any spaces that I can see.
>>>
>>> Can these be ignored, or do I have to worry about them?
>>>
>>> Van
>>>
>>
>> Jules
>>
>
Jules
--
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM and twitter.com/MailScanner
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the MailScanner
mailing list