DSN generation problem for UTF-8 files

Dmitry Melekhov dm at belkam.com
Tue Jul 18 15:27:06 CEST 2017


18.07.2017 17:05, Dominic Raferd пишет:
>
>
> On 18 July 2017 at 12:24, Dmitry Melekhov <dm at belkam.com 
> <mailto:dm at belkam.com>> wrote:
>
>     Hello!
>
>
>     I run Ubuntu 16.04, it has 2.10.1 of amavisd-new  .
>
>     If file is blocked by amavis, let's say it .exe file, and this
>     file has UTF8 name (let's say Тест.exe), then
>
>     amavis dies, without DSN generation and message stucks in queue:
>
>
>     open body: Invalid argument at
>     /usr/local/share/perl/5.22.1/MIME/Entity.pm line 1878, <GEN38>
>     line 17244.): id=01268-01 at /usr/sbin/amavisd-new line 15165
>
>
>     Could you tell me how to fix this problem?
>
>
>     Thank you!
>
>
>
> Just a thought, but ​looking at 
> /etc/amavis/conf.d/30-template_localization, it might be worth trying 
> in /etc/amavis/conf.d/50-user:
> ​$hdr_encoding = 'utf8';
> ​$bdy_encoding = 'utf8';
>
I already have this:


/etc/amavis/conf.d# grep utf *
30-template_localization:$hdr_encoding = 'utf-8';
30-template_localization:$bdy_encoding = 'utf-8';

btw,

As temporary workaround I changed

# my $IO = $self->open("r") || die "open body: $!";
     my $IO = $self->open("r") || return error "open body: $!";

at /usr/local/share/perl/5.22.1/MIME/Entity.pm line 1878

This results in message (not full , but) generation and no messages 
stuck in queue..


btw, MIME::Entity have bug open since 2015

https://rt.cpan.org/Public/Bug/Display.html?id=105377

some software already created workaround for this, but not amavis :-(



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20170718/928f02fd/attachment.html>


More information about the amavis-users mailing list