After migration; mailserver issues

After migrating to a new server using the Virtualmin backup and restore function there where issues with PHP which were solved by simply clicking save on the PHP settings page (on each website).

But now there is a more serious issue which i was not able to fix and if someone would be able to help it would be great.

Sending mail from the server works as expected, reciving mail gives the following errors:

On one of the domains email account:

This is the mail system at host example.com. 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 [<john-example.com@example.com>](mailto:dsa-example.com@example.com) (expanded from [<johnsalias@example.com>](mailto:johnsalias@example.com)): unknown user: "john-example.com"

And on another domains webmasters mail:

This is the mail system at host example.com. 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 [<example_com@example.com>](mailto:example_com@example.com) (expanded from [<webmaster@example.com>](mailto:webmaster@example.com)): 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

SYSTEM INFORMATION
OS type and version Debian 12
Webmin version 2.111
Virtualmin version 7.10.0
Related packages Postfix

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