Skip to content

cmdeploy run fails with "Invalid domain name" for domains containing hyphens (-) #974

Description

@Tslmuun

When running ./scripts/cmdeploy run to update my chatmail instance, the deployment script fails with a red error message: Invalid domain name: chat.m-i.im.

​Prior to this update, the deployment worked perfectly with the exact same configuration.

Environment:
​OS: Ubuntu 24.04
​Domain: chat.m-i.im (contains a hyphen -)
​chatmail.ini configuration: mail_domain = chat.m-i.im (verified no trailing dot or spaces)

Steps to Reproduce:
​1. Configure mail_domain = chat.m-i.im in chatmail.ini.
​2. Run ./scripts/cmdeploy run.

​Actual Behavior:
The script crashes/aborts with the following error:
Invalid domain name: chat.m-i.im.

Expected Behavior:
The deployment should succeed, as the domain name is valid and has been working previously.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions