<div dir="auto"><div>Thanks for suggesting<br><br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 30, 2018, 6:48 PM Mark Sapiro <<a href="mailto:mark@msapiro.net">mark@msapiro.net</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 11/30/18 5:41 AM, George Papamichelakis wrote:<br>
> <br>
> I'm trying to bypass filename checking  using the examples mentioned in<br>
> the book<br>
> in Appendix C  .<br>
<br>
Which is quite old.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">You mean I shouldn't take very seriously the book ?</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
> In particular I have created the three mentioned files<br>
> (filename.rules.allowall.conf,<br>
> filetype.rules.allowall.conf and filename.rules).<br>
<br>
<br>
What about filetype.rules?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Currently I only need filename rules to bypass. I just created the file type in advance.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
And did you create these in the appropriate (/etc/MailScanner/ and<br>
/etc/MailScanner/rules/) directories, not literally %etc-dir% and %rules%?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Yes of course</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
> The only different<br>
> thing I have done<br>
> different is that I specify a complete mail address instead of the<br>
> domain eg:<br>
> <br>
> FromOrTo:  user@email.tld %etc-dir%/filename.rules.allowall.conf<br>
<br>
<br>
I think you may need /etc/MailScanner/filename.rules.allowall.conf<br>
instead of %etc-dir%/filename.rules.allowall.conf.<br>
<br>
And did you make the appropriate Filename Rules and FileType Rules<br>
settings in MailScanner.conf or better in a file in<br>
/etc/MailScanner/conf.d/?<br>
<br><br></blockquote></div></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div><div dir="auto"><span style="font-family:sans-serif">Yes  I did</span><br></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
> (I don't want the whole domain to go unchecked, only some users) . But<br>
> the rule don't seem to work<br>
> Is this the expected behavior ? If not can I somehow trace why the rule<br>
> doesn't apply ?<br>
<br>
<br>
First make sure everything is as indicated above. Then if there are<br>
still problems, post the the actual file path names and their contents<br>
(you can obfuscate actual email addresses) and your config settings for<br>
Filename Rules and FileType Rules.<br>
<br><br><br><br></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><span style="font-family:sans-serif">Ok  I will do so first</span><br></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
> Also can I specify in the rule  that I want to bypass the filename (or<br>
> type) checks when the user is the sender but not when the user is the<br>
> recipient ?<br>
<br>
<br>
Instead of FromOrTo, just use From.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">This applies to To also ?</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
See the files README and EXAMPLES in /etc/MailScanner/rules.<br>
<br>
-- <br>
Mark Sapiro <<a href="mailto:mark@msapiro.net" target="_blank" rel="noreferrer">mark@msapiro.net</a>>        The highway is for gamblers,<br>
San Francisco Bay Area, California    better use your sense - B. Dylan<br>
<br>
<br>
-- <br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank" rel="noreferrer">mailscanner@lists.mailscanner.info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" rel="noreferrer noreferrer" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
</blockquote></div></div></div>