Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
0ae0dab1
Commit
0ae0dab1
authored
Feb 01, 2017
by
Till Brehm
Browse files
Merge branch 'stable-3.1' into 'stable-3.1'
Fix #4332 (password reset empty From address) See merge request !515
parents
30ead37e
ed38518a
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/web/login/password_reset.php
View file @
0ae0dab1
...
...
@@ -85,6 +85,7 @@ if(isset($_POST['username']) && $_POST['username'] != '' && $_POST['email'] != '
if
(
isset
(
$_SERVER
[
'SERVER_PORT'
])
&&
$_SERVER
[
'SERVER_PORT'
]
!=
'443'
)
$server_domain
.
=
':'
.
$_SERVER
[
'SERVER_PORT'
];
$app
->
uses
(
'getconf,ispcmail'
);
$server_config_array
=
$app
->
getconf
->
get_global_config
();
$mail_config
=
$server_config_array
[
'mail'
];
if
(
$mail_config
[
'smtp_enabled'
]
==
'y'
)
{
$mail_config
[
'use_smtp'
]
=
true
;
...
...
server/plugins-available/postfix_filter_plugin.inc.php
View file @
0ae0dab1
...
...
@@ -79,6 +79,8 @@ class postfix_filter_plugin {
global
$app
,
$conf
;
$type
=
$data
[
"new"
][
"type"
];
$restart
=
false
;
if
(
$type
!=
''
)
{
$sql
=
"SELECT * FROM mail_content_filter WHERE server_id = ? AND type = ? AND active = 'y'"
;
$rules
=
$app
->
db
->
queryAllRecords
(
$sql
,
$conf
[
"server_id"
],
$type
);
...
...
@@ -91,21 +93,25 @@ class postfix_filter_plugin {
if
(
$type
==
'header'
)
{
file_put_contents
(
'/etc/postfix/header_checks'
,
$content
);
$app
->
log
(
"Writing /etc/postfix/header_checks"
,
LOGLEVEL_DEBUG
);
$restart
=
true
;
}
if
(
$type
==
'mime_header'
)
{
file_put_contents
(
'/etc/postfix/mime_header_checks'
,
$content
);
$app
->
log
(
"Writing /etc/postfix/mime_header_checks"
,
LOGLEVEL_DEBUG
);
$restart
=
true
;
}
if
(
$type
==
'nested_header'
)
{
file_put_contents
(
'/etc/postfix/nested_header_checks'
,
$content
);
$app
->
log
(
"Writing /etc/postfix/nested_header_checks"
,
LOGLEVEL_DEBUG
);
$restart
=
true
;
}
if
(
$type
==
'body'
)
{
file_put_contents
(
'/etc/postfix/body_checks'
,
$content
);
$app
->
log
(
"Writing /etc/postfix/body_checks"
,
LOGLEVEL_DEBUG
);
$restart
=
true
;
}
}
...
...
@@ -122,23 +128,28 @@ class postfix_filter_plugin {
if
(
$type
==
'header'
)
{
file_put_contents
(
'/etc/postfix/header_checks'
,
$content
);
$app
->
log
(
"Writing /etc/postfix/header_checks"
,
LOGLEVEL_DEBUG
);
$restart
=
true
;
}
if
(
$type
==
'mime_header'
)
{
file_put_contents
(
'/etc/postfix/mime_header_checks'
,
$content
);
$app
->
log
(
"Writing /etc/postfix/mime_header_checks"
,
LOGLEVEL_DEBUG
);
$restart
=
true
;
}
if
(
$type
==
'nested_header'
)
{
file_put_contents
(
'/etc/postfix/nested_header_checks'
,
$content
);
$app
->
log
(
"Writing /etc/postfix/nested_header_checks"
,
LOGLEVEL_DEBUG
);
$restart
=
true
;
}
if
(
$type
==
'body'
)
{
file_put_contents
(
'/etc/postfix/body_checks'
,
$content
);
$app
->
log
(
"Writing /etc/postfix/body_checks"
,
LOGLEVEL_DEBUG
);
$restart
=
true
;
}
}
if
(
$restart
)
exec
(
'postfix reload'
);
}
function
delete
(
$event_name
,
$data
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment