Exchange Server Generating ATT00001.bin Along with Original Attachment

We have a Java programme that sends email with .xls (Excel) attachment on daily basis. It works absolutely fine other than generating ATT00001.bin file as attachment along with Excel file. This BIN file is of same size as Excel attachment. BIN file can be opened with MS Excel and it has exactly same data as the Excel file does. After a lot of Googling I found that such problem arises because of attachment appearing first in the code. I have checked the code and body part comes first and attachment later. I Googled the problem but couldn't find solution as all the results are related to certain part of email turning into attachment(s). In my case email body is as it should be while attachment is duplicated but with different extension.
Najam SahibzadaAsked:
Who is Participating?
 
JAGDIS SCEOCommented:
Hello

This a  bug in exchange server 2010 .You can have a work around  for this simple drop the attachment att0000.bin attachments using a exchange server rules.Just run this command from exchange server

From the Exchange Shell, paste the following command:
New-TransportRule -Name 'Block All att00.bin Attachments' -Priority '0' -Enabled $true -AttachmentNameMatchesPatterns ' att*.bin' -DeleteMessage $true

Regards
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.