Postfix issue on Debian 12.1

SYSTEM INFORMATION
OS type and version Debian 2.1
Webmin version 2.0.21
Virtualmin version 7.7
Related packages Postfix

Hi Gents,

Ok just for a laugh we decided to install Debian 12.1 and put virtualmin on it.

Then we tried to move some existing virtual hosts over for a bit of a play around.

the first thing that we noticed is that it couldn’t receive email.

After some investigation we found that the main.cf file located in /etc/postfix is not quite right, worked this out when we copied a main.cf file over from a working virtualmin install and it started receiving email without a problem.

Not sure if you had found this issue, but if not hope this helps going forward.

Peter

You’re going to have to be more specific than “not quite right”.

Well essentailly when email arrives on the server it doesn’t deliver the email to the /home/domain/hoames/user.

But instead the email gets dropped into the generic /var/mail folder

Now I’m not sure exactly what caused this in the main.cf folder but I do know that when I copied over one from a working deb 11 server it all started to work properly.

Peter

The mapping for Virtual domains in postfix was not configured (no map set). So I was wondering who sets this, is it set during a debian install or is it set as part of the virtualmin install ?

Thanks
Michael

@Joe Any answer on the above thanks ?

That means the mail delivery agent didn’t get configured (mail_command in /etc/postfix/main.cf). There should have been an error during installation.

I’m pretty sure that means the Postfix stage of the postinstall script didn’t run at all. I’m guessing the install script failed before it reached the end. There should have been an error, and/or a red X instead of a green check. at one or more of the steps.

Both of these things worked on my Debian 12 test system, so I think something went uniquely, or at least unusually, wrong on yours.

I’m having a hard time guessing what could have gone wrong, as the Debian Postfix configuration layout looks identical to every other Debian version going back ages. Many versions, including 10 and 11, look the same, and get the same changes for Virtualmin.

Try running just the Postfix step and see what happens:

virtualmin config-system --include Postfix

Hi Joe

We have installed VM with Debian 12, 3 times now ( this is a test system) all times there were no errors reported during any of the installs. however my question is we only noticed the mapping issue once we moved a working virtual server into the system. So does your test system include a working virtual server or did you just do a VM install like we did the first 2 times with nothing else on it ?

Michael

Ill try this tomorrow, I’m not in the office today

Thanks
Michael

I didn’t restore a backup onto the test server, but I see the virtual map gets setup, and I see the mail_command is setup correctly.

Is this, by any chance, an ARM system (or anything other than amd64)? That would explain problems, since we don’t provide a procmail-wrapper build for ARM. So, that wouldn’t be expected to work out of the box, and we make no claims about it working for mail without some manual intervention.

Hi Joe

No, its a boring old amd64 install

Thanks

I did not find the mail_command line main.cf. I am running a Debian 10 in production without any issues related to Postfix.

@Joe Just a follow up, we did yet another reinstall today and transferred in a working VM and this time there was no issue with virtual domains / postfix / email. So at this time you can ignore this thread if it reappears Ill let you know.

Thanks
Michael

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.