Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Does gmail not accept password-protected rar files as attachments?

2,267 views
Skip to first unread message

Virus Guy

unread,
Sep 25, 2018, 7:58:25 PM9/25/18
to
I recently tried to send someone @ gmail a rar file as an attachment.
The file was about 10k. It's a small (about 50 kb) xml file. I used
winrar (offhand not sure what version I've got - there's no intuitive
way to see the version). I used the password option and also encrypted
the file name.

Gmail said this:

============
Your message was rejected by gmail-smtp-in.l.google.com for the
following reason:

5.7.0 This message was blocked because its content presents a potential
5.7.0 security issue. Please visit
5.7.0 https://support.google.com/mail/?p=BlockedMessage to review our
5.7.0 message content and attachment content guidelines.
=============

So either

(a) gmail doesn't like password-protected rar files, or

(b) gmail does real-time file-cracking and looked inside the archive and
discovered an xml file and it has a policy of rejecting xml files as
attachments.

Comments?

Shadow

unread,
Sep 26, 2018, 6:34:21 PM9/26/18
to
On Tue, 25 Sep 2018 20:00:52 -0400, Virus Guy <Vi...@Guy.C0M> wrote:

>I recently tried to send someone @ gmail a rar file as an attachment.
>The file was about 10k. It's a small (about 50 kb) xml file. I used
>winrar (offhand not sure what version I've got - there's no intuitive
>way to see the version). I used the password option and also encrypted
>the file name.
>
>Gmail said this:
>
>============
>Your message was rejected by gmail-smtp-in.l.google.com for the
>following reason:
>
>5.7.0 This message was blocked because its content presents a potential
>5.7.0 security issue. Please visit
>5.7.0 https://support.google.com/mail/?p=BlockedMessage to review our
>5.7.0 message content and attachment content guidelines.
>=============
>
>So either
>
>(a) gmail doesn't like password-protected rar files

It won't allow ANY password protected files (where it can't
see the name/size of each file) and it couldn't care less about your
security. It will allow unencrypted malware through, stuff with
multiple hits on Virustotal..
[]'s
--
Don't be evil - Google 2004
We have a new policy - Google 2012

Virus Guy

unread,
Sep 26, 2018, 7:35:08 PM9/26/18
to
Shadow wrote:

>>So either
>>
>>(a) gmail doesn't like password-protected rar files
>
> It won't allow ANY password protected files (where it can't
> see the name/size of each file) and it couldn't care less about your
> security. It will allow unencrypted malware through, stuff with
> multiple hits on Virustotal..

I used a hex editor on the rar file and changed the first 2 bytes.
Renamed the file from .rar to something else. Resent the file as
attachment - and this time it went through. The recipient restored the
first 2 bytes and unpacked the file normally.

Pabst Blue Ribbon

unread,
Sep 29, 2018, 11:29:55 AM9/29/18
to
The latter is impossible. RAR format have quite good password protection
(unlike ZIP, for example.)

There is an option to not encrypt file names, only file content. If all
Google wants is to see file name and size it should work.

> Comments?

If you merge JPEG and RAR files (JPEG first, RAR second) then resulting
file will be recognized as JPEG by most programs, but will be correctly
unpacked by RAR.

RayLopez99

unread,
Oct 10, 2018, 4:45:24 AM10/10/18
to
You can rename the extension of a password protected file sent to Gmail and it works to receive the file.

For a password protected file: MyFile.rar change to to MyFile.rar.ZYX will work.

RL

Shadow

unread,
Oct 11, 2018, 11:42:33 AM10/11/18
to
Good to know.
TY
Z-Zip will open files with unknown extensions by content, so
will offer to open MyFile.rar.ZYX or MyFile.rar.aaa on a right click.
But not MyFile.rar.txt or MyFile.rar.wav.
Winrar uses extensions, so no option to open the file.
Google's AI must be braindead.

Apd

unread,
Oct 11, 2018, 12:06:39 PM10/11/18
to
"Shadow" wrote:
> Z-Zip will open files with unknown extensions by content

So will 7-Zip. Never heard of Z-Zip.


Shadow

unread,
Oct 11, 2018, 6:36:59 PM10/11/18
to
Wrote it myself in secret.
;)
Sorry, typo ...

Aakshit Rajput

unread,
Oct 28, 2020, 5:25:55 AM10/28/20
to
If the extracting problem in the RAR file arises due to corruption issues then you can fix that tool by using a third-party tool.
Get more info at - https://wordpress.semnaitik.com/how-to-open-rar-files-without-winzip/
0 new messages