diff --git a/app/api/views/index.py b/app/api/views/index.py index e5dd7e05..853f6552 100644 --- a/app/api/views/index.py +++ b/app/api/views/index.py @@ -54,6 +54,11 @@ def index(): if user.is_premium(): LOG.d("create new custom alias %s %s", hostname, user) + # avoid too short custom email prefix + if len(hostname) < 3: + LOG.d("hostname %s too short", hostname) + hostname = "default" + # generate a custom email found = False while not found: