Re: maia mailguard 1.0.5 alpha - "current protection level"

Travis Mikalson <[email protected]> Wed, 24 Sep 2025 11:53:31 -0400
Newsgroups gmane.mail.virus.maiamailguard
Organization TerraNovaNet Internet Services
Message-ID <[email protected]>
OH, I just remembered last time I got maiad running on modern FreeBSD 14 
and perl 5.36, I ran into a complete showstopper with:

(maiad.conf)
# Message-ID cache ($enable_global_cache)
#   * Set to 1 to enable the Message-ID cache feature, 0 to disable
#   * Uses BerkeleyDB/libdb to store a temporary cache of Message-ID
#       headers, to avoid unnecessary scanning of duplicate messages.
#   * Mainly useful for sites hosting mailing lists
#   * Only used when $enable_db = 1

$enable_global_cache = 1;


Do not enable this. Your maiad will straight up deadlock. maiad is 100% 
trouble free otherwise so long as you leave BerkeleyDB out of it.

I wouldn't be surprised if using the default $enable_db = 1 also causes 
same deadlocking, but I haven't confirmed that. Answers from others 
basically said amavisd is interacting poorly with BerkeleyDB, just don't 
use it.

Maybe at least the default distributed maiad.conf should flip $enable_db 
and $enable_global_cache to 0.


On 9/24/2025 11:34, jjs - mainphrame wrote:
> On second thought, we've fixed enough bugs for an alpha 2 release.
> 
> Everything seems to work here, except that mime encoded messages are not 
> displayed in the cache viewer.
> 
> Once that's fixed we're probably good to go for a beta or even an rc 
> release.
> 
> Joe
> 
> On Wed, Sep 24, 2025 at 8:28 AM Lawrence Mulder 
> <[email protected] <mailto:[email protected]>> wrote:
> 
>     I pulled the latest file versions from the github today and the
>     protection level slider still crashes…  This is what shows up in the
>     log____
> 
>     __ __
> 
>     *[php:error] [pid 333396:tid 333396] [client 98.215.74.167:29582
>     <http://98.215.74.167:29582>] PHP Fatal error:  Uncaught TypeError:
>     PDOStatement::execute(): Argument #1 ($params) must be of type
>     ?array, int given in /var/www/html/maia/welcome.php:124\nStack
>     trace:\n#0 /var/www/html/maia/welcome.php(124):
>     PDOStatement->execute()\n#1 {main}\n  thrown in
>     /var/www/html/maia/welcome.php on line 124, referer:
>     http://spam.xxxxxxxx.com/maia/welcome.php
>     <http://spam.xxxxxxxx.com/maia/welcome.php>____*
> 
>     __ __
> 
>     I changed line 124 in welcome.php from:____
> 
>     *  $sth->execute($euid);____*
> 
>     __ __
> 
>     To____
> 
>     *  $sth->execute[$euid];____*
> 
>     __ __
> 
>     The page no longer crashes, but the slider doesn’t work.____
> 
>     __ __
> 
>     Thanks…____
> 
>     -Larry____
> 
>     __ __
> 
>     *From:*Maia-users <[email protected]
>     <mailto:[email protected]>> *On Behalf Of *jjs -
>     mainphrame
>     *Sent:* Tuesday, September 23, 2025 11:38 PM
>     *To:* Janky Jay, III <[email protected] <mailto:[email protected]>>
>     *Cc:* [email protected] <mailto:[email protected]>
>     *Subject:* Re: [Maia-users] maia mailguard 1.0.5 alpha - "current
>     protection level"____
> 
>     __ __
> 
>     I'm thinking once that is fixed and we don't see any serious issues
>     we'll do a beta release.
> 
>     Joe____
> 
>     __ __
> 
>     On Tue, Sep 23, 2025 at 8:21 PM Janky Jay, III <[email protected]
>     <mailto:[email protected]>> wrote:____
> 
>         Hi Joe,____
> 
>         On 9/23/25 08:55PM, jjs - mainphrame wrote:____
> 
>             I'm zeroing in on one of the remaining show stoppers.
>             PEAR::Mail_mimeDecode uses "create_function()" for decoding
>             mime attachments, and this no longer works in php 8.
> 
>             So, much like the conversion to PDO, we'll have to go
>             through and update the code to do it a different way.
> 
>             Hopefully, that will be the last major issue.____
> 
> 
>         Is this fix/commit going to mark the alpha2 or beta1 release in
>         the repo? I only ask because I'm pulling the release as opposed
>         to the commit/tag to keep things sane for the FBSD port and the
>         distinfo SUMs. Obviously, the people using the FBSD port aren't
>         getting all the latest changes from the last few days but I'm
>         sure they'd like them so they can also test and report as
>         needed. I'm not trying to rush anything, just curious when I
>         should expect to update the port for the next release.
> 
>         Thanks again for all your work, Joe! ____
> 
>         -- ____
> 
>         Regards,____
> 
>         Janky Jay, III____
_______________________________________________
Maia-users mailing list
[email protected]
http://www.renaissoft.com/cgi-bin/mailman/listinfo/maia-users