Skip to content
Snippets Groups Projects
Commit 31ad5b7d authored by Jesse Norell's avatar Jesse Norell
Browse files

ensure /etc/postfix/sasl_passwd exists

parent 88c60a54
No related branches found
No related tags found
No related merge requests found
...@@ -162,6 +162,7 @@ class installer_dist extends installer_base { ...@@ -162,6 +162,7 @@ class installer_dist extends installer_base {
touch($config_dir.'/mime_header_checks'); touch($config_dir.'/mime_header_checks');
touch($config_dir.'/nested_header_checks'); touch($config_dir.'/nested_header_checks');
touch($config_dir.'/body_checks'); touch($config_dir.'/body_checks');
touch($config_dir.'/sasl_passwd');
//* Create the mailman files //* Create the mailman files
if(!is_dir('/var/lib/mailman/data')) exec('mkdir -p /var/lib/mailman/data'); if(!is_dir('/var/lib/mailman/data')) exec('mkdir -p /var/lib/mailman/data');
......
...@@ -160,6 +160,7 @@ class installer extends installer_base ...@@ -160,6 +160,7 @@ class installer extends installer_base
touch($config_dir.'/mime_header_checks'); touch($config_dir.'/mime_header_checks');
touch($config_dir.'/nested_header_checks'); touch($config_dir.'/nested_header_checks');
touch($config_dir.'/body_checks'); touch($config_dir.'/body_checks');
touch($config_dir.'/sasl_passwd');
//* Create auxillary postfix conf files //* Create auxillary postfix conf files
$configfile = 'helo_access'; $configfile = 'helo_access';
......
...@@ -176,6 +176,7 @@ class installer_dist extends installer_base { ...@@ -176,6 +176,7 @@ class installer_dist extends installer_base {
touch($config_dir.'/mime_header_checks'); touch($config_dir.'/mime_header_checks');
touch($config_dir.'/nested_header_checks'); touch($config_dir.'/nested_header_checks');
touch($config_dir.'/body_checks'); touch($config_dir.'/body_checks');
touch($config_dir.'/sasl_passwd');
//* Create the mailman files //* Create the mailman files
if(!is_dir('/var/lib/mailman/data')) exec('mkdir -p /var/lib/mailman/data'); if(!is_dir('/var/lib/mailman/data')) exec('mkdir -p /var/lib/mailman/data');
......
...@@ -1200,6 +1200,7 @@ class installer_base { ...@@ -1200,6 +1200,7 @@ class installer_base {
touch($config_dir.'/mime_header_checks'); touch($config_dir.'/mime_header_checks');
touch($config_dir.'/nested_header_checks'); touch($config_dir.'/nested_header_checks');
touch($config_dir.'/body_checks'); touch($config_dir.'/body_checks');
touch($config_dir.'/sasl_passwd');
//* Create the mailman files //* Create the mailman files
if(!is_dir('/var/lib/mailman/data')) exec('mkdir -p /var/lib/mailman/data'); if(!is_dir('/var/lib/mailman/data')) exec('mkdir -p /var/lib/mailman/data');
......
...@@ -54,7 +54,7 @@ address_verify_negative_refresh_time=60s ...@@ -54,7 +54,7 @@ address_verify_negative_refresh_time=60s
# needed for postfix < 3.3 when using reject_unverified_recipient (lmtp): # needed for postfix < 3.3 when using reject_unverified_recipient (lmtp):
enable_original_recipient = yes enable_original_recipient = yes
sender_dependent_relayhost_maps = proxy:mysql:{config_dir}/mysql-virtual_sender-relayhost.cf sender_dependent_relayhost_maps = proxy:mysql:{config_dir}/mysql-virtual_sender-relayhost.cf
smtp_sasl_password_maps = proxy:mysql:{config_dir}/mysql-virtual_sender-relayauth.cf, hash:{config_dir}/sasl_passwd smtp_sasl_password_maps = proxy:mysql:{config_dir}/mysql-virtual_sender-relayauth.cf, texthash:{config_dir}/sasl_passwd
smtp_sender_dependent_authentication = yes smtp_sender_dependent_authentication = yes
smtp_sasl_auth_enable = yes smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous, noplaintext smtp_sasl_security_options = noanonymous, noplaintext
......
...@@ -50,7 +50,7 @@ address_verify_negative_refresh_time=60s ...@@ -50,7 +50,7 @@ address_verify_negative_refresh_time=60s
# needed for postfix < 3.3 when using reject_unverified_recipient (lmtp): # needed for postfix < 3.3 when using reject_unverified_recipient (lmtp):
enable_original_recipient = yes enable_original_recipient = yes
sender_dependent_relayhost_maps = proxy:mysql:{config_dir}/mysql-virtual_sender-relayhost.cf sender_dependent_relayhost_maps = proxy:mysql:{config_dir}/mysql-virtual_sender-relayhost.cf
smtp_sasl_password_maps = proxy:mysql:{config_dir}/mysql-virtual_sender-relayauth.cf, hash:{config_dir}/sasl_passwd smtp_sasl_password_maps = proxy:mysql:{config_dir}/mysql-virtual_sender-relayauth.cf, texthash:{config_dir}/sasl_passwd
smtp_sender_dependent_authentication = yes smtp_sender_dependent_authentication = yes
smtp_sasl_auth_enable = yes smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous, noplaintext smtp_sasl_security_options = noanonymous, noplaintext
......
...@@ -49,7 +49,7 @@ address_verify_negative_refresh_time=60s ...@@ -49,7 +49,7 @@ address_verify_negative_refresh_time=60s
# needed for postfix < 3.3 when using reject_unverified_recipient (lmtp): # needed for postfix < 3.3 when using reject_unverified_recipient (lmtp):
enable_original_recipient = yes enable_original_recipient = yes
sender_dependent_relayhost_maps = proxy:mysql:{config_dir}/mysql-virtual_sender-relayhost.cf sender_dependent_relayhost_maps = proxy:mysql:{config_dir}/mysql-virtual_sender-relayhost.cf
smtp_sasl_password_maps = proxy:mysql:{config_dir}/mysql-virtual_sender-relayauth.cf, hash:{config_dir}/sasl_passwd smtp_sasl_password_maps = proxy:mysql:{config_dir}/mysql-virtual_sender-relayauth.cf, texthash:{config_dir}/sasl_passwd
smtp_sender_dependent_authentication = yes smtp_sender_dependent_authentication = yes
smtp_sasl_auth_enable = yes smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous, noplaintext smtp_sasl_security_options = noanonymous, noplaintext
......
...@@ -52,7 +52,7 @@ address_verify_negative_refresh_time=60s ...@@ -52,7 +52,7 @@ address_verify_negative_refresh_time=60s
# needed for postfix < 3.3 when using reject_unverified_recipient (lmtp): # needed for postfix < 3.3 when using reject_unverified_recipient (lmtp):
enable_original_recipient = yes enable_original_recipient = yes
sender_dependent_relayhost_maps = proxy:mysql:{config_dir}/mysql-virtual_sender-relayhost.cf sender_dependent_relayhost_maps = proxy:mysql:{config_dir}/mysql-virtual_sender-relayhost.cf
smtp_sasl_password_maps = proxy:mysql:{config_dir}/mysql-virtual_sender-relayauth.cf, hash:{config_dir}/sasl_passwd smtp_sasl_password_maps = proxy:mysql:{config_dir}/mysql-virtual_sender-relayauth.cf, texthash:{config_dir}/sasl_passwd
smtp_sender_dependent_authentication = yes smtp_sender_dependent_authentication = yes
smtp_sasl_auth_enable = yes smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous, noplaintext smtp_sasl_security_options = noanonymous, noplaintext
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment