<div dir="ltr">I use swatch to monitor the mail log and trigger the adding of MTA discard entries based on rate thresholds.<div><br></div><div>watchfor / postfix\/cleanup.* hold: header Received: .*; from=<(.*)> /<br>    mail addresses=mailadmin\@<a href="http://example.com">example.com</a>,subject=[swatch] Excessive sender $1<br>    threshold type=both,count=500,seconds=60,track_by=$1<br></div><div>    exec /usr/local/bin/blockSender.sh $2</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 21, 2023 at 9:18 PM Rick Gutierrez <<a href="mailto:xserverlinux@gmail.com">xserverlinux@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">hi list, I need a little help, I have some users who are sending<br>
emails as lists, and a lot of them cause the server to blacklist due<br>
to the amount of email they send, some of those emails bounce because<br>
they don't exist, is there a way for mailscanner to deny the out to<br>
those addresses that bounce a lot.<br>
<br>
I found this thread, but it is not very clear and I tried to do it but<br>
without success.<br>
<br>
<a href="https://mailscanner.mailscanner.narkive.com/GmR6FwNu/block-outgoing-mail-with-rules" rel="noreferrer" target="_blank">https://mailscanner.mailscanner.narkive.com/GmR6FwNu/block-outgoing-mail-with-rules</a><br>
<br>
Mailscanner.conf add:<br>
<br>
Block Outgoing To = /etc/MailScanner/rules/block.outgoing.rules<br>
<br>
inside rules make a file block.outgoing.rules<br>
<br>
block.outgoing.rules<br>
From: <a href="mailto:ricardo@domainnew.com" target="_blank">ricardo@domainnew.com</a> yes<br>
<br>
Any idea what I could be doing wrong?<br>
<br>
<br>
-- <br>
rickygm<br>
<br>
<a href="http://gnuforever.homelinux.com" rel="noreferrer" target="_blank">http://gnuforever.homelinux.com</a><br>
<br>
<br>
-- <br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" rel="noreferrer" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
</blockquote></div>