Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Helmo
ISPConfig 3
Commits
20aa6b4c
Commit
20aa6b4c
authored
16 years ago
by
tbrehm
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a few bugs in ubuntu 8.04 sasl setup.
parent
cea56e30
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
install/lib/installer_base.lib.php
+7
-1
7 additions, 1 deletion
install/lib/installer_base.lib.php
install/tpl/amavisd_user_config.master
+9
-1
9 additions, 1 deletion
install/tpl/amavisd_user_config.master
with
16 additions
and
2 deletions
install/lib/installer_base.lib.php
+
7
−
1
View file @
20aa6b4c
...
@@ -407,7 +407,10 @@ class installer_base {
...
@@ -407,7 +407,10 @@ class installer_base {
if
(
is_file
(
$configfile
.
'~'
))
exec
(
'chmod 400 '
.
$configfile
.
'~'
);
if
(
is_file
(
$configfile
.
'~'
))
exec
(
'chmod 400 '
.
$configfile
.
'~'
);
$content
=
rf
(
$configfile
);
$content
=
rf
(
$configfile
);
$content
=
str_replace
(
'START=no'
,
'START=yes'
,
$content
);
$content
=
str_replace
(
'START=no'
,
'START=yes'
,
$content
);
// Debian
$content
=
str_replace
(
'OPTIONS="-c"'
,
'OPTIONS="-m /var/spool/postfix/var/run/saslauthd -r"'
,
$content
);
$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
);
wf
(
$configfile
,
$content
);
// Edit the file /etc/init.d/saslauthd
// Edit the file /etc/init.d/saslauthd
...
@@ -416,6 +419,9 @@ class installer_base {
...
@@ -416,6 +419,9 @@ class installer_base {
$content
=
str_replace
(
'PIDFILE=$RUN_DIR/saslauthd.pid'
,
'PIDFILE="/var/spool/postfix/var/run/${NAME}/saslauthd.pid"'
,
$content
);
$content
=
str_replace
(
'PIDFILE=$RUN_DIR/saslauthd.pid'
,
'PIDFILE="/var/spool/postfix/var/run/${NAME}/saslauthd.pid"'
,
$content
);
wf
(
$configfile
,
$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 @@ class installer_base {
...
@@ -611,7 +617,7 @@ class installer_base {
exec
(
'mkdir -p /var/log/ispconfig/httpd'
);
exec
(
'mkdir -p /var/log/ispconfig/httpd'
);
if
(
is_file
(
'/etc/suphp/suphp.conf'
))
{
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
);
replaceLine
(
'/etc/suphp/suphp.conf'
,
'docroot='
,
'docroot=/var/clients'
,
0
);
}
}
...
...
This diff is collapsed.
Click to expand it.
install/tpl/amavisd_user_config.master
+
9
−
1
View file @
20aa6b4c
...
@@ -49,6 +49,13 @@ $final_spam_destiny = D_DISCARD;
...
@@ -49,6 +49,13 @@ $final_spam_destiny = D_DISCARD;
$final_banned_destiny = D_BOUNCE;
$final_banned_destiny = D_BOUNCE;
$final_bad_header_destiny = D_DISCARD;
$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.
# Disable spam and virus notifications for the admin user.
# Can be overridden by the policies in mysql
# Can be overridden by the policies in mysql
...
@@ -65,7 +72,8 @@ $spam_admin = undef;
...
@@ -65,7 +72,8 @@ $spam_admin = undef;
$DO_SYSLOG = 1;
$DO_SYSLOG = 1;
$LOGFILE = "/var/log/amavis.log"; # (defaults to empty, no log)
$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 -------------
#------------ Do not modify anything below this line -------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment