Stop Mailscanner Replying When Attachment Fails?
Posted: 10 Oct 2012, 11:19
I get a lot of frozen mails in my server mail queue because Mailscanner is replying to incoming mails which have dodgy attachments, saying words to the effect of:
"You have emailed a dodgy attachment which this server does not allow".
But the addresses it's sending those bounces to do not exist or are rejecting the message for some other reason, so they get frozen.
Wondering how to make Mailscanner.conf work so that for _some_ attachments, the entire email is just deleted and not replied to?
I'm thinking the following rules (ish) would mean most optimal operation:
If
1. The attachment contains a virus
OR
2. The attachment contains an archive that contains a virus
OR
3. The attachment is an executable file (.exe)
Then delete the email and do not bounce it back, at all.
But how do I set it up to do that?
Or do you envisage problems with the above suggestion?
TY!
"You have emailed a dodgy attachment which this server does not allow".
But the addresses it's sending those bounces to do not exist or are rejecting the message for some other reason, so they get frozen.
Wondering how to make Mailscanner.conf work so that for _some_ attachments, the entire email is just deleted and not replied to?
I'm thinking the following rules (ish) would mean most optimal operation:
If
1. The attachment contains a virus
OR
2. The attachment contains an archive that contains a virus
OR
3. The attachment is an executable file (.exe)
Then delete the email and do not bounce it back, at all.
But how do I set it up to do that?
Or do you envisage problems with the above suggestion?
TY!