Re: block outgoing mail

Dave Jones <[email protected]> Tue, 1 Aug 2023 02:32:28 -0500
Newsgroups gmane.mail.virus.mailscanner
Message-ID <CAJmnxLXkmDSRG0yw6razQCCwWi+onstv-LgBGZ9TEpbQDXGHOA@mail.gmail.com>
I use swatch to monitor the mail log and trigger the adding of MTA discard
entries based on rate thresholds.

watchfor / postfix\/cleanup.* hold: header Received: .*; from=<(.*)> /
    mail addresses=mailadmin\@example.com,subject=[swatch] Excessive sender
$1
    threshold type=both,count=500,seconds=60,track_by=$1
    exec /usr/local/bin/blockSender.sh $2

On Wed, Jun 21, 2023 at 9:18 PM Rick Gutierrez <[email protected]>
wrote:

> hi list, I need a little help, I have some users who are sending
> emails as lists, and a lot of them cause the server to blacklist due
> to the amount of email they send, some of those emails bounce because
> they don't exist, is there a way for mailscanner to deny the out to
> those addresses that bounce a lot.
>
> I found this thread, but it is not very clear and I tried to do it but
> without success.
>
>
> https://mailscanner.mailscanner.narkive.com/GmR6FwNu/block-outgoing-mail-with-rules
>
> Mailscanner.conf add:
>
> Block Outgoing To = /etc/MailScanner/rules/block.outgoing.rules
>
> inside rules make a file block.outgoing.rules
>
> block.outgoing.rules
> From: [email protected] yes
>
> Any idea what I could be doing wrong?
>
>
> --
> rickygm
>
> http://gnuforever.homelinux.com
>
>
> --
> MailScanner mailing list
> mailscanner-qhrM8SXbD5JTOyd/[email protected]
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
>



-- 
MailScanner mailing list
mailscanner-qhrM8SXbD5JTOyd/[email protected]
http://lists.mailscanner.info/mailman/listinfo/mailscanner