Allow twbx file types

Questions and answers about how to do stuff
Post Reply
bostjanc
Posts: 110
Joined: 01 Jun 2016 17:18

Allow twbx file types

Post by bostjanc » 13 Feb 2020 14:20

Hi.
EFA - 3.0.2.6
I got a "complaint" from one of the users that they are no more able to receive "twbx" file types attachment.
Efa rejects those messages with a reason: Bad content
If I look inside mailscanner I see:
MailScanner: No programs allowed (21.bin)
MailScanner: No programs allowed (21.bin)

- User is saying he was able to get those kind of file types in the past
- Putting the file into .zip does not solve it
I have also tried editing: filename.rules.conf and added:
allow \.twbx$ - -
but after I restart mailscanner service I get an error:
Possible syntax error on line 52 of /etc/MailScanner/filename.rules.conf at /usr/share/MailScanner/perl/MailScanner/Config.pm line 1672

Pls help - How can we solve this?
Thank you.
With best regards

bostjanc
Posts: 110
Joined: 01 Jun 2016 17:18

Re: Allow twbx file types

Post by bostjanc » 19 Feb 2020 11:40

Anyone pretty pls?

User avatar
shawniverson
Posts: 3028
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Allow twbx file types

Post by shawniverson » 19 Feb 2020 22:32

Tabs instead of spaces, right?
Version eFa 4.0.2 now available!

bostjanc
Posts: 110
Joined: 01 Jun 2016 17:18

Re: Allow twbx file types

Post by bostjanc » 19 Feb 2020 22:56

Shawn.
1st of all I would like to thank you for you reply.
Excuse me of my lack of knowledge of linux syntax, could you be please more specific what would be the correct format of adding that file types in exclusion?
With best regards

bostjanc
Posts: 110
Joined: 01 Jun 2016 17:18

Re: Allow twbx file types

Post by bostjanc » 20 Feb 2020 10:14

Allright, I have went with the same procedure again.
This time the syntax was correct (there had to be some wrong spaces in my previous attempts).
But the problem is that even if I add line:
allow \.twbx$ - -
into file: /etc/MailScanner/filename.rules.conf
and restart mailscanner service and sent a test message again with twbs attachment EFA/MailScanner still blocks it with reason:
MailScanner: No programs allowed (21.bin)
MailScanner: No programs allowed (21.bin)

Do I need to add exclusion of filetypes *.twbx to some other config to?

bostjanc
Posts: 110
Joined: 01 Jun 2016 17:18

Re: Allow twbx file types

Post by bostjanc » 23 Feb 2020 01:43

Should I just disable scanning archive files like in this thread suggested?

viewtopic.php?t=2982

Or does anyone else have a different solution?

With best regards

User avatar
shawniverson
Posts: 3028
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Allow twbx file types

Post by shawniverson » 24 Feb 2020 00:44

I think this is hitting in the archive rules..it looks like the twbx is getting decompressed and eFa is finding some .bin files in it.

Try archive.filename.rules files instead.
Version eFa 4.0.2 now available!

bostjanc
Posts: 110
Joined: 01 Jun 2016 17:18

Re: Allow twbx file types

Post by bostjanc » 24 Feb 2020 06:17

Hi Shawn.
Thank you for your reply.
I have added allowness of extension in the archives.filename.rules.conf, restarted mailscanner service, resent a test message and error is the same.
Then I have changed MailScanner.conf maximum archive depth from 3 to 0, restarted mailscanner and still the same error :/
I have ran out of ideas. Any other hints?
With best regards

User avatar
shawniverson
Posts: 3028
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Allow twbx file types

Post by shawniverson » 24 Feb 2020 23:33

Are these coming from a specific sender? If so, can you whitelist them in archives.filename.rules and archives.filetypes.rules? Be sure to use tabs between the fields for the entry.
Version eFa 4.0.2 now available!

bostjanc
Posts: 110
Joined: 01 Jun 2016 17:18

Re: Allow twbx file types

Post by bostjanc » 26 Feb 2020 04:55

Hi.
This is not comming from a specific sender.

bostjanc
Posts: 110
Joined: 01 Jun 2016 17:18

Re: Allow twbx file types

Post by bostjanc » 26 Mar 2020 10:39

Hi!
Any other ideas/hints (pls)?

Post Reply