HUB
Sign inSign up
postfixadmin logo

webkutir/postfixadmin

By webkutir

•Updated 18 days ago

Docker image for PostfixAdmin 3.3.15 on Ubuntu 26.10, served by nginx and PHP 8.5.

Image
Web servers
0

553

webkutir/postfixadmin repository overview

PostfixAdmin for managing mailboxes, aliases, and domains. nginx serves the public directory through PHP 8.5.

⁠Image

  • Base image: ubuntu:26.10
  • PostfixAdmin 3.3.15
  • PHP 8.5, with MySQL and PostgreSQL drivers
  • nginx listens on VIRTUAL_PORT. The image default is 3000
  • Directory listings are off, and PHP does not display errors
  • setup.php is removed at startup, and nginx returns 404 for that address
  • Mailboxes are stored as domain/user@domain (domain_in_mailbox is on)
  • New domains get the aliases abuse, hostmaster, postmaster, and webmaster

Create the PostfixAdmin database before the first start. The admin account lives in that database. This image does not publish the setup page.

⁠Required environment

VariablePurpose
PFA_SETUP_PASSSetup password. The image stores it as a hash
PFA_DB_USERDatabase user
PFA_DB_PASSWORDDatabase password
PFA_DB_NAMEDatabase name
PFA_HOSTNAMEMail server hostname
PFA_DOMAINDomain shown in the page footer

⁠Optional environment

VariablePurpose
PFA_DB_TYPEmysqli or pgsql. Default: mysqli
PFA_DB_HOSTDatabase host. Default: localhost
PFA_POSTFIX_SERVERPostfix host used for SMTP checks. Default: localhost
PFA_THEME_FAVICONFavicon path
PFA_THEME_LOGOLogo path
VIRTUAL_PORTPort nginx listens on. Default: 3000

⁠Run

docker run -d --name postfixadmin \
  -p 3000:3000 \
  -e VIRTUAL_PORT=3000 \
  -e PFA_SETUP_PASS=change-me \
  -e PFA_DB_TYPE=mysqli \
  -e PFA_DB_HOST=mariadb \
  -e PFA_DB_USER=postfix \
  -e PFA_DB_PASSWORD=change-me \
  -e PFA_DB_NAME=postfix \
  -e PFA_POSTFIX_SERVER=mail.example.com \
  -e PFA_HOSTNAME=mail.example.com \
  -e PFA_DOMAIN=example.com \
  webkutir/postfixadmin:3.3.15

Open http://localhost:3000 and log in with the PostfixAdmin admin account.

Tag summary
Recent tags
Content type
Image
Digest
sha256:79d5692b3…
Size
138.8 MB
Last updated
18 days ago
docker pull webkutir/postfixadmin:latest