Error at boot when signatures enabled

Report bugs and workarounds
Post Reply
sem
Posts: 14
Joined: 07 Nov 2012 11:26

Error at boot when signatures enabled

Post by sem »

Added HTML and text signature. No signatures being applied to mail. This error reported at boot:

Could not read file /etc/MailScanner/signatures/domains/html/1.html at /usr/share/MailScanner/MailScanner/Config.pm line 2864 Syntax error in line 1 of ruleset file inlinehtmlsig at /usr/share/MailScanner/MailScanner/Config.pm line 2811
Could not read file /etc/MailScanner/signatures/domains/html/2.html at /usr/share/MailScanner/MailScanner/Config.pm line 2864 Syntax error in line 2 of ruleset file inlinehtmlsig at /usr/share/MailScanner/MailScanner/Config.pm line 2811
Could not read file /etc/MailScanner/signatures/domains/html/3.html at /usr/share/MailScanner/MailScanner/Config.pm line 2864 Syntax error in line 3 of ruleset file inlinehtmlsig at /usr/share/MailScanner/MailScanner/Config.pm line 2811 Found syntax errors in database ruleset inlinehtmlsig at /usr/share/MailScanner/MailScanner/Config.pm line 2626

sem.
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: Error at boot when signatures enabled

Post by darky83 »

Do the files: /etc/MailScanner/signatures/domains/html/x.html actually exist?
Version eFa 4.x now available!
sem
Posts: 14
Joined: 07 Nov 2012 11:26

Re: Error at boot when signatures enabled

Post by sem »

No. No files.
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: Error at boot when signatures enabled

Post by darky83 »

I will test this some further,

Baruwa doesn't create the directory's, but if you create the dir's yourself I get a error when creating new signatures:

Code: Select all

Task generate-domain-signature-files[fb52210b-797d-4bdc-afe9-4702e5e09ec4] raised exception: IndexError('list index out of range',)
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/celery/execute/trace.py", line 34, in trace
    return cls(states.SUCCESS, retval=fun(*args, **kwargs))
  File "/usr/lib/pymodules/python2.6/celery/task/base.py", line 241, in __call__
    return self.run(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/baruwa/config/tasks.py", line 207, in run
    update_ms_serial(logger)
  File "/usr/lib/pymodules/python2.6/baruwa/config/tasks.py", line 51, in update_ms_serial
    )[0]
  File "/usr/lib/pymodules/python2.6/django/db/models/query.py", line 189, in __getitem__
    return list(qs)[0]
IndexError: list index out of range

Not sure whats the reason right now.
Version eFa 4.x now available!
cam
Posts: 37
Joined: 26 Oct 2012 17:02

Re: Error at boot when signatures enabled

Post by cam »

Have we determined how to implement domain signatures successfully yet or is this still a work in progress?
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: Error at boot when signatures enabled

Post by darky83 »

Still a work in progress,

I hope to have this in 0.4 seems to be not really stable enough still trying to figure out why.
Version eFa 4.x now available!
datopdog
Posts: 4
Joined: 22 Oct 2012 13:27

Re: Error at boot when signatures enabled

Post by datopdog »

That error is because you either do not have a scanner host configured or the one configured does not match what is returned by the hostname command
Post Reply