Update run.sh
This commit is contained in:
		
							
								
								
									
										2
									
								
								run.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								run.sh
									
									
									
									
									
								
							@@ -13,7 +13,6 @@ function add_config_value() {
 | 
			
		||||
 postconf -e "${key} = ${value}"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
[ -z "${SMTP_SERVER}" ] && echo "SMTP_SERVER is not set" && exit 1
 | 
			
		||||
[ -z "${SMTP_USERNAME}" ] && echo "SMTP_USERNAME is not set" && exit 1
 | 
			
		||||
[ -z "${SMTP_PASSWORD}" ] && echo "SMTP_PASSWORD is not set" && exit 1
 | 
			
		||||
@@ -35,7 +34,6 @@ add_config_value "smtp_sasl_auth_enable" "yes"
 | 
			
		||||
add_config_value "smtp_sasl_password_maps" "hash:\/etc\/postfix\/sasl_passwd"
 | 
			
		||||
add_config_value "smtp_sasl_security_options" "noanonymous"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Create sasl_passwd file with auth credentials
 | 
			
		||||
if [ ! -f /etc/postfix/sasl_passwd ]; then
 | 
			
		||||
  grep -q "${SMTP_SERVER}" /etc/postfix/sasl_passwd  > /dev/null 2>&1
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user