Skip to content

Commit 20aa6b4

Browse files
committed
Fixed a few bugs in ubuntu 8.04 sasl setup.
1 parent cea56e3 commit 20aa6b4

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

install/lib/installer_base.lib.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,10 @@ public function configure_saslauthd() {
407407
if(is_file($configfile.'~')) exec('chmod 400 '.$configfile.'~');
408408
$content = rf($configfile);
409409
$content = str_replace('START=no','START=yes',$content);
410+
// Debian
410411
$content = str_replace('OPTIONS="-c"','OPTIONS="-m /var/spool/postfix/var/run/saslauthd -r"',$content);
412+
// Ubuntu
413+
$content = str_replace('OPTIONS="-c -m /var/run/saslauthd"','OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"',$content);
411414
wf($configfile,$content);
412415

413416
// Edit the file /etc/init.d/saslauthd
@@ -416,6 +419,9 @@ public function configure_saslauthd() {
416419
$content = str_replace('PIDFILE=$RUN_DIR/saslauthd.pid','PIDFILE="/var/spool/postfix/var/run/${NAME}/saslauthd.pid"',$content);
417420
wf($configfile,$content);
418421

422+
// add the postfix user to the sasl group (at least nescessary for ubuntu 8.04 and most likely debian lenny too.
423+
exec('adduser postfix sasl');
424+
419425

420426
}
421427

@@ -611,7 +617,7 @@ public function configure_apache()
611617
exec('mkdir -p /var/log/ispconfig/httpd');
612618

613619
if(is_file('/etc/suphp/suphp.conf')) {
614-
replaceLine('/etc/suphp/suphp.conf','php=php:/usr/bin/php-cgi','x-httpd-suphp=php:/usr/bin/php-cgi',0);
620+
replaceLine('/etc/suphp/suphp.conf','php=php:/usr/bin','x-httpd-suphp=php:/usr/bin/php-cgi',0);
615621
replaceLine('/etc/suphp/suphp.conf','docroot=','docroot=/var/clients',0);
616622
}
617623

install/tpl/amavisd_user_config.master

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ $final_spam_destiny = D_DISCARD;
4949
$final_banned_destiny = D_BOUNCE;
5050
$final_bad_header_destiny = D_DISCARD;
5151

52+
# Default settings, we st this very high to not filter aut emails accidently
53+
$sa_spam_subject_tag = '***SPAM*** ';
54+
$sa_tag_level_deflt = 20.0; # add spam info headers if at, or above that level
55+
$sa_tag2_level_deflt = 60.0; # add 'spam detected' headers at that level
56+
$sa_kill_level_deflt = 60.0; # triggers spam evasive actions
57+
$sa_dsn_cutoff_level = 100; # spam level beyond which a DSN is not sent
58+
5259
#
5360
# Disable spam and virus notifications for the admin user.
5461
# Can be overridden by the policies in mysql
@@ -65,7 +72,8 @@ $spam_admin = undef;
6572
$DO_SYSLOG = 1;
6673
$LOGFILE = "/var/log/amavis.log"; # (defaults to empty, no log)
6774

68-
$log_level = 5; # (defaults to 0)
75+
# Set the log_level to 5 for debugging
76+
$log_level = 0; # (defaults to 0)
6977

7078

7179
#------------ Do not modify anything below this line -------------

0 commit comments

Comments
 (0)