ConfigServer Services HelpDesk
Server Management Services from Way to The Web Ltd
ConfigServer Home Page

Temporary Closure

We are taking a short break and will close the store, helpdesk and email from 17:00 GMT on Tuesday, 16h April to 09:00 Thursday, 25th April 2024.

If you purchase a license or Service Package before the closing date and require installation, please be sure to leave at least 24-48 hours before then for the work to be done. Otherwise, any work will be scheduled for after this period. We will reopen on Thursday, 25th April 2024.


How can I allow certain file attachments in emails sent to or from some domains but still block them for all other domains?

Support Portal  »  Knowledgebase  »  Viewing Article

  Print
If you only want to allow certain attachments for one or two domains but still block them for all other domains, then you need to do the following.

Copy /usr/mailscanner/etc/filename.rules.conf and /usr/mailscanner/etc/filetype.rules.conf (and archives.filename.rules.conf and archives.filetype.rules.conf if appropriate) to create new conf files, for example filename.special.rules.conf and filetype.special.rules.conf. Edit the new conf files to allow the files you wish to permit through.

Then edit /usr/mailscanner/etc/rules/filename.rules.rules and filetype.rules.rules and modify the line for the domain(s) you wish to use the new ruleset, like this:

FromOrTo: domain.com /usr/mailscanner/etc/filename.special.rules.conf
and
FromOrTo: domain.com /usr/mailscanner/etc/filetype.special.rules.conf
(Each of the above lines should be all on one line in the rules files.)

Information about determining why an attachment has been blocked and modifying the filename and filetype configuration files can be found here.

Restart MailScanner after you have made any changes to the rules files or filename/filetype configuration.

Share via

Related Articles


Self-Hosted Help Desk Software by SupportPal
© ConfigServer Services