This commit is contained in:
2024-08-02 17:25:47 +02:00
parent 1b16027bd6
commit df3db74c6b
14 changed files with 429 additions and 58 deletions

View File

@ -0,0 +1,34 @@
# *** [ Ansible managed: DO NOT EDIT DIRECTLY ] ***
# ---
# Block messages exeeds 20 MB for listed recipients
#
# This file is called with '=~'. This means perl regexp is possible
#
#
# To increase performance use ^ and/or $ in regular expressions
#
# @acieu\.co\.uk$
# ^error@mailfrom\.com$
#
# instedt of
#
# @acieu.co.uk
# error@mailfrom.com
#
#
# Example:
#
# # # annoying spammer domains
# # block all senders of maildomaindomain 'oopen.de'
# @acieu\.co\.uk$
#
# # annoying spammer addresses
# # block sender address
# error@mailfrom.com
# sqek@eike\.se$
#
# ---
# MBR / VDK
info@mbr-berlin.de

View File

@ -0,0 +1,32 @@
# *** [ Ansible managed: DO NOT EDIT DIRECTLY ] ***
# ---
# Block messages exeeds 20 MB for listed recipients
#
# This file is called with '=~'. This means perl regexp is possible
#
#
# To increase performance use ^ and/or $ in regular expressions
#
# @acieu\.co\.uk$
# ^error@mailfrom\.com$
#
# instedt of
#
# @acieu.co.uk
# error@mailfrom.com
#
#
# Example:
#
# # # annoying spammer domains
# # block all senders of maildomaindomain 'oopen.de'
# @acieu\.co\.uk$
#
# # annoying spammer addresses
# # block sender address
# error@mailfrom.com
# sqek@eike\.se$
#
# ---

View File

@ -50,6 +50,13 @@
sender=~file:/etc/postfix/postfwd.bl-sender
}
# Block messages exceedds size of 20MB
&&BLOCK_CLIENT_NAME_MSG_SIZE_20MB {
protocol_state==END-OF-MESSAGE
recipient=~file:/etc/postfix/postfwd.bl-recipient-exeeds-msg-size-20mb
size=20971520
}
# Inbound emails only
&&INCOMING {
client_address!=127.0.0.1
@ -139,6 +146,12 @@ id=BL_SENDER
action=REJECT Sender address is blocked by Mailserver admins. Error: BL_SENDER
# Block messages for given recipients exceeds size of 20 MB
id=BLOCK_MSG_SIZE_20MB
&&BLOCK_CLIENT_NAME_MSG_SIZE_20MB
action=REJECT message exceeds the size of 20 MB ($$size). Error: BLOCK_MSG_SIZE_20MB
# Rate Limits
# Throttle unknown clients to 5 recipients per 5 minutes: