Helpdesk for my helpdesk software
Moderator: mkoch227
tombullock92
Posts: 9 Joined: Wed Mar 21, 2012 1:56 pm
Post
by tombullock92 » Tue Apr 10, 2012 1:23 pm
Hi,
Im trying to setup SMTP with my Hesk installation but I keep getting the error:
Code: Select all
"Could not connect to the host "smtp.domain.com":"
Resolving SMTP server domain "smtp.domain.com"...
Connecting to host address "10.0.0.3" port 25...
I can ping smtp.domain.com from the actual webserver so I know it can reach it but for some reason Hesk can't
The webserver is internal.
Any ideas?
Thanks
Tom
Klemen
Site Admin
Posts: 10145 Joined: Fri Feb 11, 2005 4:04 pm
Post
by Klemen » Tue Apr 10, 2012 3:06 pm
Is the "smtp.domain.com" correct?
Is the port correct? Blocked by firewall?
Does the SMTP server require SSL or TLS?
Is the username/password correct?
Does your PHP allow connections via fsockopen?
tombullock92
Posts: 9 Joined: Wed Mar 21, 2012 1:56 pm
Post
by tombullock92 » Tue Apr 10, 2012 3:23 pm
Klemen wrote: Is the "smtp.domain.com" correct?
Yes
Klemen wrote: Is the port correct? Blocked by firewall?
No
Klemen wrote: Does the SMTP server require SSL or TLS?
No
Klemen wrote: Is the username/password correct?
Yes
Klemen wrote: Does your PHP allow connections via fsockopen?
Not sure, how would I check this?
Klemen
Site Admin
Posts: 10145 Joined: Fri Feb 11, 2005 4:04 pm
Post
by Klemen » Tue Apr 10, 2012 3:40 pm
If you add something like this in a PHP file (test.php) and open it in browser, does it throw an error or opens Google (or tries to redirect to a google local domain)?
Code: Select all
<?php
$fp = fsockopen("www.google.com", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
$out = "GET / HTTP/1.1\r\n";
$out .= "Host: www.google.com\r\n";
$out .= "Connection: Close\r\n\r\n";
fwrite($fp, $out);
while (!feof($fp)) {
echo fgets($fp, 128);
}
fclose($fp);
}
?>
Klemen
Site Admin
Posts: 10145 Joined: Fri Feb 11, 2005 4:04 pm
Post
by Klemen » Tue Apr 10, 2012 3:41 pm
And is "10.0.0.3" correct IP of your SMTP server?
tombullock92
Posts: 9 Joined: Wed Mar 21, 2012 1:56 pm
Post
by tombullock92 » Wed Apr 11, 2012 9:27 am
The test pages give this error:
Code: Select all
HTTP/1.1 302 Found Location: http://www.google.co.uk/ Cache-Control: private Content-Type: text/html; charset=UTF-8 Set-Cookie: PREF=ID=4eb852f62b0114aa:FF=0:TM=1334136346:LM=1334136346:S=Zp7-3IQuu5XtddP7; expires=Fri, 11-Apr-2014 09:25:46 GMT; path=/; domain=.google.com Set-Cookie: NID=58=YdOOwOO76w-83J5nlJEatfKW0P7hparEcn641_HL6X8tqMQZymBayS4HgzQoszXgC92gyadmKNBMlEUhez5WvEpiMNoxZTaD0ShiYsIvBwz4LVHIJ-PPS93uZW6s6Y3j; expires=Thu, 11-Oct-2012 09:25:46 GMT; path=/; domain=.google.com; HttpOnly P3P: CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info." Date: Wed, 11 Apr 2012 09:25:46 GMT Server: gws Content-Length: 221 X-XSS-Protection: 1; mode=block X-Frame-Options: SAMEORIGIN Connection: close
302 Moved
The document has moved here.
Yes, the server IP is correct.
Klemen
Site Admin
Posts: 10145 Joined: Fri Feb 11, 2005 4:04 pm
Post
by Klemen » Wed Apr 11, 2012 4:15 pm
Seems OK.
I'm afraid I'm out of ideas here. I would triple-check all settings but other than that I don't see a good reason why this wouldn't work on your server.
tombullock92
Posts: 9 Joined: Wed Mar 21, 2012 1:56 pm
Post
by tombullock92 » Wed Apr 11, 2012 5:07 pm
Its a strange one....The first time I installed it I couldnt get it to work but then I managed to figure it out but since reinstallating it, Ive forgot!
I'll keep working on it!