docker run --rm -it \
--network backend \
--name postfixadmin \
-P \
jnbt/postfixadmin
In case you want to automatically create the MySQL database layout run the container with app:init:
docker run --rm -it \
--network backend \
-e [email protected] \
-e ADMIN_PASSWORD=s3cr3t \
-e SETUP_PASSWORD=0th3rs3cr3t \
jnbt/postfixadmin \
app:init
Warning: Postfixadmin uses SQL statements which won't work when running your
database in strict mode. This docker container tries to patch the initial SQL
import, but you might need to run the app:init more then once!
The default configuration for MySQL is:
-e MYSQL_HOST=mysql
-e MYSQL_USER=postfix
-e MYSQL_DATABASE=postfix
-e MYSQL_PASSWORD=postfix
You can configure all simple PFA configuration options
using enviroment variables prefixed with PA_.
Example: Using quotas for mail accounts
-e PA_QUOTA=YES
-e PA_USED_QUOTAS=YES
In case you need a more complex configuration, you can mount a directory holding further php-based configuration files:
-v /path/to/config/folder:/config/custom:ro
Where a custom config file could be /path/to/config/folder/user.inc.php:
<?php
$CONF['default_aliases'] = array (
'abuse' => 'admin',
'hostmaster' => 'admin',
'postmaster' => 'admin',
'webmaster' => 'admin'
);
Makefile: BumpVERSIONDockerfile: BumpPOSTFIXADMIN_VERSIONandRELEASE_DATEREADME.md: Bump versions inSoftwaresection- Run
make release