Here’s the relevant part:
May 15 16:48:22 vps169738 Exception on /mail/users/add [POST]
Traceback (most recent call last):
...
File "/usr/local/bin/mailinabox-daemon", line 140, in mail_users_add
return add_mail_user(request.form.get('email', ''), request.form.get('password', ''), request.form.get('privileges', ''), env)
File "/root/mailinabox/management/mailconfig.py", line 311, in add_mail_user
return kick(env, "mail user added")
File "/root/mailinabox/management/mailconfig.py", line 559, in kick
results.append( do_web_update(env) )
File "/root/mailinabox/management/web_update.py", line 46, in do_web_update
nginx_conf += make_domain_config(domain, template1, template2, env)
File "/root/mailinabox/management/web_update.py", line 79, in make_domain_config
ensure_ssl_certificate_exists(domain, ssl_key, ssl_certificate, env)
File "/root/mailinabox/management/web_update.py", line 205, in ensure_ssl_certificate_exists
"-out", ssl_certificate])
File "/root/mailinabox/management/utils.py", line 149, in shell
ret = getattr(subprocess, method)(cmd_args, **kwargs)
File "/usr/lib/python3.4/subprocess.py", line 557, in check_call
raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['openssl', 'x509', '-req', '-days', '365', '-in', '/tmp/tmpg1dhv0m7', '-signkey', '/home/user-data/ssl/ssl_private_key.pem', '-out', '/home/user-data/ssl/panther.io/ssl_certificate.pem']' returned non-zero exit status 1
This was actually reported once before but not solved: https://github.com/mail-in-a-box/mailinabox/issues/277
Could you run:
openssl x509 -req -days 365 -in /tmp/tmpg1dhv0m7 -signkey /home/user-data/ssl/ssl_private_key.pem -out /home/user-data/ssl/panther.io/ssl_certificate.pem
on the command line and paste the output here?