tbrehm
2008-09-21 20aa6b4c032ba0e291865078b382a9c6dcaed783
Fixed a few bugs in ubuntu 8.04 sasl setup.
2 files modified
18 ■■■■ changed files
install/lib/installer_base.lib.php 8 ●●●● patch | view | raw | blame | history
install/tpl/amavisd_user_config.master 10 ●●●●● patch | view | raw | blame | history
install/lib/installer_base.lib.php
@@ -407,7 +407,10 @@
        if(is_file($configfile.'~')) exec('chmod 400 '.$configfile.'~');
        $content = rf($configfile);
        $content = str_replace('START=no','START=yes',$content);
        // Debian
        $content = str_replace('OPTIONS="-c"','OPTIONS="-m /var/spool/postfix/var/run/saslauthd -r"',$content);
        // Ubuntu
        $content = str_replace('OPTIONS="-c -m /var/run/saslauthd"','OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"',$content);
        wf($configfile,$content);
        
        // Edit the file /etc/init.d/saslauthd
@@ -415,6 +418,9 @@
        $content = rf($configfile);
        $content = str_replace('PIDFILE=$RUN_DIR/saslauthd.pid','PIDFILE="/var/spool/postfix/var/run/${NAME}/saslauthd.pid"',$content);
        wf($configfile,$content);
        // add the postfix user to the sasl group (at least nescessary for ubuntu 8.04 and most likely debian lenny too.
        exec('adduser postfix sasl');
        
        
    }
@@ -611,7 +617,7 @@
        exec('mkdir -p /var/log/ispconfig/httpd');
        
        if(is_file('/etc/suphp/suphp.conf')) {
            replaceLine('/etc/suphp/suphp.conf','php=php:/usr/bin/php-cgi','x-httpd-suphp=php:/usr/bin/php-cgi',0);
            replaceLine('/etc/suphp/suphp.conf','php=php:/usr/bin','x-httpd-suphp=php:/usr/bin/php-cgi',0);
            replaceLine('/etc/suphp/suphp.conf','docroot=','docroot=/var/clients',0);
        }
        
install/tpl/amavisd_user_config.master
@@ -49,6 +49,13 @@
$final_banned_destiny = D_BOUNCE;
$final_bad_header_destiny = D_DISCARD;
# Default settings, we st this very high to not filter aut emails accidently
$sa_spam_subject_tag = '***SPAM*** ';
$sa_tag_level_deflt  = 20.0;  # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 60.0; # add 'spam detected' headers at that level
$sa_kill_level_deflt = 60.0; # triggers spam evasive actions
$sa_dsn_cutoff_level = 100;   # spam level beyond which a DSN is not sent
#
# Disable spam and virus notifications for the admin user.
# Can be overridden by the policies in mysql
@@ -65,7 +72,8 @@
$DO_SYSLOG = 1;
$LOGFILE = "/var/log/amavis.log";  # (defaults to empty, no log)
$log_level = 5;                # (defaults to 0)
# Set the log_level to 5 for debugging
$log_level = 0;                # (defaults to 0)
#------------ Do not modify anything below this line -------------