Solved Bypass Amavisd-new check

I know amavisd can block specific file name anywhere like *.exe / *. scr, is there have white list cloud bypass checkd ?
if some file was blocked, is it possible recover the file from QUARANTINEDIR ?
Even I extracted the filename.gz ,the exe file still corrupted.
It's very bad form to rely on the extension of the filename to figure out what the file actually is. UNIX never did, even Windows doesn't. Only good old MS-DOS relied on it.
Thanks , I found out another way is using bypass_virus_checks_maps.
But there is a question the maps seems not working.
I set them below :
@bypass_virus_checks_maps = ( [ '' ] );
@virus_lovers_maps = ( [ '' ] );
The amavisd-default.conf is defined below:
@bypass_virus_checks_maps = (\%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re);
May be I using wrong format to declare.
Any suggestion will be appreciated.
I solved the problem by using the following format for bypassing spam check.
#Spam Check Whitelist
read_hash(\%whitelist_sender, '/var/amavis/whitelist');
@whitelist_sender_maps = (\%whitelist_sender);
The conntent of /var/amavis/whitelist :
Result is all of the mail from will not be "Hits" any score . the virus check still working .

I found a secure way to bypass virus check (If it is necessary!)
But I think using cloud drive disk (eg: google drive) is a better way for sharing .exe file .
Reference to : in section 7.
Last edited: