Customise postfix reject messages

Questions and answers about how to do stuff
Post Reply
AITCS
Posts: 45
Joined: 13 Mar 2017 11:12

Customise postfix reject messages

Post by AITCS »

Hi all,

Just wondering if there's a simple way to customise postfix reject messages when a file type restriction is encountered?

e.g. we block all zip/exe/com files, and currently senders will receive a "5.7.1 message content rejected" bounce if they attempt to send a file in the reject list to one of our users. Unfortunately the message is too vague for some senders who will just continue to email through the suspect files and will blame us for not receiving them until our logs prove otherwise.

If we could customise the bounce to provide a bit more description, it would free up time having to explain this behaviour every time.
Any assistance would be of great help.
Post Reply