@@ -63,6 +63,12 @@ function configure_postfix($options = '')
6363 //* mysql-virtual_forwardings.cf
6464 $ this ->process_postfix_config ('mysql-virtual_forwardings.cf ' );
6565
66+ //* mysql-virtual_alias_domains.cf
67+ $ this ->process_postfix_config ('mysql-virtual_alias_domains.cf ' );
68+
69+ //* mysql-virtual_alias_maps.cf
70+ $ this ->process_postfix_config ('mysql-virtual_alias_maps.cf ' );
71+
6672 //* mysql-virtual_mailboxes.cf
6773 $ this ->process_postfix_config ('mysql-virtual_mailboxes.cf ' );
6874
@@ -102,6 +108,9 @@ function configure_postfix($options = '')
102108 //* mysql-virtual_uids.cf
103109 $ this ->process_postfix_config ('mysql-virtual_uids.cf ' );
104110
111+ //* mysql-virtual_alias_domains.cf
112+ $ this ->process_postfix_config ('mysql-verify_recipients.cf ' );
113+
105114 //* postfix-dkim
106115 $ filename ='tag_as_originating.re ' ;
107116 $ full_file_name =$ config_dir .'/ ' .$ filename ;
@@ -115,12 +124,6 @@ function configure_postfix($options = '')
115124 $ content = rfsel ($ conf ['ispconfig_install_dir ' ].'/server/conf-custom/install/postfix- ' .$ filename .'.master ' , 'tpl/postfix- ' .$ filename .'.master ' );
116125 wf ($ full_file_name , $ content );
117126
118- //* Changing mode and group of the new created config files.
119- caselog ('chmod o= ' .$ config_dir .'/mysql-virtual_*.cf* &> /dev/null ' ,
120- __FILE__ , __LINE__ , 'chmod on mysql-virtual_*.cf* ' , 'chmod on mysql-virtual_*.cf* failed ' );
121- caselog ('chgrp ' .$ cf ['group ' ].' ' .$ config_dir .'/mysql-virtual_*.cf* &> /dev/null ' ,
122- __FILE__ , __LINE__ , 'chgrp on mysql-virtual_*.cf* ' , 'chgrp on mysql-virtual_*.cf* failed ' );
123-
124127 //* Creating virtual mail user and group
125128 $ command = 'groupadd -g ' .$ cf ['vmail_groupid ' ].' ' .$ cf ['vmail_groupname ' ];
126129 if (!is_group ($ cf ['vmail_groupname ' ])) caselog ($ command .' &> /dev/null ' , __FILE__ , __LINE__ , "EXECUTED: $ command " , "Failed to execute the command $ command " );
@@ -150,9 +153,16 @@ function configure_postfix($options = '')
150153 }
151154
152155 $ reject_sender_login_mismatch = '' ;
156+ $ reject_authenticated_sender_login_mismatch = '' ;
153157 if (isset ($ server_ini_array ['mail ' ]['reject_sender_login_mismatch ' ]) && ($ server_ini_array ['mail ' ]['reject_sender_login_mismatch ' ] == 'y ' )) {
154- $ 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, ' ;
155160 }
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+
156166 unset($ server_ini_array );
157167
158168 $ postconf_placeholders = array ('{config_dir} ' => $ config_dir ,
@@ -162,6 +172,8 @@ function configure_postfix($options = '')
162172 '{rbl_list} ' => $ rbl_list ,
163173 '{greylisting} ' => $ greylisting ,
164174 '{reject_slm} ' => $ reject_sender_login_mismatch ,
175+ '{reject_aslm} ' => $ reject_authenticated_sender_login_mismatch ,
176+ $ stress_adaptive_placeholder => $ stress_adaptive ,
165177 );
166178
167179 $ postconf_tpl = rfsel ($ conf ['ispconfig_install_dir ' ].'/server/conf-custom/install/fedora_postfix.conf.master ' , 'tpl/fedora_postfix.conf.master ' );
0 commit comments