mirror of
				https://github.com/optim-enterprises-bv/Mailu.git
				synced 2025-11-04 03:57:53 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			299 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			299 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
# Substitute configuration
 | 
						|
for VARIABLE in `env | cut -f1 -d=`; do
 | 
						|
  sed -i "s={{ $VARIABLE }}=${!VARIABLE}=g" /etc/dovecot/*.conf
 | 
						|
done
 | 
						|
 | 
						|
# Fix permissions
 | 
						|
chown -R mail:mail /mail
 | 
						|
chown -R mail:mail /var/lib/dovecot
 | 
						|
 | 
						|
# Run dovecot
 | 
						|
exec /usr/sbin/dovecot -c /etc/dovecot/dovecot.conf -F
 |