1

Topic: can’t read SMFIC_BODY reply packet header

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): iRedmail EE v1.5.1
- Deployed with iRedMail Easy or the downloadable installer? 
- Linux/BSD distribution name and version: Debian 12
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? yes, iRedmail EE
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,

After upgrading from iRedMail-Pro to iRedMail EE, I’m having issues when sending messages from some clients (like Outlook for Android) or from Roundcube when sending very short test messages such as “Test message.”

In those cases, sending fails and the logs show this error related to the milter on port 7791:
can't read SMFIC_BODY reply packet header

Is it safe, or are there any downsides, to temporarily remove the milter directives smtpd_milters, non_smtpd_milter until I find the root cause?

I’m including the relevant SMTP session log below.

Thanks for your help,



2025-11-09T15:00:46.641029+01:00 mail postfix/smtps/smtpd[62236]: connect from 101.red-xxx-yy-zz.dynamicip.rima-tde.net[xxx.yy.zz.101]
2025-11-09T15:00:46.678802+01:00 mail postfix/smtps/smtpd[62236]: Anonymous TLS connection established ... TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
2025-11-09T15:00:46.889645+01:00 mail postfix/smtps/smtpd[62236]: 4d4DwG6JzBz336Rq: client=101.red-xxx-yy-zz.dynamicip.rima-tde.net[xxx.yy.zz.101], sasl_method=PLAIN, sasl_username=<redacted@domain.tld>
2025-11-09T15:00:46.989104+01:00 mail postfix/cleanup[62237]: 4d4DwG6JzBz336Rq: message-id=<redacted@internal>
2025-11-09T15:00:46.989495+01:00 mail postfix/cleanup[62237]: warning: milter inet:127.0.0.1:7791: can't read SMFIC_BODY reply packet header: Application error
2025-11-09T15:00:46.989548+01:00 mail postfix/cleanup[62237]: 4d4DwG6JzBz336Rq: milter-reject: END-OF-MESSAGE ... 4.7.1 Service unavailable - try again later; from=<redacted@domain.tld> to=<redacted@domain.tld> proto=ESMTP helo=<localhost>
2025-11-09T15:00:47.034916+01:00 mail postfix/smtps/smtpd[62236]: disconnect from 101.red-xxx-yy-zz.dynamicip.rima-tde.net[xxx.yy.zz.101] ehlo=1 auth=1 mail=1 rcpt=2 data=0/1 quit=1 commands=6/7

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by Juanito 2025-11-09 22:43:36)

Re: can’t read SMFIC_BODY reply packet header

I ran postconf -e 'milter_default_action=accept' and the test message was successfully delivered — I’m attaching it in case it helps.

I noticed that Outlook for Android didn’t include the <From:> header… could that be the problem?

I think that after the server upgrade and reconnecting, the Outlook account might have gotten messed up, and it’s now sending messages without the From header (with Thunderbird for Android everything works fine).

The issue is that hundreds of my clients use Outlook… and if it happens to them too, that’s going to be a big problem.



MIME-Version: 1.0
Date: Sun, 9 Nov 2025 15:27:40 +0100
Subject: Test 16
Thread-Topic: Test 16
Message-ID: <XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX@client.local>
To: User <user@example.com>, "user@example.org" <user@example.org>
Content-Transfer-Encoding: base64
Content-Type: text/html; charset="utf-8"

PGh0bWw+PGJvZHk+PGRpdiBkaXI9ImF1dG8iIHN0eWxlPSJmb250LWZhbWlseTogQXB0b3MsIEFw
dG9zX01TRm9udFNlcnZpY2UsIC1hcHBsZS1zeXN0ZW0sIFJvYm90bywgQXJpYWwsIEhlbHZldGlj
YSwgc2Fucy1zZXJpZjsgZm9udC1zaXplOiAxMnB0OyI+VGVzdCBtZXNzYWdlPC9kaXY+PGRpdiBp
ZD0ibXMtb3V0bG9vay1tb2JpbGUtYm9keS1zZXBhcmF0b3ItbGluZSIgZGF0YS1hcHBseWRlZmF1
bHRmb250c3R5bGVzPSJ0cnVlIiBzdHlsZT0iZm9udC1mYW1pbHk6IEFwdG9zLCBBcHRvc19NU0Zv
bnRTZXJ2aWNlLCAtYXBwbGUtc3lzdGVtLCBSb2JvdG8sIEFyaWFsLCB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