Email fowarding to same domain (internally) fails. Mail Delivery System: "Unknown user"

Replace the line in the comment above with the following line in /etc/postfix/main.cf file:

mydestination = $myhostname, localhost.domain.net.au, localhost

Delete that user in Virtualmin / Edit Users: Mail and FTP Users page.

Disable creation of extra Unix user for Postfix (an extra user with the dash) user in Virtualmin configuration. Later make sure that Webmin / Servers ⇾ Postfix Mail Server: Address Rewriting and Masquerading and option Prevent use of @ in mailbox names? is set to No.

And finally, recreate kyle user using Virtualmin / Edit Users: Mail and FTP Users page.

Also, I would like to point out that you need to make sure that the domain for which you’re sending and receiving mail with, cannot be used as a hostname, i.e. in mydestination, like domain.net.au.

You should use a separate TLD name for the hostname, e.g. host.domain.net.au.

Thanks for the reply.

I have performed everything you have suggested and it still does the same thing.

I made sure to reload the postfix configuration and restart postfix after making the changes to the main.cf. I’ve also made sure to replace “domain” in the mydestination line with the actual domain name.

Prevent use of @ in mailbox names? is set to No .

I deleted and recreated the user, and also tried with a brand new user, issue is the same.

This doesn’t work:

But this does work to forward to kyle@domain.net.au

I have a DNS MX entry of mail.domain.net.au. Perhaps there is where things are going wrong for the postfix config? However when I tried to use mail.domain.net.au in the mydestination line, suddenly I was not able to receive any emails at all. I was then getting user unknown in virtual alias table errors bounced back.

Is the target system also has Prevent use of @ in mailbox names? is set to No?

When you get bounced mail, does it mentioned the remote (target) host or something else?

What exactly is placed to /etc/aliases on the system where forward should happen? Does the kyle record actually exist in /etc/postfix/virtual file? What is the output of hostnamectl --static command?


I’m starting to remember that we had a bug in Virtualmin 7.7 release. As I have tried it with all the most recent code applied, it works for me as expected.

The target system… It’s the same server.

I’m wanting to forward bookings@domain.net.au to kyle@domain.net.au, same domain, same server. It works as per above only when I specify the address to forward to as kyle-domain.net.au instead of kyle@domain.net.au

Yes, kyle@domain.net.au exists in /etc/postfix/virtual.

The output of /etc/alises was posted in my last response. hostnamectl --static is: domain.net.au

Here is the full source of the email that gets bounced back (with actual domain and ip redacted):

test

To send this message again, click here.
Mail Delivery System <MAILER-DAEMON@domain.net.au>
You
This is the mail system at host domain.net.au.

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

<kyle@domain.net.au> (expanded from <bookings@domain.net.au>): unknown
    user: "kyle"
Received: from VI1PR10MB3357.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:12f::22)
 by AS2PR10MB6950.EURPRD10.PROD.OUTLOOK.COM with HTTPS; Mon, 11 Sep 2023
 04:17:15 +0000
Received: from DUZPR01CA0037.eurprd01.prod.exchangelabs.com
 (2603:10a6:10:468::15) by VI1PR10MB3357.EURPRD10.PROD.OUTLOOK.COM
 (2603:10a6:803:12f::22) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.31; Mon, 11 Sep
 2023 04:17:14 +0000
Received: from DB5PEPF00014B95.eurprd02.prod.outlook.com
 (2603:10a6:10:468:cafe::90) by DUZPR01CA0037.outlook.office365.com
 (2603:10a6:10:468::15) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.35 via Frontend
 Transport; Mon, 11 Sep 2023 04:17:13 +0000
Authentication-Results: spf=pass (sender IP is 203.x.x.x)
 smtp.helo=domain.net.au; dkim=none (message not signed)
 header.d=none;dmarc=pass action=none
 header.from=domain.net.au;compauth=pass reason=100
Received-SPF: Pass (protection.outlook.com: domain of domain.net.au
 designates 203.x.x.x as permitted sender) receiver=protection.outlook.com;
 client-ip=203.x.x.x; helo=domain.net.au; pr=C
Received: from domain.net.au (203.x.x.x) by
 DB5PEPF00014B95.mail.protection.outlook.com (10.167.8.233) with Microsoft
 SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.6792.11 via Frontend Transport; Mon, 11 Sep 2023 04:17:11 +0000
X-IncomingTopHeaderMarker:
 OriginalChecksum:E7151BFB17949A55A066BEC8E4EBE88B8F59EDD3F0A649AB28C2A7E18420E4F6;UpperCasedChecksum:25DF8538E6FB03FB635B6DDD22DDADB3188A007F574F7AF89C77ABE951D64A6C;SizeAsReceived:538;Count:10
Received: by domain.net.au (Postfix)
	id 1BCA21C1904; Mon, 11 Sep 2023 14:17:09 +1000 (AEST)
Date: Mon, 11 Sep 2023 14:17:09 +1000 (AEST)
From: MAILER-DAEMON@domain.net.au (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: kylexxxxxxx@outlook.com
Auto-Submitted: auto-replied
Content-Type: multipart/report; report-type=delivery-status;
	boundary="C72751C1997.1694405829/domain.net.au"
Content-Transfer-Encoding: 8bit
Message-Id: <20230911041709.1BCA21C1904@domain.net.au>
X-IncomingHeaderCount: 10
Return-Path: <>
X-MS-Exchange-Organization-ExpirationStartTime: 11 Sep 2023 04:17:12.1805
 (UTC)
X-MS-Exchange-Organization-ExpirationStartTimeReason: OriginalSubmit
X-MS-Exchange-Organization-ExpirationInterval: 1:00:00:00.0000000
X-MS-Exchange-Organization-ExpirationIntervalReason: OriginalSubmit
X-MS-Exchange-Organization-Network-Message-Id:
 f8ddaa6c-ed34-4f92-a1d5-08dbb27df908
X-EOPAttributedMessage: 0
X-EOPTenantAttributedMessage: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa:0
X-MS-Exchange-Organization-MessageDirectionality: Incoming
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic:
 DB5PEPF00014B95:EE_|VI1PR10MB3357:EE_|AS2PR10MB6950:EE_
X-MS-Exchange-Organization-AuthSource:
 DB5PEPF00014B95.eurprd02.prod.outlook.com
X-MS-Exchange-Organization-AuthAs: Anonymous
X-MS-UserLastLogonTime: 9/11/2023 4:17:02 AM
X-MS-Office365-Filtering-Correlation-Id: f8ddaa6c-ed34-4f92-a1d5-08dbb27df908
X-MS-Exchange-EOPDirect: true
X-Sender-IP: 203.x.x.x
X-SID-PRA: MAILER-DAEMON@DOMAIN.NET.AU
X-SID-Result: PASS
X-MS-Exchange-Organization-PCL: 2
X-MS-Exchange-Organization-SCL: 1
X-Microsoft-Antispam: BCL:0;
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2023 04:17:11.5086
 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: f8ddaa6c-ed34-4f92-a1d5-08dbb27df908
X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-AuthSource:
 DB5PEPF00014B95.eurprd02.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: Internet
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR10MB3357
X-MS-Exchange-Transport-EndToEndLatency: 00:00:03.7334361
X-MS-Exchange-Processed-By-BccFoldering: 15.20.6768.024
X-Microsoft-Antispam-Mailbox-Delivery:
	ucf:0;jmr:0;ex:0;auth:1;dest:I;OFR:SpamFilterPass;ENG:(5062000305)(920221119095)(90000117)(920221120095)(90012020)(91020020)(91040095)(9050020)(9100341)(1011006)(944500132)(2008001134)(4810010)(4910033)(9920006)(9510006)(10105021)(9320005)(9230038)(120001);
X-Message-Info:
	qZelhIiYnPmzum8CmpCrdyfOM2Ek9XSOxFxv/QUnempbrwzmV0q22X6in9y0AePeYHq7YAFMmtBDIN69SKM2lqmgCxGAYuRAlLhSu1wcJsGitCfAn1BPL6hvy1f3F/y6DO3lU1vf7AlkQfRIthwZg3jIS1XaMNWgf3SOTx8NmaaTZ85RJuXknRjlj1b8xlWHede89Us+ziZIiGRFLk9+pg==
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MTtHRD0yO1NDTD0tMQ==
X-Microsoft-Antispam-Message-Info:
	=?utf-8?B?Ykl6cHo1L2V0andudWRja0hpN1R6Wlp3OUU1RUpNUTRIMGVzOVFjRkZlVzB5?=
 =?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UUxdXVIRHBRNXJhL0I5aWZFOXRQRk0x?=
 =?utf-8?B?dW1MbDNzbE10ZGFzV3FHN0RKYWs1TUpWU0R3Y1JwZVVkeTRrV0ZuemFycWlq?=
 =?utf-8?B?THFONkV1YTVrMktYZEdWaTlJWEdzOGxTbTQwK2ZwUEVySEFyQTVabGVaUE5V?=
 =?utf-8?B?cTl3VVVPYlhiVlp0VmZTU3ZlN0FXVFI2R3ZTTEVGazhqSmxIT00zdlBrWHZw?=
 =?utf-8?B?UVhOMWl6Y2FNUGFJdHRZdlZLVmF1V29yYlFIZXlVNVJsZHNSVEZOTnZZdHpk?=
 =?utf-8?B?anBsVVVMbUtQVGFLMnQvWW5HWm5oTjdad3o1cFRJYlhQcHFPcWROUTZIZkU2?=
 =?utf-8?B?UkIzY1RYVGZnWVhnQmh1M1d0cWIyaVZDTGlwT3FBQUYxM0h5N3h6SDhEMUh3?=
 =?utf-8?B?YmJIZXRXcW5nS2lEMUZJMEI1ZFpQMXJUMTNGdkhpUFoxdnFKb3g0VURYL2d3?=
 =?utf-8?B?a25PbUlVanBUU2srSnhSMkRGSjEvVjVCaHh2OGJ3WjhOTHJUQ3ZoQTI0YWx5?=
 =?utf-8?B?eDRDa0NGZXM4Lzc0U29yU0pBRXRVOENCWFFjemVZem02ZWlJakVBNzNKTXR2?=
 =?utf-8?B?QmR0NUxiZVNScWZkakxXUzV4cndxK1YrelFaT2c4RUZ3Sm5lczFXUElsTmpO?=
 =?utf-8?B?SDhkTDc5bCt3RUVjRWc9PQ==?=
MIME-Version: 1.0

--C72751C1997.1694405829/domain.net.au
Content-Description: Notification
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

This is the mail system at host domain.net.au.

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

<kyle@domain.net.au> (expanded from <bookings@domain.net.au>): unknown
    user: "kyle"

--C72751C1997.1694405829/domain.net.au
Content-Description: Delivery report
Content-Type: message/delivery-status

Reporting-MTA: dns; domain.net.au
X-Postfix-Queue-ID: C72751C1997
X-Postfix-Sender: rfc822; kylexxxxxxx@outlook.com
Arrival-Date: Mon, 11 Sep 2023 14:17:07 +1000 (AEST)

Final-Recipient: rfc822; kyle@domain.net.au
Original-Recipient: rfc822;bookings@domain.net.au
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "kyle"

--C72751C1997.1694405829/domain.net.au
Content-Description: Undelivered Message
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit

Return-Path: <kylexxxxxxx@outlook.com>
Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04olkn2074.outbound.protection.outlook.com [40.92.74.74])
	by domain.net.au (Postfix) with ESMTPS id C72751C1997
	for <bookings@domain.net.au>; Mon, 11 Sep 2023 14:17:07 +1000 (AEST)
Authentication-Results: domain.net.au;
	dkim=pass (2048-bit key; unprotected) header.d=outlook.com header.i=@outlook.com header.a=rsa-sha256 header.s=selector1 header.b=hyUWm8Xb;
	dkim-atps=neutral
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=gG2dOaiDIK4t+B6fwS6MIp+mJDz9UeA0LEnesgy8ZItgo2YG3FPdXF6wuQ9dpM/bdX0lM47PMz1Ynfilha+ic3Qp2O4y6yhcmy0YdNC8uAqFe4MAfW5z0IXCXZNJhObS9DrePbQpbvFSJVBm4Qq8sr1PCq6VWsyvAcL6/3+ToRusBSFEtfgua4MikE8aD+DssrzxTikZAE9J6zRShm43RSgrAMlP415dG0ZmkzI7k1z/4a2Syw8eWmaTFaOUMR2Uf+l7t2zxbgxaJhHIJ/fBoplNwT7wJwvd55E9KuWZJl3oveF9XB5qLJmYxrVfKYs1itbhVazZ3JMpDhyMnoCFFA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=D3V1gi/nEnFDFqI+SP3XXcFhPIMAtla6NLwADT2UlJw=;
 b=blzxWNLVt7vFmNOl3Ih5PMZDUTpWQN0YpO9THsoUTSqS8JcsYK1JsW8igyCGc3vpNwUTaah/a2hp/dRWB5OS7bJOlU0NWK112/XbnDke/eIUdD5MMl7HdeioCm5iKvoOMGpvO4VSwgxQpcNo0EWDBzJnvl4ASaQB1nx12wzFVID478AijOA2VSNmb8NaQhCsR/hg7eoyv7WR+KeIU2laFolxZE+cRGA8q8BwiKGXGpypCDb636M4expJtPNfbP2MoQRFAn4Ms84tYdPlhNH9zI/2ueLQThGhuHDmAf4cIHpVoVeBaMrX5IekE4CBnHvBk7iE8s12OZkGgnC7fe8HYw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
 dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com;
 s=selector1;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=D3V1gi/nEnFDFqI+SP3XXcFhPIMAtla6NLwADT2UlJw=;
 b=hyUWm8XbmSc19D7RdwOHg+/cYzs7K0bIdFQ1Q6J8rZwoDxg+kVCcDwDBYoz4JZU6l8GVvq4pRH13UQwSiPU9acxRuWjhEAw/SIZMVgYafcKmQMG3SYn4MywRxaR5W9r2mWYNXxW+FMSaeBerAYw7Nx5PlNRsnhK3yq6ZkmGdvSHhCRSB3HU0aTGCbON5uL9N6IfwoRhh2ALNgnYwivbuegf+cgzAul11qDu/On8f8flSdbZf29Vw2Ovepp89auxgXiVyMcKM7Y7ueqxeMJQ/qPycQmsvgVvGeRSied8CGE8DCPWHwnAv7tkluOj5u5VHN7uRdwAifX0IG1N+okU/xQ==
Received: from AS2PR10MB6950.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:57a::9)
 by GV2PR10MB6406.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:150:c0::10) with
 Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.31; Mon, 11 Sep
 2023 04:17:04 +0000
Received: from AS2PR10MB6950.EURPRD10.PROD.OUTLOOK.COM
 ([fe80::b5f6:9686:e0f9:bee9]) by AS2PR10MB6950.EURPRD10.PROD.OUTLOOK.COM
 ([fe80::b5f6:9686:e0f9:bee9%5]) with mapi id 15.20.6768.029; Mon, 11 Sep 2023
 04:17:04 +0000
From: Kyle GP <kylexxxxxxx@outlook.com>
To: "bookings@domain.net.au" <bookings@domain.net.au>
Subject: tet
Thread-Topic: tet
Thread-Index: AQHZ5GbRsM6fpN44zUy0Qg4fMpk/zg==
Date: Mon, 11 Sep 2023 04:17:04 +0000
Message-ID:
 <AS2PR10MB6950332AD8EAAAC54855FDDABAF2A@AS2PR10MB6950.EURPRD10.PROD.OUTLOOK.COM>
Accept-Language: en-AU, en-US
Content-Language: en-AU
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels:
x-tmn: [SOs6wqOQ2vogLlN5T1kEewhSZ5MxaS3s]
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: AS2PR10MB6950:EE_|GV2PR10MB6406:EE_
x-ms-office365-filtering-correlation-id: 17a1ce67-64d4-43dd-a12e-08dbb27df42e
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info:
 s0CZSvsvN/a2kjTFOQXBEB2loS/u/6pLMiVzrkcB77pS2iG94azGpb0fYFzkx1lJ8Q0oLDIzBoB/I8tZaNrleGOTYFlrZ4YXMaOaherk+JGlsTlABp7zuSoQJiVZxZq40stsR4Z0TTjG6o/2VV6tCWbgTBnc3GWEfhSBYii91zvfkJJXNr/jRsWZ2e2ALahZJH8kRzH+fO166wdkk+0fmX2Q+NdWzOA/Gcmy9hAjH/e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ZNtiEgQ3wwCBWgdwftx46RexIptRPC0?=
 =?iso-8859-1?Q?zXfZJgbprOltaaFGFhqZMpTmPBXLLISL3CPerWLYwc6ykLTSlmdQuA3hPs?=
 =?iso-8859-1?Q?LEaKyYGgErjCsOK5IAD9646LNlwYAdvdWYUetx1PVOSTb2VHhD63U6Tq7q?=
 =?iso-8859-1?Q?t3/WqaXHxLkKMI9y/LrnN12Lbm+8xRh7AI7EOnb1gtgm0sWOCIL68FPCSW?=
 =?iso-8859-1?Q?vZJo1z7HTI3KbWGtu/NwQIOhHRLIaorzcYhv4XoBnhFlY8kBlCgzpyGzHA?=
 =?iso-8859-1?Q?jmU+GfMiWaR8r84t2Hi64PrxYGEc3GrVqLFCZrq0HvU0AKoTKPH8G+4fBj?=
 =?iso-8859-1?Q?pTICUNK1fO19koI6QX1j6Jn20AgwXUvhkhYoKC6rvoVRJCm/eJAMgjMY3c?=
 =?iso-8859-1?Q?NyyMOVMZl0a7hm/X27Uq8Dl30SPfCN4VYrctVtC6v4+nDTRPf3JgnRqZnB?=
 =?iso-8859-1?Q?RBhUbkrYeKMRxDg7VVl0efKxjIQQjpX04T2hYrd01p6Sjk3Y4jmxFlieYR?=
 =?iso-8859-1?Q?n5P2/JWTT31ECx/ruAmw=3D=3D?=
Content-Type: multipart/alternative;
	boundary="_000_AS2PR10MB6950332AD8EAAAC54855FDDABAF2AAS2PR10MB6950EURP_"
X-OriginatorOrg: outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AS2PR10MB6950.EURPRD10.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: 17a1ce67-64d4-43dd-a12e-08dbb27df42e
X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Sep 2023 04:17:04.0091
 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR10MB6406
MIME-Version: 1.0

--_000_AS2PR10MB6950332AD8EAAAC54855FDDABAF2AAS2PR10MB6950EURP_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

test

--_000_AS2PR10MB6950332AD8EAAAC54855FDDABAF2AAS2PR10MB6950EURP_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html><head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" clas=
s=3D"elementToProof">
tet</div>
</body>
</html>

--_000_AS2PR10MB6950332AD8EAAAC54855FDDABAF2AAS2PR10MB6950EURP_--

--C72751C1997.1694405829/domain.net.au--

Got it!

I’m wanting to forward bookings@domain.net.au to kyle@domain.net.au, same domain, same server.

Oh, I see the problem now. If it’s the same server, then kyle@domain.net.au should be \kyle\@domain.net.au in /etc/aliases file.

After editing /etc/aliases manually you’d need to run postalias /etc/aliases command.

This issue will be fixed in the next upcoming Virtualmin 7.8 release.

Okay thanks I’ll give that a try and report back.

Any idea why Roundcube webmail isn’t letting me log in when I create a new user now, but it will log in with existing users I created before we troubleshooted this other issue?

Hmm I tested on same server and had no issue, is this a OS issue?

Is the server hostname the same as the domain your users are in (and that you’re sending mail to)?

Thanks, setting it to \kyle@domain.net.au works. Good to know a bugfix is coming.

Disabling virtuser_file in roundcube also solved the login issues, thanks.

Yes, domain.net.au is the same as the server hostname and the domain the users are in.

That’s a mistake.

From the download page (and similar advice is in the docs):

“If your system does not have a fully qualified hostname, the script will ask you to provide one. The name of the system can be anything you want, but it must be fully qualified and should not match a name you’ll be hosting mail for. For example, if you have domain virtualmin.com you might name the server srv1.virtualmin.com or ns1.virtualmin.com. What name you choose is unimportant, but it must be fully qualified, it must not match a domain you’ll be managing in Virtualmin, and it must resolve, for several mail operations to work correctly.”

Ilia’s offering reasonable suggestions for working around this problem, but it’s better to just not cause the problem: Don’t name your server the same name as a name you’ll be hosting virtual mail and websites for.

And, @Ilia , unless I’m misunderstanding what’s happening here, I don’t think we should “fix” it. This is a misconfiguration, not a bug.

Thanks for the reply.

What’s the best way to make the change to the hostname that’ll have it permeate through the install and update properly?

Also keen to understand if there is a bug present or not here so I know where I’m at fault, and where I’m not.

Well, it was the misconfiguration bug produced by VIrtualmin 7.7, which I fixed for Virtualmin 7.8 some time ago.

This has to be a separate topic.

@Joe, oh, I see what you mean now. No, the issue wasn’t just caused by using domain name with the same name as the hostname. The local addressee with @ in /etc/aliases should be escaped to have mail delivered locally when resolve_dequoted_address set to no (and no extra Unix user with the dash for Postfix is created).