@@ -307,12 +307,29 @@ namespace {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
EOF
 | 
					EOF
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Get SOGo IPv6 from Dig
 | 
				
			||||||
 | 
					SOGO_V6=$(dig +answer sogo AAAA +short)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if [ $SOGO_V6 ]; then
 | 
				
			||||||
 | 
					cat <<EOF > /etc/dovecot/sogo_trusted_ip.conf
 | 
				
			||||||
 | 
					# Autogenerated by mailcow
 | 
				
			||||||
 | 
					remote ${IPV4_NETWORK}.248 {
 | 
				
			||||||
 | 
					  disable_plaintext_auth = no
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					remote ${SOGO_V6} {
 | 
				
			||||||
 | 
					  disable_plaintext_auth = no
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					EOF
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					else
 | 
				
			||||||
cat <<EOF > /etc/dovecot/sogo_trusted_ip.conf
 | 
					cat <<EOF > /etc/dovecot/sogo_trusted_ip.conf
 | 
				
			||||||
# Autogenerated by mailcow
 | 
					# Autogenerated by mailcow
 | 
				
			||||||
remote ${IPV4_NETWORK}.248 {
 | 
					remote ${IPV4_NETWORK}.248 {
 | 
				
			||||||
  disable_plaintext_auth = no
 | 
					  disable_plaintext_auth = no
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
EOF
 | 
					EOF
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Create random master Password for SOGo SSO
 | 
					# Create random master Password for SOGo SSO
 | 
				
			||||||
RAND_PASS=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1)
 | 
					RAND_PASS=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@ FROM debian:bullseye-slim
 | 
				
			|||||||
LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
 | 
					LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ARG DEBIAN_FRONTEND=noninteractive
 | 
					ARG DEBIAN_FRONTEND=noninteractive
 | 
				
			||||||
ARG SOGO_DEBIAN_REPOSITORY=http://packages.inverse.ca/SOGo/nightly/5/debian/
 | 
					ARG SOGO_DEBIAN_REPOSITORY=http://packages.sogo.nu/nightly/5/debian/
 | 
				
			||||||
ENV LC_ALL C
 | 
					ENV LC_ALL C
 | 
				
			||||||
ENV GOSU_VERSION 1.14
 | 
					ENV GOSU_VERSION 1.14
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -30,7 +30,7 @@ RUN echo "Building from repository $SOGO_DEBIAN_REPOSITORY" \
 | 
				
			|||||||
  && gosu nobody true \
 | 
					  && gosu nobody true \
 | 
				
			||||||
  && mkdir /usr/share/doc/sogo \
 | 
					  && mkdir /usr/share/doc/sogo \
 | 
				
			||||||
  && touch /usr/share/doc/sogo/empty.sh \
 | 
					  && touch /usr/share/doc/sogo/empty.sh \
 | 
				
			||||||
  && apt-key adv --keyserver keyserver.ubuntu.com --recv-key 0x810273C4 \
 | 
					  && apt-key adv --keyserver keys.openpgp.org --recv-key 74FFC6D72B925A34B5D356BDF8A27B36A6E2EAE9 \
 | 
				
			||||||
  && echo "deb ${SOGO_DEBIAN_REPOSITORY} bullseye bullseye" > /etc/apt/sources.list.d/sogo.list \
 | 
					  && echo "deb ${SOGO_DEBIAN_REPOSITORY} bullseye bullseye" > /etc/apt/sources.list.d/sogo.list \
 | 
				
			||||||
  && apt-get update && apt-get install -y --no-install-recommends \
 | 
					  && apt-get update && apt-get install -y --no-install-recommends \
 | 
				
			||||||
    sogo \
 | 
					    sogo \
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -168,7 +168,7 @@ services:
 | 
				
			|||||||
            - phpfpm
 | 
					            - phpfpm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    sogo-mailcow:
 | 
					    sogo-mailcow:
 | 
				
			||||||
      image: mailcow/sogo:1.109
 | 
					      image: mailcow/sogo:1.110
 | 
				
			||||||
      environment:
 | 
					      environment:
 | 
				
			||||||
        - DBNAME=${DBNAME}
 | 
					        - DBNAME=${DBNAME}
 | 
				
			||||||
        - DBUSER=${DBUSER}
 | 
					        - DBUSER=${DBUSER}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user