Email alias maximum length 30 characters

Hello, happy hestiacp user here, thank you!

So this morning I tried adding a new email alias to an email user and got the error “invalid malias format”.

After some trial and error, it seems that the maximum length of an email alias is 30 characters. Is there a good reason for doing so? This particular user would like an alias 32 characters long.

Thank you and kind regards

At least the error message should inform the user that the maximum length is 30 characters.

We should change it

Please create a bug report on Github.

Will sort it out when I have time

1 Like

That limit is a maximum of 64 characters (octets) in the “local part” (before the “@”) and a maximum of 255 characters (octets) in the domain part (after the “@”) for a total length of 320 characters . However, there is a restriction in RFC 2821 on the length of an address in MAIL and RCPT commands of 254 characters.

Bug report created @ [Bug] Can't create email alias > 30 characters · Issue #3222 · hestiacp/hestiacp · GitHub

1 Like

Will fix the issue

2 Likes