Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fabiankeil opened this issue Jan 22, 2025 · 0 comments

Comments

@fabiankeil
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant