Re: Ban .html as attachment but not html mails?

Mark Sapiro <[email protected]>
Newsgroups gmane.mail.virus.mailscanner
Message-ID <[email protected]>
On 6/30/21 12:30 PM, Remco Barendse wrote:
> MOre and more malicious emails are coming in with .html as an attachment.
> 
> I do not need my users to receive .html files, ever
> 
> Blocking them in /etc/MailScanner/filename.rules.conf
> #deny   \.htm$          Dangerous attachment type #deny   
> \.html$         Dangerous attachment type
> 
> Blocks every email in html, not exactly what I wanted.
> 
> What is the proper way to do it?


Consider that most MUAs that compose "rich text" email will create a 
message with the following MIME structure

multipart/alternative
     text/plain
         a plain text rendition of the message
     text/html
         a rich text rendition of the message

Compare that to the structure of a message with a plain text body and an 
HTML attachment.

multipart/mixed
     text/plain
         the plain text message
     text/html
         an HTML attachment

MailScanner currently does not distinguish between these two cases.

-- 
Mark Sapiro <[email protected]>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


-- 
MailScanner mailing list
[email protected]
http://lists.mailscanner.info/mailman/listinfo/mailscanner
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.