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

@ -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: