/usr/bin/procmail-wrapper: Exec format error

hello !

I started a new server installation, and I have an error while trying to receive mails. I can send without any problems with all my mail’s domains, but none can receive, I have a mail delivery system message :

<contact-powerloop.fr@powerloop.fr> (expanded from <contact@powerloop.fr>):
Command died with status 2: “/usr/bin/procmail-wrapper -o -a $DOMAIN -d
$LOGNAME”. Command output: sh: 1: /usr/bin/procmail-wrapper: Exec format
error
Reporting-MTA: dns; powerloop.fr
X-Postfix-Queue-ID: 4C5AE950B2
X-Postfix-Sender: rfc822; vincentgalard@gmail.com
Arrival-Date: Sat, 29 Jan 2022 12:16:33 +0000 (GMT)

Final-Recipient: rfc822; contact-powerloop.fr@powerloop.fr
Original-Recipient: rfc822;contact@powerloop.fr
Action: failed
Status: 5.3.0
Diagnostic-Code: x-unix; sh: 1: /usr/bin/procmail-wrapper: Exec format error

Any idea to solve that statut 2 error ??

🛈 SYSTEM INFORMATION
OS type and version Debian Buster
Virtualmin version 6.17-3

here is what I have in the log file when I’m trying to send a mail to my local mailbox :

Jan 29 14:21:16 powerloop postfix/local[23154]: 27BA796AE2: to=test-powerloop.fr@powerloop.fr, orig_to=test@powerloop.fr, relay=local, delay=0.18, delays=0.11/0.02/0/0.04, dsn=5.3.0, status=bounced (Command died with status 2: “/usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME”. Command output: sh: 1: /usr/bin/procmail-wrapper: Exec format error )
Jan 29 14:21:16 powerloop postfix/cleanup[23146]: 4720096B8C: message-id=20220129142116.4720096B8C@powerloop.fr
Jan 29 14:21:16 powerloop postfix/bounce[23159]: 27BA796AE2: sender non-delivery notification: 4720096B8C
Jan 29 14:21:16 powerloop postfix/qmgr[9551]: 4720096B8C: from=<>, size=6509, nrcpt=1 (queue active)
Jan 29 14:21:16 powerloop postfix/qmgr[9551]: 27BA796AE2: removed
Jan 29 14:21:16 powerloop dovecot: imap-login: Login: user=test@powerloop.fr, method=PLAIN, rip=192.168.0.254, lip=192.168.0.100, mpid=23208, TLS, session=<JgOzQ7nWsPjAqAD+>
Jan 29 14:21:16 powerloop dovecot: imap-login: Login: user=test@powerloop.fr, method=PLAIN, rip=192.168.0.254, lip=192.168.0.100, mpid=23219, TLS, session=<ANe0Q7nWsvjAqAD+>
Jan 29 14:21:16 powerloop dovecot: imap(test@powerloop.fr)<23219><ANe0Q7nWsvjAqAD+>: Logged out in=32 out=501 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jan 29 14:21:17 powerloop postfix/smtp[23164]: 4720096B8C: to=fildard_v@yahoo.fr, relay=mx-eu.mail.am0.yahoodns.net[188.125.72.73]:25, delay=1.3, delays=0.01/0.03/0.95/0.29, dsn=2.0.0, status=sent (250 ok dirdel)
Jan 29 14:21:17 powerloop postfix/qmgr[9551]: 4720096B8C: removed

Did you ever find a solution for this ?

Paul

If you’re seeing this error you are either running an EOL operating system, you’re running on an unsupported architecture, or you’re not up to date with Virtualmin packages.

You should generally start a fresh topic with the specifics of your deployment rather than hijacking an existing thread, which may not have the same cause as your situation, even if the symptom is the same.

1 Like

I fixed it by doing this :

Webmin → Servers → Postfix Mail Server → Local Delivery
External command to use instead of mailbox delivery : /usr/bin/procmail

But I’m not sure it fits to your own issue

1 Like

You mostly can’t use Virtualmin’s mail processing tools (i.e. spam/AV) with that change, but regular delivery will work. But, since this is a small machine, running AV scanning is probably a mistake or impossibility, anyway (ClamAV needs over 1GB of RAM all by itself).

1 Like

Sorry to revive this post but faced the same kind of things. I’m on a Raspberry Pi 4 (so ARM architecture).

Had to switch to :
Webmin → Servers → Postfix Mail Server → Local Delivery
External command to use instead of mailbox delivery : /usr/bin/procmail

To receive mails.

procmail-wrapper is the culprit also here, don’t want to run and seem related to an EOL like in above message

$ procmail-wrapper
-bash: /usr/bin/procmail-wrapper: cannot execute binary file: Exec format error

$ file /usr/bin/procmail-wrapper
/usr/bin/procmail-wrapper: setuid ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 3.2.0, BuildID[sha1]=51e8e9a587270791d8ee31e4c74a0bb26e2f8469, not stripped, too many notes (256)

Not sure if the pi package repository is in cause here and if I have to build procmail-wrapper from source to get it to work.

Yes. We don’t provide a repo for ARM.

So fast reply :open_mouth:
Ok, I’ll consider building procmail-wrapper at some point today so :slight_smile:

Thanks