Skip to content

Dedicated-site preset

The optional dedicated-site preset turns a Drupal installation into a focused Postfix Admin console. Apply it only after the base Recipe:

../vendor/bin/drush recipe ../recipes/postfix_admin_console
../vendor/bin/drush recipe ../recipes/postfix_admin_console/examples/dedicated-site
../vendor/bin/drush cache:rebuild

Changes made by the preset

The preset:

  • installs Drupal core's Default Admin theme;
  • uses Default Admin as both the default and administration theme;
  • enables Default Admin dark mode;
  • places the primary and secondary local-task blocks;
  • sets the site front page to the Postfix Admin domain list.

The resulting administration flow exposes the Domain list, Alias list, Mailbox list, Alias domain list, and Settings tabs. The + local task opens the add form for the resource list currently displayed.

Anonymous visitors can use /user/login. Access to the Postfix Admin pages is still controlled by Drupal permissions.

The preset does not alter Drupal's post-login redirect. A distribution that requires every operator to land on the Domain list after login should provide that site-wide behavior separately.

Existing-site caution

Unlike the base Recipe, the dedicated-site preset intentionally changes the site themes and front page. Back up configuration and test the change before applying it to an existing site. It does not create or replace users, content, login redirects, mail routing, or production infrastructure.

Run its disposable verification with:

tests/install-recipe.sh --dedicated