Add Postfix configuration, restrict to IPv4, related to #121
This commit is contained in:
		
							parent
							
								
									0fdc256b29
								
							
						
					
					
						commit
						4fcaf89aa8
					
				| @ -71,6 +71,12 @@ echo postfix postfix/relayhost string "" | debconf-set-selections | ||||
| # Install packages | ||||
| apt-get -y --no-install-recommends install postfix | ||||
| 
 | ||||
| # Configure Postfix | ||||
| cp ${SOURCE_DIR}/basic/etc/postfix/main.cf /etc/postfix/main.cf | ||||
| 
 | ||||
| # Restart services | ||||
| systemctl restart postfix | ||||
| 
 | ||||
| 
 | ||||
| ##### | ||||
| # LXC | ||||
|  | ||||
							
								
								
									
										13
									
								
								basic/etc/postfix/main.cf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								basic/etc/postfix/main.cf
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,13 @@ | ||||
| append_dot_mydomain = no | ||||
| biff = no | ||||
| compatibility_level = 2 | ||||
| inet_interfaces = loopback-only | ||||
| inet_protocols = ipv4 | ||||
| mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 | ||||
| recipient_delimiter = + | ||||
| smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem | ||||
| smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key | ||||
| smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache | ||||
| smtpd_use_tls=yes | ||||
| smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache | ||||
| smtp_use_tls=yes | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user