Skip to content

Commit 1d128c8

Browse files
Merge pull request #10 from technicalguru/develop
Merge release from develop branch
2 parents c214bcf + 9c66889 commit 1d128c8

4 files changed

Lines changed: 15 additions & 8 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Mailserver is intentionally modular. Its main mail-related functions are separat
3737

3838
* [docker-mailserver](https://github.com/technicalguru/docker-mailserver) - Provides help, guidance and examples how to orchestrate the Docker images
3939
* [docker-mailserver-postfix](https://github.com/technicalguru/docker-mailserver-postfix) - Implements the core mailing functionality to send and receive messages.
40+
* [docker-mailserver-opendkim](https://github.com/technicalguru/docker-mailserver-opendkim) - Implements the DKIM signing functionality.
4041
* [docker-mailserver-postfixadmin](https://github.com/technicalguru/docker-mailserver-postfixadmin) - Provides administration function for domains and mailboxes
4142
* [docker-mailserver-amavis](https://github.com/technicalguru/docker-mailserver-amavis) - Provides mail scanners to detect viruses and spam
4243
* [docker-mailserver-roundcube](https://github.com/technicalguru/docker-mailserver-roundcube) - A webmail interface that lets you pick-up, read, manage and send e-mails

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eu.gcr.io/long-grin-186810/rs-php:7.4.4-apache-2.4.38.0
1+
FROM technicalguru/rs-php:7.4.28-apache-2.4.53.1
22
LABEL maintainer="Ralph Schuster <github@ralph-schuster.eu>"
33

44
RUN apt-get update && apt-get update && apt-get install -y --no-install-recommends \
@@ -11,7 +11,8 @@ RUN apt-get update && apt-get update && apt-get install -y --no-install-recomme
1111
#ADD etc/sites/ /etc/apache2/sites-enabled/
1212
RUN chown -R www-data:www-data /var/www/html
1313

14-
ENV PFA_VERSION="3.2.4"
14+
ENV PFA_VERSION="3.3.11"
15+
ENV PFA_REVISION="0"
1516
ENV PFA_URL="https://github.com/postfixadmin/postfixadmin/archive/postfixadmin-${PFA_VERSION}.tar.gz"
1617
RUN set -xe \
1718
&& cd /var/www/html \
@@ -21,7 +22,7 @@ RUN set -xe \
2122
&& mkdir templates_c
2223

2324
ADD src/ /var/www/html/
24-
RUN patch model/MailboxHandler.php < MailboxHandler.php.patch
25+
#RUN patch model/MailboxHandler.php < MailboxHandler.php.patch
2526

2627
RUN chown -R www-data:www-data .
2728

@@ -31,8 +32,8 @@ RUN chown -R www-data:www-data .
3132
ARG ARG_CREATED
3233
ARG ARG_URL=https://github.com/technicalguru/docker-mailserver-postfixadmin
3334
ARG ARG_SOURCE=https://github.com/technicalguru/docker-mailserver-postfixadmin
34-
ARG ARG_VERSION="${PFA_VERSION}-01"
35-
ARG ARG_REVISION
35+
ARG ARG_VERSION="${PFA_VERSION}.${PFA_REVISION}"
36+
ARG ARG_REVISION="${PFA_REVISION}"
3637
ARG ARG_VENDOR=technicalguru
3738
ARG ARG_TITLE=technicalguru/mailserver-postfixadmin
3839
ARG ARG_DESCRIPTION="Provides PostfixAdmin Web UI with Apache/PHP"

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ without the other components. However, a database server is always required to s
66
Related images:
77
* [docker-mailserver](https://github.com/technicalguru/docker-mailserver) - The main project, containing composition instructions
88
* [docker-mailserver-postfix](https://github.com/technicalguru/docker-mailserver-postfix) - Postfix/Dovecot image (mailserver component)
9+
* [docker-mailserver-opendkim](https://github.com/technicalguru/docker-mailserver-opendkim) - OpenDKIM image (DKIM signing milter component)
910
* [docker-mailserver-amavis](https://github.com/technicalguru/docker-mailserver-amavis) - Amavis, ClamAV and SpamAssassin (provides spam and virus detection)
1011
* [docker-mailserver-roundcube](https://github.com/technicalguru/docker-mailserver-roundcube) - Roundcube Webmailer
1112

1213
# Tags
1314
The following versions are available from DockerHub. The image tag matches the PostfixAdmin version.
1415

15-
* [3.2.4-01, 3.2.4, 3.2, 3, latest](https://hub.docker.com/repository/docker/technicalguru/mailserver-postfixadmin) - [Dockerfile](https://github.com/technicalguru/docker-mailserver-postfixadmin/blob/3.2.4-01/Dockerfile)
16+
* [3.3.11.1, 3.3.11, 3.3, 3, latest](https://hub.docker.com/repository/docker/technicalguru/mailserver-postfixadmin/tree/v3.3.11.1) - [Dockerfile](https://github.com/technicalguru/docker-mailserver-postfixadmin/blob/3.3.11.1/Dockerfile)
17+
* [3.2.4-01, 3.2.4, 3.2](https://hub.docker.com/repository/docker/technicalguru/mailserver-postfixadmin/tree/v3.2.4-01) - [Dockerfile](https://github.com/technicalguru/docker-mailserver-postfixadmin/blob/3.2.4-01/Dockerfile)
1618

1719
# Features
1820
* Database and PostfixAdmin setup from environment variables
@@ -51,7 +53,7 @@ _docker-mailserver-postfixadmin_ exposes port 80 (the WebUI). No TLS support is
5153
The [main mailserver project](https://github.com/technicalguru/docker-mailserver) has examples of container configurations:
5254
* [with docker-compose](https://github.com/technicalguru/docker-mailserver/tree/master/examples/docker-compose)
5355
* [with Kubernetes YAML files](https://github.com/technicalguru/docker-mailserver/tree/master/examples/kubernetes)
54-
* [with HELM charts](https://github.com/technicalguru/docker-mailserver/tree/master/helm-charts)
56+
* [with HELM charts](https://github.com/technicalguru/docker-mailserver/tree/master/examples/helm-charts)
5557

5658
## Bootstrap and Setup
5759
Once you have started your PostfixAdmin container successfully, it is now time to perform the first-time setup for your mailserver. Open the web interface and navigate to `/public/setup.php`.

src/config.local.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@
6262
// To create the hash, visit setup.php in a browser and type a password into the field,
6363
// on submission it will be echoed out to you as a hashed value.
6464
$PFA_SALT = md5(time() . '*' . $_SERVER['REMOTE_ADDR'] . '*' . mt_rand(0, 60000));
65-
$CONF['setup_password'] = $PFA_SALT.':'.sha1($PFA_SALT.':'.($_ENV['PFA_SETUP_PASS'] ? $_ENV['PFA_SETUP_PASS'] : $_ENV['PFA_DB_PASS']));
65+
# SHA1 encoding is obsolete since 3.3
66+
#$CONF['setup_password'] = $PFA_SALT.':'.sha1($PFA_SALT.':'.($_ENV['PFA_SETUP_PASS'] ? $_ENV['PFA_SETUP_PASS'] : $_ENV['PFA_DB_PASS']));
67+
# New password hashing since 3.3
68+
$CONF['setup_password'] = password_hash(($_ENV['PFA_SETUP_PASS'] ? $_ENV['PFA_SETUP_PASS'] : $_ENV['PFA_DB_PASS']), PASSWORD_DEFAULT);
6669

6770
// Language config
6871
// Language files are located in './languages', change as required..

0 commit comments

Comments
 (0)