This topic has bothered me ever since I installed a proper mailgateway which screens my incoming emails for viruses and unwanted content and then forwards clean emails to my email server. The system is running Debian GNU/Linux Etch and utilizes the Amavis filter plus spamassassin. Whenever a .exe file is found in an email, the email will be quarantined.
Now at certain times I do want to receive an email containing a .exe file, for instance if that happens to be the driver I am waiting for some time already. Or, for instance, if Lexware sends you their „FDBUSupportTool.exe“. Even though it comes as zipped file, the .exe inside is recognized and the whole mail is quarantined:
BANNED CONTENTS ALERT
Our content checker found
banned name: multipart/related |
My question now was: How do I get the quarantined mail delivered to me? And voilá! A solution was finally found, because fiddling around with mutt on the server didn’t bring the wanted results.
What did help was the proper use of the command „amavisd-release“. You just have to look for the following line in your quarantine-message:
The message has been quarantined as: banned-mm73nK4IZBY8
and take note of the underlined part (it may look different in your case, for instance if you zip/gzip the banned mails.
Then you issue the following command on the command line of the server where the amavis tool quarantines mails:
amavisd-release version 1.1
Usage: $ amavisd-release mail_file [secret_id [alt_recip1 alt_recip2 …]]
or to read request lines from stdin: $ amavisd-release –
Now you go ahead an issue:
250 2.6.0 Ok, id=rel-mm73nK4IZBY8, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 1FBE117C745
This let’s the formerly banned and quarantined email appear in your inbox.