Jump to content

some valid e-mail attachments blocked


Recommended Posts

Hi,

 

We notice that some e-mail attachments are being blocked by WHMCS when a client sends them to any support department. We tested this ourselves with the following setting:

 

Allowed File Attachment Types:

.jpg,.gif,.jpeg,.png,.pdf,.doc,.zip,.docx,.eml

 

E-mail with attachment "test.eml" (saved email file from Thunderbird): accepted with a problem

 

E-mail with attachment "lfd on athena.lcwsoft.com WHM root access alert from 174.116.97.205 (m).eml": accepted but attachment blocked with the message "Attachment blocked - file type not allowed."

 

It appears there is a bug with the determining the extension from the file name.

Link to comment
Share on other sites

That error message suggests your running mailscanner along with CSF/LFD. .eml attachments (forwarded messages, as attachments from some email clients) are blocked by default. More often than not they're viruses.

 

It's not WHMCS that's blocking it.

Link to comment
Share on other sites

Nope, it's definitely WHMCS. I sent the EXACT same e-mail from the second example to a e-mail account on the same domain and server, and the attachment came through just fine.

 

I would hazard a guess that it's the extra dots in the filename that is causing the problem. WHMCS is checking the extension starting with the first dot, instead of the last one. Based on the brief test I did, it's the only logical conclusion.

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated