@@ -103,17 +103,17 @@ function configure_postfix($options = '')
103103 $ this ->process_postfix_config ('mysql-virtual_uids.cf ' );
104104
105105 //* postfix-dkim
106- $ full_file_name = $ config_dir . ' / tag_as_originating.re ' ;
107- if ( is_file ( $ full_file_name)) {
108- copy ($ full_file_name , $ config_dir . $ configfile .'~ ' );
109- }
110- wf ($ full_file_name , ' /^/ FILTER amavis:[127.0.0.1]:10026 ' );
111-
112- $ full_file_name = $ config_dir . ' / tag_as_foreign.re ' ;
113- if ( is_file ( $ full_file_name)) {
114- copy ($ full_file_name , $ config_dir . $ configfile .'~ ' );
115- }
116- wf ($ full_file_name , ' /^/ FILTER amavis:[127.0.0.1]:10024 ' );
106+ $ filename = ' tag_as_originating.re ' ;
107+ $ full_file_name= $ config_dir . ' / ' . $ filename ;
108+ if ( is_file ( $ full_file_name )) copy ($ full_file_name , $ full_file_name .'~ ' );
109+ $ content = rfsel ( $ conf [ ' ispconfig_install_dir ' ]. ' /server/conf-custom/install/postfix- ' . $ filename . ' .master ' , ' tpl/postfix- ' . $ filename . ' .master ' );
110+ wf ($ full_file_name , $ content );
111+
112+ $ filename = ' tag_as_foreign.re ' ;
113+ $ full_file_name= $ config_dir . ' / ' . $ filename ;
114+ if ( is_file ( $ full_file_name )) copy ($ full_file_name , $ full_file_name .'~ ' );
115+ $ content = rfsel ( $ conf [ ' ispconfig_install_dir ' ]. ' /server/conf-custom/install/postfix- ' . $ filename . ' .master ' , ' tpl/postfix- ' . $ filename . ' .master ' );
116+ wf ($ full_file_name , $ content );
117117
118118 //* Changing mode and group of the new created config files.
119119 caselog ('chmod o= ' .$ config_dir .'/mysql-virtual_*.cf* &> /dev/null ' ,
0 commit comments