Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Zvonimir
ISPConfig 3
Commits
2b05c201
Commit
2b05c201
authored
Aug 03, 2014
by
Florian Schaal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make sure the amavis-user can always access the dkim-dir
parent
d57ffdc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
docs/Remote_API_docs.txt
docs/Remote_API_docs.txt
+1
-1
server/plugins-available/mail_plugin_dkim.inc.php
server/plugins-available/mail_plugin_dkim.inc.php
+9
-1
No files found.
docs/Remote_API_docs.txt
View file @
2b05c201
The remote API documentation is in the remote_client/API-docs subfolder.
\ No newline at end of file
The remote API documentation is in the remoting_client/API-docs subfolder.
server/plugins-available/mail_plugin_dkim.inc.php
View file @
2b05c201
...
...
@@ -123,7 +123,15 @@ class mail_plugin_dkim {
if
(
!
is_dir
(
$mail_config
[
'dkim_path'
]))
{
$app
->
log
(
'DKIM Path '
.
$mail_config
[
'dkim_path'
]
.
' not found - (re)created.'
,
LOGLEVEL_DEBUG
);
mkdir
(
$mail_config
[
'dkim_path'
],
0750
,
true
);
$amavis_user
=
exec
(
'grep -o "^amavis:\|^vscan:" /etc/passwd'
);
if
(
!
empty
(
$amavis_user
))
{
$amavis_user
=
rtrim
(
$amavis_user
,
":"
);
mkdir
(
$mail_config
[
'dkim_path'
],
0750
,
true
);
exec
(
'chown '
.
$amavis_user
.
' /var/lib/amavis/dkim'
);
unset
$amavis_user
;
}
else
{
mkdir
(
$mail_config
[
'dkim_path'
],
0755
,
true
);
}
}
if
(
!
is_writeable
(
$mail_config
[
'dkim_path'
]))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment