after checking it
#reject email when the file extension is found
FORBIDDEN_FILE_EXTENSION {
type = "filename";
filter = "extension";
map = [
"${CONFDIR}/forbidden_file_extension.map",
];
action = "reject";
symbol = "FORBIDDEN_FILE_EXTENSION";
description = "List of forbidden file extensions";
message = "Forbidden attachment name extension";
}
we answer to the sender the message Forbidden attachment name extension
, why it is not consistent enough for you.