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
Zvonimir
ISPConfig 3
Commits
4dfacaa4
Commit
4dfacaa4
authored
Mar 10, 2014
by
Marius Cramer
Browse files
Fixed: FS#3357 - Wrong SMTP HELO for Microsoft Exchange (ispcmail.inc.php)
parent
7b938845
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/ispcmail.inc.php
View file @
4dfacaa4
...
...
@@ -219,7 +219,7 @@ class ispcmail {
*
*/
private
function
detectHelo
()
{
if
(
isset
(
$_SERVER
[
'HTTP_HOST'
]))
$this
->
smtp_helo
=
$_SERVER
[
'HTTP_HOST'
];
if
(
isset
(
$_SERVER
[
'HTTP_HOST'
]))
$this
->
smtp_helo
=
(
strpos
(
$_SERVER
[
'HTTP_HOST'
]
,
':'
)
!==
false
?
substr
(
$_SERVER
[
'HTTP_HOST'
],
0
,
strpos
(
$_SERVER
[
'HTTP_HOST'
],
':'
))
:
$_SERVER
[
'HTTP_HOST'
])
;
elseif
(
isset
(
$_SERVER
[
'SERVER_NAME'
]))
$this
->
smtp_helo
=
$_SERVER
[
'SERVER_NAME'
];
else
$this
->
smtp_helo
=
php_uname
(
'n'
);
if
(
$this
->
smtp_helo
==
''
)
$this
->
smtp_helo
=
'localhost'
;
...
...
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