Commit 296a8142 authored by The Heavy's avatar The Heavy 🚂
Browse files

Tweaks to make postfix work

parent cc46900c
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -32,7 +32,9 @@ After signing in you should run 'Re-check and refresh configuration' (should be
- The Webmin certificate is generated during image build, this means all containers share the same default certificate which is bad for security.
- The DKIM selector and private key need randomising.
- Upgrading Webmin within the container fails, need to disable the upgrades somehow?
- Some SysV init scripts have been replaced with 'no-ops' because we don't have an S6 service for them yet, others are hacky links to the S6 equivalents for SysV very rudimentary SysV init compatibility.
- Some SysV init scripts have been replaced with 'no-ops' because we don't have an S6 service for them yet, others are hacky links to the S6 equivalents for very rudimentary SysV init compatibility.
- Root password resets if you stop the container.
- Local IP changes if you stop the container, Virtualmin will whinge but not sure if this actually causes issues yet.

## Licence

+6 −6
Original line number Diff line number Diff line
@@ -11,10 +11,10 @@ services:
    volumes:
      - /opt/docker/virtualmin/config:/config
    ports:
      - 10000:10000  # Webmin port
      - 20000:20000  # Usermin port
      - 25:25        # SMTP port
      - 143:143      # IMAP port
      - 80:80        # HTTP port
      - 443:443      # HTTPS port
      - "10000:10000"  # Webmin port
      - "20000:20000"  # Usermin port
      - "25:25"        # SMTP port
      - "143:143"      # IMAP port
      - "80:80"        # HTTP port
      - "443:443"      # HTTPS port
    restart: unless-stopped
+3 −3
Original line number Diff line number Diff line
@@ -14,10 +14,10 @@

case "$1" in
  start)
        /usr/bin/s6-svc -uwR /var/run/s6/services/postfix
        /usr/bin/s6-svc -u /var/run/s6/services/postfix
        ;;
  stop)
        /usr/bin/s6-svc -dwD /var/run/s6/services/postfix
        /usr/bin/s6-svc -d /var/run/s6/services/postfix
        ;;
  status)
        /usr/bin/s6-svstat /var/run/s6/services/postfix
@@ -26,7 +26,7 @@ case "$1" in
        /usr/sbin/postfix reload
        ;;
  restart)
        /usr/bin/s6-svc -ruwR /var/run/s6/services/postfix
        /usr/bin/s6-svc -r /var/run/s6/services/postfix
        ;;
  *)
        echo "Usage: postfix {start|stop|restart|reload|force-reload}" >&2
+3 −0
Original line number Diff line number Diff line
@@ -74,3 +74,6 @@ broken_sasl_auth_clients = yes
# filter mail through opendkim, which won't open a port under docker for reasons
smtpd_milters = unix:/run/opendkim/opendkim.sock
non_smtpd_milters = unix:/run/opendkim/opendkim.sock

# send logs somewhere we can read them
maillog_file = /dev/stdout