<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>So what I get from this rule is that it is checking DKIM and is fails it scores it 20 this I think will work..  Will try thanks.  anyone else doing it a different way ?</div>
<div><br>
</div>
<div>On Sat, 2016-12-24 at 09:19 +0100, Thom van der Boon wrote:</div>
<blockquote type="cite">
<div style="font-family: Helvetica; font-size: 12pt; color: #000000">
<div data-marker="__QUOTED_TEXT__">
<div style="font-family: Helvetica; font-size: 12pt; color: #000000">
<div>I have more or less the same problem. I have a Mailscanner server which handles all mails from external sources, any internal mail is handled on a other server (which can not be reached from the Internet). This means that I can be pretty rude to any mail
 claiming to be from a local domain received from an external server on the MailScanner server<br>
</div>
<br>
<div>I am currently testing the following setup:<br>
</div>
<br>
<div>I added the file domaincom.cf to /etc/mail/spamassassin with the following lines<br>
</div>
<br>
<div>header         __DSR_DOMAINCOM_VALID000    From =~ /\@domain.com/i<br>
header         __DSR_DOMAINCOM_VALID001    To =~ /\@domain.com/i<br>
ifplugin Mail::SpamAssassin::Plugin::DKIM<br>
  meta            DSR_DOMAINCOM_VALID __DSR_DOMAINCOM_VALID000 && __DSR_DOMAINCOM_VALID001 && !DKIM_VALID<br>
else<br>
  meta          DSR_DOMAINCOM_VALID __DSR_DOMAINCOM_VALID000 && __DSR_DOMAINCOM_VALID001<br>
endif<br>
describe        DSR_DOMAINCOM_VALID No valid domain.com mail<br>
score           DSR_DOMAINCOM_VALID 20.0</div>
<br>
<div>Start testing with a lower score..... :)<br>
</div>
<br>
<br>
<br>
<div>
<div>Met vriendelijke groet, Best regards,</div>
<br>
<div><br style="font-family: helvetica;">
<span style="font-family: helvetica;">Thom van der Boon</span><br style="font-family: helvetica;">
<span style="font-family: helvetica;">E-Mail: thom@vdb.nl</span></div>
<br>
<div><br style="font-family: helvetica;">
<br style="font-family: helvetica;">
<span style="font-family: helvetica;">=====</span></div>
<br>
<br>
<br>
<div><span style="font-family: helvetica;">Thom.H. van der Boon b.v.</span><br style="font-family: helvetica;">
<span style="font-family: helvetica;"></span><span style="font-family: helvetica;">Transito 4</span></div>
<div><span style="font-family: helvetica;">6909 DA  Babberich<br style="font-family: helvetica;">
</span><span style="font-family: helvetica;">Tel.: +31 (0)88 4272727</span><br style="font-family: helvetica;">
<span style="font-family: helvetica;">Fax: +31 (0)88 4272789</span><br style="font-family: helvetica;">
<span style="font-family: helvetica;">Home Page: http://www.vdb.nl/</span></div>
</div>
<br>
<hr id="zwchr">
<div><b>Van: </b>"Philip Parsons" <pparsons@techeez.com><br>
<b>Aan: </b>"MailScanner Discussion" <mailscanner@lists.mailscanner.info><br>
<b>Verzonden: </b>Vrijdag 23 december 2016 21:00:10<br>
<b>Onderwerp: </b>How to reject/detect emails claiming to be from my own domain?<br>
</div>
<br>
<div>
<div class="WordSection1">
<p class="MsoNormal">I use Mailscanner and Send mail.  We have a few instances that we are receiving spam from
<a href="mailto:jack@example.com" target="_blank">jack@example.com</a> to <a href="mailto:jack@example.com" target="_blank">
jack@example.com</a> and it is getting through.  I have not seemed to find and answers as to how to stop this? Anyone got an Idea.  We already have SPF setup which helps but is not fully for this situation.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-size: 10.0pt; font-family: 'Arial',sans-serif; mso-fareast-language: EN-CA;"> </span></p>
<p class="MsoNormal"><span style="font-size: 10.0pt; font-family: 'Arial',sans-serif; mso-fareast-language: EN-CA;">Thank you.</span><span style="font-size: 12.0pt; font-family: 'Times New Roman',serif; mso-fareast-language: EN-CA;">
<br>
</span><span style="font-size: 16.0pt; font-family: 'Comic Sans MS'; mso-fareast-language: EN-CA;">Philip Parsons</span><span style="font-size: 12.0pt; font-family: 'Times New Roman',serif; mso-fareast-language: EN-CA;"><br>
<br>
</span><span style="mso-fareast-language: EN-CA;"></span></p>
<p class="MsoNormal"> </p>
</div>
<br>
-- <br>
This message has been scanned for viruses and <br>
dangerous content by <a href="http://www.mailscanner.info/" target="_blank"><b>MailScanner</b></a>, and is
<br>
believed to be clean. <br>
<br>
<br>
-- <br>
MailScanner mailing list<br>
mailscanner@lists.mailscanner.info<br>
http://lists.mailscanner.info/mailman/listinfo/mailscanner</div>
</div>
<br>
</div>
</div>
<br>
<pre>
</pre>
</blockquote>
<div><span>
<pre>-- 

Thank You
Philip Parsons
Techeez on the go
please excuse the spelling.</pre>
</span></div>
</body>
</html>