1

Topic: How to block certain file types from uploading.

In the iredmail 0.6.1, all types of files are getting uploaded through web mail client. I would like to block certain file types like .exe, .dll,vbs etc. from uploading.
They should not get uploaded even they are in zipped form.
I would also like to block double file extensions which carry viruses like <name>.doc.exe,<name>.xls.dll etcc.
Is is possible ?

Please help me.

UMA SHANKER P.

2

Re: How to block certain file types from uploading.

Amavisd can do this for you, search "$banned_filename_re" in amavisd.conf first.

Reference:
http://www.faqforge.com/linux/controlpa … pconfig-3/
http://www200.pair.com/mecham/spam/bypassing.html (Search "banned_filename_re" in this page)

3

Re: How to block certain file types from uploading.

Thanks for the help.
Is it necessary to modify both main.cf and amavisd.conf or only amavisd.conf is sufficient ?
pls clarify me

4

Re: How to block certain file types from uploading.

Either is ok.