Hi, I ran into a similar issue before. The error you're seeing:
ValueError: too many values to unpack (expected 2)
...typically means that the username field you're passing in the form does not contain exactly one "@" symbol, or possibly contains multiple "@" characters, which breaks the split function.
Here’s what you can try:
Solution Steps:
Double-check the username field in your form data:
It must be in the format user@domain.com.
Make sure it doesn’t include extra @ characters or spaces.
Also, ensure that the domain you're using is already added and active in your mail system before adding a mailbox to it.
If everything looks correct and the issue persists, try restarting the mail plugin or aaPanel itself.