Skip to content

"warning: milter unix:srs_milter: unreasonable packet length: 1886352244 > 1073741823" when running daemonized #185

@fabiankeil

Description

@fabiankeil

Thanks for making postsrsd available.

I'm trying to use it on ElectroBSD with milter support added to the FreeBSD port with:

commit 19c51bb9a23be638b644f6571625f4b54ac90983 (HEAD -> fk)

Author: Fabian Keil <fk@fabiankeil.de>
Date:   Tue Jan 21 19:43:08 2025 +0100

    mail/postsrsd: Add milter option

diff --git a/mail/postsrsd/Makefile b/mail/postsrsd/Makefile
index a8dc8aef0e22..8cf2fe77400c 100644
--- a/mail/postsrsd/Makefile
+++ b/mail/postsrsd/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=  postsrsd
 DISTVERSION=   2.0.10
-PORTEPOCH= 1
+PORTEPOCH= 2
 CATEGORIES=    mail
 
 MAINTAINER=    ports@bsdserwis.com
@@ -38,10 +38,14 @@ PLIST_FILES=    \
 
 PORTDOCS=  CHANGELOG.rst README.rst postsrsd.conf
 
-OPTIONS_DEFINE=    DOCS REDIS SQLITE
+OPTIONS_DEFINE=    DOCS MILTER REDIS SQLITE
 
 DOCS_CMAKE_BOOL=   ENABLE_DOCS
 
+MILTER_DESC=       Add milter support
+MILTER_LIB_DEPENDS=    libmilter.so:mail/libmilter
+MILTER_CMAKE_BOOL= WITH_MILTER
+
 REDIS_DESC=        Store envelope senders in redis
 REDIS_LIB_DEPENDS= libhiredis.so:databases/hiredis

It seems to work as advertised when I start it with:
/usr/local/sbin/postsrsd -u mailnull -p /var/run/postsrsd/postsrsd.pid
but when I use:
/usr/local/sbin/postsrsd -D -u mailnull -p /var/run/postsrsd/postsrsd.pid
postfix/cleanup complaints about an unreasonable packet length and the address is not rewritten:

Jan 22 05:47:56 electrobsd-mx postfix/cleanup[7316]: 5C58B911B: message-id=20250122054646.4e269f9f@fabiankeil.de
Jan 22 05:47:56 electrobsd-mx postfix/cleanup[7316]: warning: milter unix:srs_milter: unreasonable packet length: 1886352244 > 1073741823

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions