<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 11.00.9600.18538"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=413352222-04012017><FONT color=#0000ff
size=2 face=Arial>Right at the top of filename.rules.conf place (<TAB>
means hit the tab key)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=413352222-04012017><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=413352222-04012017><FONT color=#0000ff
size=2 face=Arial>allow<TAB>COL.+\.tmp\.doc$<TAB>Allow Special
COLXXX.tmp.doc<TAB>Allow Special COLXXX.tmp.doc</FONT></SPAN></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><SPAN class=413352222-04012017></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT size=2>Y<SPAN class=413352222-04012017>our did not say if
XXX was always a number or always an addition 3 chars if always number of at
least 3 digits</SPAN></FONT></FONT></FONT><BR><SPAN
class=413352222-04012017><FONT color=#0000ff size=2
face=Arial>allow<TAB>COL\d{3,}\.tmp\.doc$<TAB>Allow Special
COLXXX.tmp.doc<TAB>Allow Special COLXXX.tmp.doc</FONT></SPAN></DIV>
<DIV><SPAN class=413352222-04012017><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=413352222-04012017><FONT color=#0000ff size=2 face=Arial>any
three chars</FONT></SPAN></DIV>
<DIV><SPAN class=413352222-04012017><SPAN class=413352222-04012017><FONT
color=#0000ff size=2
face=Arial>allow<TAB>COL.{3}\.tmp\.doc$<TAB>Allow Special
COLXXX.tmp.doc<TAB>Allow Special COLXXX.tmp.doc</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=413352222-04012017><SPAN class=413352222-04012017><FONT
color=#0000ff size=2 face=Arial></FONT></SPAN></SPAN> </DIV>
<DIV><SPAN class=413352222-04012017><SPAN class=413352222-04012017><FONT
color=#0000ff size=2 face=Arial>If it always comes from <A
href="mailto:xyz@abc.com">xyz@abc.com</A> (and you trust them completely) then
place the following in filename.rules</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=413352222-04012017><SPAN class=413352222-04012017><FONT
color=#0000ff size=2 face=Arial></FONT></SPAN></SPAN> </DIV>
<DIV><SPAN class=413352222-04012017><SPAN class=413352222-04012017><FONT
color=#0000ff size=2 face=Arial>From: <TAB><A
href="mailto:xyz@abc.com">xyz@abc.com</A></FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=413352222-04012017><SPAN class=413352222-04012017><FONT
color=#0000ff size=2 face=Arial></FONT></SPAN></SPAN> </DIV>
<DIV><SPAN class=413352222-04012017><SPAN class=413352222-04012017><FONT
color=#0000ff size=2 face=Arial>if the local part can be different but always
same domain the use</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=413352222-04012017><SPAN class=413352222-04012017><FONT
color=#0000ff size=2 face=Arial>From: <TAB><A
href="mailto:*@abc.com">*@abc.com</A></FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=413352222-04012017><SPAN class=413352222-04012017><FONT
color=#0000ff size=2 face=Arial></FONT></SPAN></SPAN> </DIV>
<DIV><SPAN class=413352222-04012017><SPAN class=413352222-04012017><FONT
color=#0000ff size=2 face=Arial>If there is nothing on the right side of that
address then no file name checking will be done. Bear in mind if you would just
like that one pass made create a special version of the filename.rules.conf
(like COLXXX.filename.rules.conf)</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=413352222-04012017><SPAN class=413352222-04012017><FONT
color=#0000ff size=2 face=Arial>and use</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=413352222-04012017><SPAN class=413352222-04012017><FONT
color=#0000ff size=2
face=Arial>From<TAB>*@abc.com<TAB>/your/path/to/MailScanner/etc/COLXXX.filename.rules.conf</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=413352222-04012017><SPAN class=413352222-04012017><FONT
color=#0000ff size=2 face=Arial></FONT></SPAN></SPAN> </DIV>
<DIV><SPAN class=413352222-04012017><SPAN class=413352222-04012017><FONT
color=#0000ff size=2 face=Arial>and then only that domain would have the
additional pass but all other rules would still apply. Look that those two
files, there is a lot you can do.</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=413352222-04012017><SPAN class=413352222-04012017><FONT
color=#0000ff size=2 face=Arial></FONT></SPAN></SPAN> </DIV>
<DIV><SPAN class=413352222-04012017><SPAN class=413352222-04012017><FONT
color=#0000ff size=2 face=Arial>All of this assumes the file does not come in an
archive (zip/rar) in which cases you would use the .archive version of those
same files.</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=413352222-04012017><SPAN class=413352222-04012017><FONT
color=#0000ff size=2 face=Arial></FONT></SPAN></SPAN> </DIV>
<DIV><SPAN class=413352222-04012017><SPAN class=413352222-04012017><FONT
color=#0000ff size=2 face=Arial>Rick Cooper</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=413352222-04012017><SPAN class=413352222-04012017><FONT
color=#0000ff size=2 face=Arial></FONT></SPAN></SPAN> </DIV>
<DIV lang=en-us class=OutlookMessageHeader dir=ltr align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> MailScanner
[mailto:mailscanner-bounces+rcooper=dwford.com@lists.mailscanner.info] <B>On
Behalf Of </B>Jason Waters<BR><B>Sent:</B> Wednesday, January 04, 2017 10:49
AM<BR><B>To:</B> MailScanner Discussion<BR><B>Subject:</B> Allowing a
filename<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>I have a client that sends doc files but through their system and
they come as COLXXX.tmp.doc
<DIV><FONT color=#0000ff size=2 face=Arial></FONT><FONT color=#0000ff size=2
face=Arial></FONT><BR></DIV>
<DIV>The X's change so we would need to account for that. These are legit
and would like to build a rule to allow them. I'm assuming it would be
in filename.rules.conf? Could someone help me out? Also they
always from from the same domain. I tried white listing that domain, but
that didn't allow them to pass. Thanks.</DIV>
<DIV><BR>Jason</DIV></DIV></BODY></HTML>