If you need to check combinations of allowed extensions (PDF | TIFF | TXT), you can try the following rule:
Attachments:
PDF + TXT - allowed
PDF + TIFF + DOC - quarantine
Etc.
Code:
mimeheader __ANY_ATTACHMENT Content-Type =~ /name=/i
mimeheader __ALLOW_ATTACHMENT Content-Type =~ /name\*?=["']?.*?\.(?:pdf|tiff?|txt)["']?(?:;|$)/i
meta SUSPICIOUS_MIME_TYPE __ANY_ATTACHMENT > __ALLOW_ATTACHMENT
describe SUSPICIOUS_MIME_TYPE Contains attachments other than PDF, TIFF, or TXT
score SUSPICIOUS_MIME_TYPE 7.0
tflags SUSPICIOUS_MIME_TYPE noautolearn
Attachments:
PDF + TXT - allowed
PDF + TIFF + DOC - quarantine
Etc.