Create email domain with a dash and dkim enabled
short description
When creating an email domain that contains a dash and dkim enabled, the ispconfig db record is created but not the dkim files in /var/lib/amavis/dkim.
Also the process of creating the email domain is abnormally long in those circonstances (dash + dkim enabled).
This bug has been intoduced in the latest version, I tested on version ISPConfig 3.1.13 and email domain is created immediately with dkim files.
correct behaviour
dkim files should be created along in /var/lib/amavis/dkim.
workaround
If the domain containing a dash is created first whithout enabling dkim, you can then enable dkim in a second step whithout problem.
environment
Server OS: debian
Server OS version: stretch
ISPConfig version: 3.1.14p2
php -v
PHP 7.0.33-5+020190309015553.9+stretch1.gbp4c6517 (cli) (built: Mar 9 2019 01:55:53) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.33-5+020190309015553.9+stretch1.gbp4c6517, Copyright (c) 1999-2017, by Zend Technologies
log entries
No entries in /var/log/ispconfig/ispconfig.log, even with debug conf.