@@ -66,6 +66,9 @@ function configure_postfix($options = '')
6666 //* mysql-virtual_alias_domains.cf
6767 $ this ->process_postfix_config ('mysql-virtual_alias_domains.cf ' );
6868
69+ //* mysql-virtual_alias_maps.cf
70+ $ this ->process_postfix_config ('mysql-virtual_alias_maps.cf ' );
71+
6972 //* mysql-virtual_mailboxes.cf
7073 $ this ->process_postfix_config ('mysql-virtual_mailboxes.cf ' );
7174
@@ -121,12 +124,6 @@ function configure_postfix($options = '')
121124 $ content = rfsel ($ conf ['ispconfig_install_dir ' ].'/server/conf-custom/install/postfix- ' .$ filename .'.master ' , 'tpl/postfix- ' .$ filename .'.master ' );
122125 wf ($ full_file_name , $ content );
123126
124- //* Changing mode and group of the new created config files.
125- caselog ('chmod o= ' .$ config_dir .'/mysql-virtual_*.cf* &> /dev/null ' ,
126- __FILE__ , __LINE__ , 'chmod on mysql-virtual_*.cf* ' , 'chmod on mysql-virtual_*.cf* failed ' );
127- caselog ('chgrp ' .$ cf ['group ' ].' ' .$ config_dir .'/mysql-virtual_*.cf* &> /dev/null ' ,
128- __FILE__ , __LINE__ , 'chgrp on mysql-virtual_*.cf* ' , 'chgrp on mysql-virtual_*.cf* failed ' );
129-
130127 //* Creating virtual mail user and group
131128 $ command = 'groupadd -g ' .$ cf ['vmail_groupid ' ].' ' .$ cf ['vmail_groupname ' ];
132129 if (!is_group ($ cf ['vmail_groupname ' ])) caselog ($ command .' &> /dev/null ' , __FILE__ , __LINE__ , "EXECUTED: $ command " , "Failed to execute the command $ command " );
@@ -156,9 +153,16 @@ function configure_postfix($options = '')
156153 }
157154
158155 $ reject_sender_login_mismatch = '' ;
156+ $ reject_authenticated_sender_login_mismatch = '' ;
159157 if (isset ($ server_ini_array ['mail ' ]['reject_sender_login_mismatch ' ]) && ($ server_ini_array ['mail ' ]['reject_sender_login_mismatch ' ] == 'y ' )) {
160- $ reject_sender_login_mismatch = ', reject_authenticated_sender_login_mismatch ' ;
158+ $ reject_sender_login_mismatch = ', reject_sender_login_mismatch ' ;
159+ $ reject_authenticated_sender_login_mismatch = 'reject_authenticated_sender_login_mismatch, ' ;
161160 }
161+
162+ # placeholder includes comment char
163+ $ stress_adaptive_placeholder = '#{stress_adaptive} ' ;
164+ $ stress_adaptive = (isset ($ server_ini_array ['mail ' ]['stress_adaptive ' ]) && ($ server_ini_array ['mail ' ]['stress_adaptive ' ] == 'y ' )) ? '' : $ stress_adaptive_placeholder ;
165+
162166 unset($ server_ini_array );
163167
164168 $ postconf_placeholders = array ('{config_dir} ' => $ config_dir ,
@@ -168,6 +172,8 @@ function configure_postfix($options = '')
168172 '{rbl_list} ' => $ rbl_list ,
169173 '{greylisting} ' => $ greylisting ,
170174 '{reject_slm} ' => $ reject_sender_login_mismatch ,
175+ '{reject_aslm} ' => $ reject_authenticated_sender_login_mismatch ,
176+ $ stress_adaptive_placeholder => $ stress_adaptive ,
171177 );
172178
173179 $ postconf_tpl = rfsel ($ conf ['ispconfig_install_dir ' ].'/server/conf-custom/install/fedora_postfix.conf.master ' , 'tpl/fedora_postfix.conf.master ' );
0 commit comments