What does the mailscanner do to email attachments?

Want to support HowtoForge? Become a subscriber!
Submitted by till (Contact Author) (Forums) on Tue, 2006-08-08 11:30. :: ISPConfig

Attachments with suspicious file extensions (e.g. exe) will be renamed automatically: e.g., USELESS_EYE_CANDY.EXE would be renamed to USELESS_EYE_CANDY.DEFANGED12345-EXE, so that one cannot open the attachment thoughtlessly by double-clicking. The attachment first has to be saved to the hard disk and to be renamed to USELESS_EYE_CANDY.EXE before it can be opened.

Note: The mailscanner feature is not the same as the antivirus.

Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by riverman (registered user) on Sat, 2009-10-24 22:25.

This is how to change attachement rename settings:

  1.  Edit: /root/ispconfig/isp/conf/html-trap.rc.master
  2. Search for: MANGLE_EXTENSIONS=
  3. You can see extensions are separated by pipes | so you can easily remove as many as you want. (f.ex: do[ct] for Word)


Your new settings will ONLY affect new users. To change for existing users do the same changes in file: /var/www/web<x>/user/web<x>_<user>/.html-trap.rc