- Edited
I use the built-in filter to block unwanted files:
require ["reject","body","regex","notify"];
if anyof (body :raw :regex ["filename=.*\.doc","filename=.*\.exe","filename=.*\.moo"]) {
redirect "blocked@domain.com";
And all attachments go to the blocked@domain.com mailbox. Even those that are not in the list pdf,rar,zip,xml…
Could I have broken the configuration file if I only changed message_size_limit in data/conf/postfix/extra.cf and main.cf to 30MB. Please help me understand where to fix the problem?