From af876c2fd45660117752815a774006e4a19e5a07 Mon Sep 17 00:00:00 2001 From: marcelloc Date: Mon, 5 Sep 2011 16:12:26 -0300 Subject: Postfix package version 2.0 postfix + postscreen + rbl + spf + ldap search Author: marcelloc --- config/postfix/postfix.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'config/postfix/postfix.inc') diff --git a/config/postfix/postfix.inc b/config/postfix/postfix.inc index 2a762ae4..3d1ff947 100644 --- a/config/postfix/postfix.inc +++ b/config/postfix/postfix.inc @@ -190,6 +190,9 @@ function sync_package_postfix() { else $new_sys_log .= $new_line; } + if (!file_exists('/root/system.inc.backup')) { + copy ($sys_log_file,'/root/system.inc.backup'); + } file_put_contents($sys_log_file,$new_sys_log, LOCK_EX); #mwexec('/usr/local/bin/php -q /usr/local/www/postfix_syslog.php'); #restart syslog daemon @@ -594,7 +597,7 @@ function postfix_validate_input($post, &$input_errors) { function postfix_php_install_command() { #small freebsd packages for full functional ldap and spf options system('/usr/sbin/pkg_add -r postfix-policyd-spf'); - system('/usr/sbin/pkg_add -r p5-perl-ldap'); + #system('/usr/sbin/pkg_add -r p5-perl-ldap'); sync_package_postfix(); } -- cgit v1.2.3