fix sogo bugs after 2022-08 update
This commit is contained in:
		
							parent
							
								
									7c9c2c35f8
								
							
						
					
					
						commit
						72e204f8fd
					
				| @ -307,29 +307,13 @@ 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) | ||||||
|  | |||||||
| @ -142,6 +142,10 @@ cat <<EOF > /var/lib/sogo/GNUstep/Defaults/sogod.plist | |||||||
|     <string>mysql://${DBUSER}:${DBPASS}@%2Fvar%2Frun%2Fmysqld%2Fmysqld.sock/${DBNAME}/sogo_acl</string> |     <string>mysql://${DBUSER}:${DBPASS}@%2Fvar%2Frun%2Fmysqld%2Fmysqld.sock/${DBNAME}/sogo_acl</string> | ||||||
|     <key>SOGoIMAPServer</key> |     <key>SOGoIMAPServer</key> | ||||||
|     <string>imap://${IPV4_NETWORK}.250:143/?TLS=YES&tlsVerifyMode=none</string> |     <string>imap://${IPV4_NETWORK}.250:143/?TLS=YES&tlsVerifyMode=none</string> | ||||||
|  |     <key>SOGoSieveServer</key> | ||||||
|  |     <string>sieve://${IPV4_NETWORK}.250:4190/?TLS=YES&tlsVerifyMode=none</string> | ||||||
|  |     <key>SOGoSMTPServer</key> | ||||||
|  |     <string>smtp://${IPV4_NETWORK}.253:588/?TLS=YES&tlsVerifyMode=none</string> | ||||||
|     <key>SOGoTrustProxyAuthentication</key> |     <key>SOGoTrustProxyAuthentication</key> | ||||||
|     <string>YES</string> |     <string>YES</string> | ||||||
|     <key>SOGoEncryptionKey</key> |     <key>SOGoEncryptionKey</key> | ||||||
|  | |||||||
| @ -32,8 +32,6 @@ | |||||||
|     // ); |     // ); | ||||||
| 
 | 
 | ||||||
|     // self-signed is not trusted anymore |     // self-signed is not trusted anymore | ||||||
|     SOGoSieveServer = "sieve://dovecot:4190/?TLS=YES&tlsVerifyMode=none"; |  | ||||||
|     SOGoSMTPServer = "smtp://postfix:588/?TLS=YES&tlsVerifyMode=none"; |  | ||||||
|     WOPort = "0.0.0.0:20000"; |     WOPort = "0.0.0.0:20000"; | ||||||
|     SOGoMemcachedHost = "memcached"; |     SOGoMemcachedHost = "memcached"; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 FreddleSpl0it
						FreddleSpl0it