Can't add domain to my server

Seems to be a mail key ring error. What is it and where do I get one? I thought using the built-in mail server would not need to me to specify this.
Action failed

AddDomain command: /usr/local/apnscp/bin/AddDomain  --output=json --'notify' -c 'siteinfo,email'='admin@virtualformguide.com' -c 'siteinfo,admin_user'='admin' -c 'siteinfo,domain'='ourpickup.com' -c 'auth,tpasswd'='7AUcJt?wQhmMhiT' -c 'apache,enabled'='1' -c 'dns,proxyaddr'='None' -c 'dns,proxy6addr'='None' -c 'dns,provider'='builtin' -c 'ftp,enabled'='0' -c 'ipinfo,ipaddrs'='[152.53.23.5]' -c 'mysql,enabled'='0' -c 'php,enabled'='DEFAULT' -c 'shield,enabled'='1'
no billing identifier specified for site, generated `apnscp-GTCSSWVT'
3 more messages
    no bandwidth rollover date specified, using day of month, `10'
    Util_Process::formatDataCallProc(): AddDomain: INFO   : no billing identifier specified for site, generated `apnscp-GTCSSWVT'
    INFO   : no bandwidth rollover date specified, using day of month, `10'
    ERROR  : Event\Manager::fire(): Call to undefined method Opcenter\Service\Validators\Mail\Key::readKeyringValue()
             0. Error_Reporter::add_error("Call to undefined method Opcenter\Service\Validators\Mail\Key::readKeyringValue()", [])
                [/usr/local/apnscp/lib/log_wrapper.php:72]
             1. error("Call to undefined method Opcenter\Service\Validators\Mail\Key::readKeyringValue()", )
                [/usr/local/apnscp/lib/Event/Manager.php:198]
             2. Event\Manager->fire("FILESYSTEM.created", Opcenter\Filesystem)
                [/usr/local/apnscp/lib/Event/Cardinal.php:172]
             3. Event\Cardinal::fire(["FILESYSTEM", "created"], Opcenter\Filesystem)
                [/usr/local/apnscp/lib/Opcenter/Filesystem.php:79]
             4. Opcenter\Filesystem->populate()
                [/usr/local/apnscp/lib/Opcenter/Filesystem.php:47]
             5. Opcenter\Filesystem::create("site7", null)
                [/usr/local/apnscp/lib/Opcenter/Account/Create.php:154]
             6. Opcenter\Account\Create->exec()
                [/usr/local/apnscp/bin/AddDomain:36]
    FATAL  : fatal(): failed to create account
             0. Error_Reporter::trigger_fatal("failed to create account", )
                [/usr/local/apnscp/lib/log_wrapper.php:50]
             1. fatal("failed to create account")
                [/usr/local/apnscp/lib/Opcenter/Filesystem.php:80]
             2. Opcenter\Filesystem->populate()
                [/usr/local/apnscp/lib/Opcenter/Filesystem.php:47]
             3. Opcenter\Filesystem::create("site7", null)
                [/usr/local/apnscp/lib/Opcenter/Account/Create.php:154]
             4. Opcenter\Account\Create->exec()
                [/usr/local/apnscp/bin/AddDomain:36]
    Admin_Module::add_site(): Event\Manager::fire(): Call to undefined method Opcenter\Service\Validators\Mail\Key::readKeyringValue()

mail,key is defined either as “DEFAULT” or [mail] => provider_key is set in config.ini.

# reports something...
cpcmd scope:get cp.config mail provider_key
# Clear value
cpcmd scope:set cp.config mail provider_key null

I have tried every combination of Default for the mail provider and default for the key and I can’t get a domain set up. Keep getting server error with the same message. If you want to use the default mail provider and don’t have a key what should be the setting?

Action failed

AddDomain command: /usr/local/apnscp/bin/AddDomain  --output=json --'notify' -c 'siteinfo,email'='admin@virtualformguide.com' -c 'siteinfo,admin_user'='pickup' -c 'siteinfo,domain'='ourpickup.com' -c 'auth,tpasswd'='7AUcJt?wQhmMhiT' -c 'apache,enabled'='1' -c 'diskquota,enabled'='0' -c 'dns,proxyaddr'='None' -c 'dns,proxy6addr'='None' -c 'dns,provider'='builtin' -c 'ftp,enabled'='0' -c 'ipinfo,ipaddrs'='[152.53.23.5]' -c 'mail,provider'='DEFAULT' -c 'mail,key'='DEFAULT' -c 'mysql,enabled'='0' -c 'php,enabled'='DEFAULT' -c 'shield,enabled'='1'
no billing identifier specified for site, generated `apnscp-CMGEBKBA'
3 more messages
    no bandwidth rollover date specified, using day of month, `11'
    Util_Process::formatDataCallProc(): AddDomain: INFO   : no billing identifier specified for site, generated `apnscp-CMGEBKBA'
    INFO   : no bandwidth rollover date specified, using day of month, `11'
    ERROR  : Event\Manager::fire(): Call to undefined method Opcenter\Service\Validators\Mail\Key::readKeyringValue()
             0. Error_Reporter::add_error("Call to undefined method Opcenter\Service\Validators\Mail\Key::readKeyringValue()", [])
                [/usr/local/apnscp/lib/log_wrapper.php:72]
             1. error("Call to undefined method Opcenter\Service\Validators\Mail\Key::readKeyringValue()", )
                [/usr/local/apnscp/lib/Event/Manager.php:198]
             2. Event\Manager->fire("FILESYSTEM.created", Opcenter\Filesystem)
                [/usr/local/apnscp/lib/Event/Cardinal.php:172]
             3. Event\Cardinal::fire(["FILESYSTEM", "created"], Opcenter\Filesystem)
                [/usr/local/apnscp/lib/Opcenter/Filesystem.php:79]
             4. Opcenter\Filesystem->populate()
                [/usr/local/apnscp/lib/Opcenter/Filesystem.php:47]
             5. Opcenter\Filesystem::create("site7", null)
                [/usr/local/apnscp/lib/Opcenter/Account/Create.php:154]
             6. Opcenter\Account\Create->exec()
                [/usr/local/apnscp/bin/AddDomain:36]
    FATAL  : fatal(): failed to create account
             0. Error_Reporter::trigger_fatal("failed to create account", )
                [/usr/local/apnscp/lib/log_wrapper.php:50]
             1. fatal("failed to create account")
                [/usr/local/apnscp/lib/Opcenter/Filesystem.php:80]
             2. Opcenter\Filesystem->populate()
                [/usr/local/apnscp/lib/Opcenter/Filesystem.php:47]
             3. Opcenter\Filesystem::create("site7", null)
                [/usr/local/apnscp/lib/Opcenter/Account/Create.php:154]
             4. Opcenter\Account\Create->exec()
                [/usr/local/apnscp/bin/AddDomain:36]
    Admin_Module::add_site(): Event\Manager::fire(): Call to undefined method Opcenter\Service\Validators\Mail\Key::readKeyringValue()

This is your problem.

When mail,key=DEFAULT, then it looks at [mail] => provider_key. This value is something of the nature keyring:xyzabc. No mail provider utilizes a key at the time of this writing.

Removing the default [mail] => provider_key will resolve your problem immediately.

This is accomplished by running the command mentioned above,

cpcmd scope:set cp.config mail provider_key null