open body: Invalid argument at /usr/local/lib/perl5/site_perl/MIME/ line 1892.

Richard Mealing richard at
Wed Apr 6 07:09:51 UTC 2022


From: Shawn Iverson <shawniverson at>
Sent: Friday, April 1, 2022 14:40
To: Richard Mealing <richard at>; MailScanner Discussion <mailscanner at>
Subject: Re: open body: Invalid argument at /usr/local/lib/perl5/site_perl/MIME/ line 1892.

On 4/1/22 08:55, Richard Mealing wrote:
I’m using 5.509.

I can probably get some examples, seems like something wrong with utf8 encoding. If I get some examples can I send them off list?


From: MailScanner < at>< at> On Behalf Of Shawn Iverson via MailScanner
Sent: Friday, April 1, 2022 13:32
To: mailscanner at<mailto:mailscanner at>
Cc: Shawn Iverson <shawniverson at><mailto:shawniverson at>
Subject: Re: open body: Invalid argument at /usr/local/lib/perl5/site_perl/MIME/ line 1892.

MailScanner works with FreeBSD.

This message is occurring when MIME::Entity is trying to open the message to read it and is encountering something strange.

I don't think this is a FreeBSD specific problem and worth investigating.  Can you get your hands on a message that triggers this behavior that is reproducible?

Also, can you share what version of MIME::Entity you have?

perl -M'MIME::Entity' -e 'print $MIME::Entity::VERSION . "\n";'
On 4/1/22 06:25, Richard Mealing wrote:

I have installed mailscanner onto a freebsd 13 machine, got a bunch of emails in my queue and seeing this in debug –
In Debugging mode, not forking...
Trying to setlogsock(unix)
Building a message batch to scan...
Have a batch of 1 message.
open body: Invalid argument at /usr/local/lib/perl5/site_perl/MIME/ line 1892.

When I remove this file the email finally delivers, but I get an error message - Apr  1 11:09:59 btn-mailfilter-v2 MailScanner[19983]: Failed to link message body between queues (/var/spool/mqueue/df22VE1oKZ001668 --> /var/spool/


I don’t know what’s going wrong, can mailscanner work on FreeBSD or shall I use something else?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the MailScanner mailing list