Hi, in my osticket settings under our main email account, I am trying to save the port to 465 in the 'Sending Email via SMTP' but it will not save. It just spins and spins. The only port it is allowing is port 25.
We are being told by our ISP that this port should be on 465 due to customers not getting their emails via the ticket system. And that port 25 is obsolete, and port 465 is more secure.
Any suggestions on how to make it save?
SMTP not allowing for port 465
Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance. The more information you give us the better we will be able to assist you. Thank you.
Environment details?
Version of osTicket?
Dang, I keep forgetting to do that.
Server Information
osTicket Version v1.12 (a076918) — Up to date
Web Server Software Apache/2.4.27 (Ubuntu)
MySQL Version 5.7.26
PHP Version 7.0.33-1+ubuntu16.04.1+deb.sury.org+1
- Edited
Are you running mod_security or SELinux?
Looks like something is prohibiting AJAX.
Can you provide a screen shot of how you have the email configured in osTicket? (feel free to blot out the domain or change it to "domain".
That is my exact setup and when I change the port 25 to 465 it wont save. Other aspects of the page, will allow stuff to be saved. Could it be testing something?
We do not support nginx as it does not work out of the box with osTicket and requires numerous configuration tweaks. It's like that AJAX is misbehaving under nginx. Also you didn't answer this: Are you running mod_security or SELinux?
- Edited
ntozier I'm sorry, I mis spoke. We are using apache on this server. And we are not running mod_security or SELinux on this server.
Any other suggestions I might want to try?
Thanks!
On the webserver can you try opening a command prompt (or SSHing) and then try testing mail.
telnet smtp.dreamhost.com 465
and report the result.
@ntozier
root@ubuntu:~# telnet smtp.dreamhost.com 465
Trying 64.90.62.162...
Connected to smtp.dreamhost.com.
Escape character is ']'.
That is what it is showing.
Once you are looking at that:
type EHLO
and hit Enter.
type mail from: <your_name@yourdomain.com>
and hit Enter.
type rcpt to: <recipient@recipientdomain.com>
and hit Enter.
type data
and hit Enter.
type Subject: <a subject here>
and hit Enter.
type This is a test message sent from telnet.
and press Enter.
type .
and hit Enter.
This should generate a email from your_name@yourdomain.com to recipient@recipientdomain.com. So obviously change those to your address.
@ntozier
I entered the EHLO and hit enter, works fine
But when I do the mail from: email@ourdomain.com and hit enter, I get this error message..
'Connection closed by foreign host.'
Not sure what that means. but I cannot get past that point.
My guess is that the remote port detects that you are not using SSL and closes the connection.
You could use openssl to test the connection... but I think that the problem is not the connection.
In the SMTP hostname try ssl:\smtp.dreamhost.com and see if that helps.
@ntozier
I tried that setting and got this error.
Failed to connect to ssl:\smtp.dreamhost.com:465 [SMTP: Failed to connect socket: php_network_getaddresses: getaddrinfo failed: Name or service not known (code: -1, response: )]
Danielc1234 ssl:\smtp
Ooops typo. That should read ssl:\\smtp.dreamhost.com
@ntozier
Same error using that setting.
Failed to connect to ssl:\smtp.dreamhost.com:465 [SMTP: Failed to connect socket: php_network_getaddresses: getaddrinfo failed: Name or service not known (code: -1, response: )]
Danielc1234 Failed to connect to ssl:\smtp.dreamhost.
it appears to still be missing the second \
@ntozier
Tried both ways, still getting the same error. ?
- Edited
Check your mailserver's connection logs and your webserver's connection logs to see if it's even attempting a connection. Any connection errors should appear there as well.
Cheers.
Did you try tls://smtp.dreamhost.com ?