Debian 12.5 ARM - Email stuck in mail cue

SYSTEM INFORMATION
Debian Linux 12 12.5 ARM
Virtualmin 7.30.8
Kernel and CPU Linux 6.1.0-37-arm64 on aarch64
Postfix Mail Server version 3.7.11

Officially, Virtualmin only supports x86 architecture.
Now I hadn’t realised that, but based on posts from 2023, I recompiled procmail-wrapper to resolve this issue. Unfortunately, it had no result.

The logging of que states:

This is the mail system at host vserver2.mt-ict.nl.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<"info@opensourceplein.nl"@vserver2.mt-ict.nl> (expanded from
 <info@opensourceplein.nl>): Command died with status 126:
    "/usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME". Command output: sh:
 1: /usr/bin/procmail-wrapper: Exec format error

It could be something simple that I don’t see, down to Virtualmin not running well on ARM Architecture anyway.
This server is really fast and has value for money. I hope for a solution.

To my great surprise, the email does now suddenly come in.
Even new email now just arrives instantly.

It does work now, but I would still like to understand what is going on here.
I’ll leave it for now.

Who understands this?

Last I checked a year ago procmail had problems on ARM.

Where did you get the source for procmail-wrapper and how did you build it?

Hi Joe, I found places with a discussion about this.

  1. compile procmail-wrapper for armel kirkwood
  2. I got Virtualmin working on ARM64 (Ampere)
    I used this code in procmail-wrapper.c:
#
#include <stdio.h>

int main(int argc, char **argv)
{
setuid(geteuid());
setgid(getegid());

execv("/usr/bin/procmail", argv);
}

But, I am still not sure that this was the solution.
gcc -o procmail-wrapper procmail-wrapper.c
and than copied the procmail-wrapper to /usr/bin directory.

Do you have an idea about this?

That’s not the right version, that’s very old. We have docs for this. We used to have the source for procmail-wrapper in the Virtualmin repo, as well, but I don’t see it now, I don’t know when/why it was removed. But, the docs include the full source.

We have automated pre-release builds that have the ARM version of the procmail-wrapper package:

1 Like

How would I setup a new server with the install script to use the pre-release repo?

You could do it by grabbing Virtualmin install script from the same pre-release repo and running it with --branch rc flag, like this:

wget https://rc.software.virtualmin.dev/virtualmin-install.sh
sh virtualmin-install.sh --branch rc

But, please don’t use that in production (without extensive testing of your own) and don’t ask questions about development software. Development releases are meant for development testing, not production use.

That’s all true, with one small correction—those previously linked are more like pre-release builds, since they’re built from GitHub releases, not from every commit. We shouldn’t compare them to stable repos, but they’re not exactly development builds either.

Hi Joe, thank you for this input.

I have rebuilt the procmail wrapper as described in Manual Installation | Virtualmin — Open Source Web Hosting Control Panel.

Email still works fine. :slight_smile:
Also pleasant that it is clear that Virtualmin is not architecture-sensitive.
I’m about to create a snapshot before installing the rest of the plugins and building the system further.

Hi Ilia, thank you for this repository.
May be I will experiment with this in the near future.
For now the recompiled versien op procmail-wrapper is sufficient.

1 Like
Err:28 https://rc.software.virtualmin.dev virtualmin/main arm64 webmin-virtualmin-wp-workbench all 1.0.8-1
  401  Unauthorized [IP: 34.130.211.82 443]
Fetched 5,760 kB in 2s (3,662 kB/s)
E: Failed to fetch https://rc.software.virtualmin.dev/pool/main/webmin-virtualmin-wp-workbench_1.0.8-1_all.deb  401  Unauthorized [IP: 34.130.211.82 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
[2025-05-26 18:15:50 CEST] [INFO]  Installing Virtualmin 7 and all related packages: [2025-05-26 18:15:50 CEST] [INFO]  Failed with error: 100

That is what I get when trying to install on Ubuntu 24.04 on ARM. With that command.

Are you installing the GPL version or the Pro version?

the command seems to install GPL which is fine.

the hostname of the server comes from a sudomain with pro installed though if that makes a difference.

That does not make a difference.

Any workaround?

After installing with the regular install script from stable on ubuntu 24.04 ARM I did this and it worked:

wget https://rc.software.virtualmin.dev/procmail-wrapper_1.2-5_arm64.deb

and then

dpkg -i procmail-wrapper_1.2-5_arm64.deb

I have addressed this issue for both the prerelease and unstable repos! Thanks for bringing it to my attention—I appreciate it!