This page helps you setup PostfixAdmin. For further help see the documentation.
Warning: connection not secure, switch to https if possible"; } ?>One you have logged in with the setup_password, this page will ...
If you've forgotten your super-admin password, you can generate a new one using the
Generate
form and update your config.local.php
You can use the form below, or run something like the following in a shell - php -r 'echo password_hash("password", PASSWORD_DEFAULT);'
EOF; } if ($old_setup_password) { echo '
Your setup_password is in an obsolete format. As of PostfixAdmin 3.3 it needs regenerating.'; } if (!$authenticated || !$configSetupDone) { ?>
\$CONF['setup_password'] = '$hash';
After adding, refresh this page and log in using it.
"; } else { $form_error = 'has-error'; $errors['setup_password'] = implode(', ', $msgs); } } } ?> = $result ?>Everything seems fine... attempting to create/update database structure
\n"; try { require_once(dirname(__FILE__) . '/upgrade.php'); } catch (\Exception $e) { if ($authenticated) { echo "Exception message: {$e->getMessage()} - check logs!
"; } echo "Something went wrong while trying to apply database updates, a message should be logged - check PHP's error_log (" . ini_get('error_log') . ')
'; error_log("Couldn't perform PostfixAdmin database update via upgrade.php - " . $e->getMessage() . " Trace: " . $e->getTraceAsString()); } } else { echo "Admin addition failed; check field error messages or server logs.
"; } else { // all good!. $setupMessage .= "You are done with your basic setup. You can now login to PostfixAdmin using the account you just created.
"; } echo "The following 'super-admin' accounts have already been added to the database.
= $setupMessage ?>