New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email sending issues. #2628

Closed
nickmacwiz opened this Issue Oct 6, 2015 · 76 comments

Comments

Projects
None yet
@nickmacwiz

nickmacwiz commented Oct 6, 2015

Unable to log in. Check SMTP settings.

Sending Email via SMTP
authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Ready to start TLS)]

@ntozier

This comment has been minimized.

Show comment
Hide comment
@ntozier

ntozier Oct 6, 2015

Contributor

version of osTicket?
Your mail server is failing your credentials.

Contributor

ntozier commented Oct 6, 2015

version of osTicket?
Your mail server is failing your credentials.

@nickmacwiz

This comment has been minimized.

Show comment
Hide comment
@nickmacwiz

nickmacwiz Oct 6, 2015

1.9.12

I am using gmail and the fetching is working fine just a problem with the sending. I moved osTicket from an old windows server to a new one and the issue is only on the new server.

nickmacwiz commented Oct 6, 2015

1.9.12

I am using gmail and the fetching is working fine just a problem with the sending. I moved osTicket from an old windows server to a new one and the issue is only on the new server.

@ntozier

This comment has been minimized.

Show comment
Hide comment
@ntozier

ntozier Oct 6, 2015

Contributor

I seem to recall someone else mentioning that there was a bug with php 5.6, what version are you running?

Contributor

ntozier commented Oct 6, 2015

I seem to recall someone else mentioning that there was a bug with php 5.6, what version are you running?

@nickmacwiz

This comment has been minimized.

Show comment
Hide comment
@nickmacwiz

nickmacwiz Oct 6, 2015

5.6

Should i try removing 5.6 and installing 5.5

nickmacwiz commented Oct 6, 2015

5.6

Should i try removing 5.6 and installing 5.5

@ntozier

This comment has been minimized.

Show comment
Hide comment
@ntozier

ntozier Oct 6, 2015

Contributor

I'd try that first.

Contributor

ntozier commented Oct 6, 2015

I'd try that first.

@nickmacwiz

This comment has been minimized.

Show comment
Hide comment
@nickmacwiz

nickmacwiz Oct 6, 2015

It worked. Thanks

nickmacwiz commented Oct 6, 2015

It worked. Thanks

@nickmacwiz nickmacwiz closed this Oct 6, 2015

@greezybacon

This comment has been minimized.

Show comment
Hide comment
@greezybacon

greezybacon Oct 12, 2015

Member

I think we should keep this open and work to address the issue on PHP 5.6. As it becomes more widely used, the issue is going to become a larger issue

Member

greezybacon commented Oct 12, 2015

I think we should keep this open and work to address the issue on PHP 5.6. As it becomes more widely used, the issue is going to become a larger issue

@infectormp

This comment has been minimized.

Show comment
Hide comment
@infectormp

infectormp Oct 12, 2015

I not have SMTP problem with PHP 5.6 @ linux host. Look like it's windows specific problem.

infectormp commented Oct 12, 2015

I not have SMTP problem with PHP 5.6 @ linux host. Look like it's windows specific problem.

@nickmacwiz

This comment has been minimized.

Show comment
Hide comment
@nickmacwiz

nickmacwiz Oct 12, 2015

just to keep in mind. I am using Windows Server 2008 R2 64bit. Currently I am running 3 different versions of PHP 5.4, 5.5 and 5.6 on this server and have different websites use different versions because some web apps have issues with things on one version of PHP over another. While this could be an application issue it is also possible that the issue is with PHP 5.6 for Windows.

nickmacwiz commented Oct 12, 2015

just to keep in mind. I am using Windows Server 2008 R2 64bit. Currently I am running 3 different versions of PHP 5.4, 5.5 and 5.6 on this server and have different websites use different versions because some web apps have issues with things on one version of PHP over another. While this could be an application issue it is also possible that the issue is with PHP 5.6 for Windows.

@jdelhome3578

This comment has been minimized.

Show comment
Hide comment
@jdelhome3578

jdelhome3578 Oct 12, 2015

Contributor

@greezybacon this sounds the same as #2604. I believe that I have narrowed down the problem to this http://php.net/manual/en/migration56.openssl.php

Contributor

jdelhome3578 commented Oct 12, 2015

@greezybacon this sounds the same as #2604. I believe that I have narrowed down the problem to this http://php.net/manual/en/migration56.openssl.php

@greezybacon

This comment has been minimized.

Show comment
Hide comment
@greezybacon

greezybacon Oct 20, 2015

Member

Would anyone have the opportunity to test again with the tip of the develop-next branch? The SMTP library was upgraded and I'm wondering if the new version has any bearing on the issue.

Member

greezybacon commented Oct 20, 2015

Would anyone have the opportunity to test again with the tip of the develop-next branch? The SMTP library was upgraded and I'm wondering if the new version has any bearing on the issue.

@nickmacwiz

This comment has been minimized.

Show comment
Hide comment
@nickmacwiz

nickmacwiz Oct 20, 2015

Not sure about everyone else but we use osticket in a live environment and also use the eticket app that requires us to use only compatible versions.

Sincerely,

Nicholas Ruebel

Sent from my iPhone 6 Plus

On Oct 20, 2015, at 7:45 AM, Jared Hancock notifications@github.com wrote:

Would anyone have the opportunity to test again with the tip of the develop-next branch? The SMTP library was upgraded and I'm wondering if the new version has any bearing on the issue.


Reply to this email directly or view it on GitHub.

nickmacwiz commented Oct 20, 2015

Not sure about everyone else but we use osticket in a live environment and also use the eticket app that requires us to use only compatible versions.

Sincerely,

Nicholas Ruebel

Sent from my iPhone 6 Plus

On Oct 20, 2015, at 7:45 AM, Jared Hancock notifications@github.com wrote:

Would anyone have the opportunity to test again with the tip of the develop-next branch? The SMTP library was upgraded and I'm wondering if the new version has any bearing on the issue.


Reply to this email directly or view it on GitHub.

@infectormp

This comment has been minimized.

Show comment
Hide comment
@infectormp

infectormp Oct 20, 2015

I use upgraded SMTP library (Net_SMTP v1.7.1) and not hava any problem.

infectormp commented Oct 20, 2015

I use upgraded SMTP library (Net_SMTP v1.7.1) and not hava any problem.

@nickmacwiz

This comment has been minimized.

Show comment
Hide comment
@nickmacwiz

nickmacwiz Oct 20, 2015

Which version of php are you using?

Sincerely,

Nicholas Ruebel

Sent from my iPhone 6 Plus

On Oct 20, 2015, at 9:34 AM, infectormp notifications@github.com wrote:

I use upgraded SMTP library (Net_SMTP v1.7.1) and not hava any problem.


Reply to this email directly or view it on GitHub.

nickmacwiz commented Oct 20, 2015

Which version of php are you using?

Sincerely,

Nicholas Ruebel

Sent from my iPhone 6 Plus

On Oct 20, 2015, at 9:34 AM, infectormp notifications@github.com wrote:

I use upgraded SMTP library (Net_SMTP v1.7.1) and not hava any problem.


Reply to this email directly or view it on GitHub.

@infectormp

This comment has been minimized.

Show comment
Hide comment
@infectormp

infectormp Oct 20, 2015

i use 5.6.14 and openssl 1.02d

infectormp commented Oct 20, 2015

i use 5.6.14 and openssl 1.02d

@greezybacon

This comment has been minimized.

Show comment
Hide comment
@greezybacon

greezybacon Oct 20, 2015

Member

@infectormp could you just verify that you're using Windows with PHP 5.6 and you had an issue before the upgrade to SMTP 1.7.1?

Member

greezybacon commented Oct 20, 2015

@infectormp could you just verify that you're using Windows with PHP 5.6 and you had an issue before the upgrade to SMTP 1.7.1?

@infectormp

This comment has been minimized.

Show comment
Hide comment
@infectormp

infectormp Oct 20, 2015

@greezybacon sorry, i see this is windows related bug. I not using Windows at my server enviroment and can't verify issue.

infectormp commented Oct 20, 2015

@greezybacon sorry, i see this is windows related bug. I not using Windows at my server enviroment and can't verify issue.

@nickmacwiz

This comment has been minimized.

Show comment
Hide comment
@nickmacwiz

nickmacwiz Oct 20, 2015

We have maintainance scheduled for this weekend. I will try and boot a duplicate virtual server machine and test it.

Sincerely,

Nicholas Ruebel

Sent from my iPhone 6 Plus

On Oct 20, 2015, at 11:20 AM, infectormp notifications@github.com wrote:

@greezybacon sorry, i see this is windows related bug. I not using Windows at my server enviroment and can't verify issue.


Reply to this email directly or view it on GitHub.

nickmacwiz commented Oct 20, 2015

We have maintainance scheduled for this weekend. I will try and boot a duplicate virtual server machine and test it.

Sincerely,

Nicholas Ruebel

Sent from my iPhone 6 Plus

On Oct 20, 2015, at 11:20 AM, infectormp notifications@github.com wrote:

@greezybacon sorry, i see this is windows related bug. I not using Windows at my server enviroment and can't verify issue.


Reply to this email directly or view it on GitHub.

@jdelhome3578

This comment has been minimized.

Show comment
Hide comment
@jdelhome3578

jdelhome3578 Oct 20, 2015

Contributor

@greezybacon I have a windows environment with php 5.6.14 I receive authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 SMTP server ready)] as an error message. If I use php 5.5.28 it works fine.

Contributor

jdelhome3578 commented Oct 20, 2015

@greezybacon I have a windows environment with php 5.6.14 I receive authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 SMTP server ready)] as an error message. If I use php 5.5.28 it works fine.

@greezybacon

This comment has been minimized.

Show comment
Hide comment
@greezybacon

greezybacon Oct 20, 2015

Member

I use upgraded SMTP library (Net_SMTP v1.7.1) and not hava any problem.

So this then has absolutely nothing to do with the issue at hand?

Member

greezybacon commented Oct 20, 2015

I use upgraded SMTP library (Net_SMTP v1.7.1) and not hava any problem.

So this then has absolutely nothing to do with the issue at hand?

@jdelhome3578

This comment has been minimized.

Show comment
Hide comment
@jdelhome3578

jdelhome3578 Oct 20, 2015

Contributor

@greezybacon As I stated earlier I think it has something to do with the changes made in the php code http://php.net/manual/en/migration56.openssl.php

PHP now requires peer verification and I have tried a lot of thing but can not figure out how to get it setup on my Windows system.

Contributor

jdelhome3578 commented Oct 20, 2015

@greezybacon As I stated earlier I think it has something to do with the changes made in the php code http://php.net/manual/en/migration56.openssl.php

PHP now requires peer verification and I have tried a lot of thing but can not figure out how to get it setup on my Windows system.

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Oct 29, 2015

This seems not to be only a windows problem. I had a similar problem with some of my osticket 1.9.12 instances when I switch to php 5.6.

They are running on a hosted server with debian squeeze. The used SMTP Port is 587. First I didn't noticed that because osticket seems to have a workaround sending the emails in this case instead via the php mailer.

In the system logs of osticket were a lots of this errrors:
SMTP: Invalid response code received from server (code: 550, response: relay not permitted)

When I tried to save the mail server credentials again I got this error in the gui:
authentication failure [SMTP: STARTTLS failed (code: 220, response: TLS go ahead)]

Switching back to php 5.5 solves this issue.

ghost commented Oct 29, 2015

This seems not to be only a windows problem. I had a similar problem with some of my osticket 1.9.12 instances when I switch to php 5.6.

They are running on a hosted server with debian squeeze. The used SMTP Port is 587. First I didn't noticed that because osticket seems to have a workaround sending the emails in this case instead via the php mailer.

In the system logs of osticket were a lots of this errrors:
SMTP: Invalid response code received from server (code: 550, response: relay not permitted)

When I tried to save the mail server credentials again I got this error in the gui:
authentication failure [SMTP: STARTTLS failed (code: 220, response: TLS go ahead)]

Switching back to php 5.5 solves this issue.

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Oct 30, 2015

Disabling the peer verification seems also to solve the problem (using php 5.6):

pear/Net_SMTP#14

ghost commented Oct 30, 2015

Disabling the peer verification seems also to solve the problem (using php 5.6):

pear/Net_SMTP#14

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Oct 30, 2015

This issue also occurs in osticket 1.10 (latest tip).

ghost commented Oct 30, 2015

This issue also occurs in osticket 1.10 (latest tip).

@Hannibal226

This comment has been minimized.

Show comment
Hide comment
@Hannibal226

Hannibal226 Oct 30, 2015

@mfelber
Nope not for me.
So I recognized this Problem now, too. Quiet late, but anway.
We can recieve/fetch email fine and sending in domain, too. but out of that not.

I'm using also PHP 5.6 and STMP/587 with authentication.

Would be pleased to see a wordaround because none of them helped here.
I'm not sure if a downgrade makes so much sense as 1.10 is close, same as PHP7.

CHEERS!

Hannibal226 commented Oct 30, 2015

@mfelber
Nope not for me.
So I recognized this Problem now, too. Quiet late, but anway.
We can recieve/fetch email fine and sending in domain, too. but out of that not.

I'm using also PHP 5.6 and STMP/587 with authentication.

Would be pleased to see a wordaround because none of them helped here.
I'm not sure if a downgrade makes so much sense as 1.10 is close, same as PHP7.

CHEERS!

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Oct 30, 2015

@Hannibal226 In my case the workaround with replacing

$this->_socket_options =$socket_options;

to

$this->_socket_options = array('ssl' => array('verify_peer_name' => false));

in /include/pear/Net/SMTP.php works fine.

But I heared from somebody else that this workaround doesn't help him too (like in your case).

Do you still get the same error? What OS do you use?

Why do you mention 1.10 and PHP7? 1.10 has the same problem yet and PHP 7 seems not be recommended soon..

ghost commented Oct 30, 2015

@Hannibal226 In my case the workaround with replacing

$this->_socket_options =$socket_options;

to

$this->_socket_options = array('ssl' => array('verify_peer_name' => false));

in /include/pear/Net/SMTP.php works fine.

But I heared from somebody else that this workaround doesn't help him too (like in your case).

Do you still get the same error? What OS do you use?

Why do you mention 1.10 and PHP7? 1.10 has the same problem yet and PHP 7 seems not be recommended soon..

@ShaneOss

This comment has been minimized.

Show comment
Hide comment
@ShaneOss

ShaneOss May 11, 2016

If it were PHPMailer could use the following..

    $mail->SMTPOptions = array(
        'ssl' => array(
            'verify_peer' => false,
            'verify_peer_name' => false,
            'allow_self_signed' => true
        )
    );

ShaneOss commented May 11, 2016

If it were PHPMailer could use the following..

    $mail->SMTPOptions = array(
        'ssl' => array(
            'verify_peer' => false,
            'verify_peer_name' => false,
            'allow_self_signed' => true
        )
    );
@Pooleyy

This comment has been minimized.

Show comment
Hide comment
@Pooleyy

Pooleyy Jun 23, 2016

I was also getting
authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Ready to start TLS)]

I've updated my SMTP.php and Socket.php /include/pear/Net - to the latest versions.
pear.php.net/package/Net_SMTP/download
pear.php.net/package/Net_Socket/download

Now I'm getting another error
authentication failure [SMTP: Invalid response code received from server (code: 535, response: 5.7.3 Authentication unsuccessful)]

osTicket Core, v1.9.14
PHP Version 5.6.19

Pooleyy commented Jun 23, 2016

I was also getting
authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Ready to start TLS)]

I've updated my SMTP.php and Socket.php /include/pear/Net - to the latest versions.
pear.php.net/package/Net_SMTP/download
pear.php.net/package/Net_Socket/download

Now I'm getting another error
authentication failure [SMTP: Invalid response code received from server (code: 535, response: 5.7.3 Authentication unsuccessful)]

osTicket Core, v1.9.14
PHP Version 5.6.19

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Jun 23, 2016

Try to use port 465 for SMTP and add "ssl://" before the server entry:

smtp

ghost commented Jun 23, 2016

Try to use port 465 for SMTP and add "ssl://" before the server entry:

smtp

@Pooleyy

This comment has been minimized.

Show comment
Hide comment
@Pooleyy

Pooleyy Jun 23, 2016

I've tried a different email with Authentication Required: yes
this works fine. For some reason the other email doesn't authenticate and therefore fails.
Strange - but using an office 365 liscenced email works fine.

Pooleyy commented Jun 23, 2016

I've tried a different email with Authentication Required: yes
this works fine. For some reason the other email doesn't authenticate and therefore fails.
Strange - but using an office 365 liscenced email works fine.

@ntozier

This comment has been minimized.

Show comment
Hide comment
@ntozier

ntozier Jun 23, 2016

Contributor

This:
authentication failure [SMTP: Invalid response code received from server (code: 535, response: 5.7.3 Authentication unsuccessful)]

usually indicates that authentication was unsuccessful. I would think that this would be at the remote end personally.

Contributor

ntozier commented Jun 23, 2016

This:
authentication failure [SMTP: Invalid response code received from server (code: 535, response: 5.7.3 Authentication unsuccessful)]

usually indicates that authentication was unsuccessful. I would think that this would be at the remote end personally.

@robintoy

This comment has been minimized.

Show comment
Hide comment
@robintoy

robintoy Jun 23, 2016

You have two ways of getting this to work from an administration point of view....

  1. You use authentication
  2. You remove authentication like we did and restrict access to your SMTP server via IP address and sending domain.
    smtp settings

robintoy commented Jun 23, 2016

You have two ways of getting this to work from an administration point of view....

  1. You use authentication
  2. You remove authentication like we did and restrict access to your SMTP server via IP address and sending domain.
    smtp settings
@robintoy

This comment has been minimized.

Show comment
Hide comment
@robintoy

robintoy Jun 23, 2016

As I was posting @Pooleyy I noticed you talk about Office 365.

You say a licensed mailbox works??
Are you trying to use a "Shared Mailbox" ??

robintoy commented Jun 23, 2016

As I was posting @Pooleyy I noticed you talk about Office 365.

You say a licensed mailbox works??
Are you trying to use a "Shared Mailbox" ??

@Pooleyy

This comment has been minimized.

Show comment
Hide comment
@Pooleyy

Pooleyy Jun 23, 2016

Ahh @robintoy it could be Shared yes.
But... I have the same email address set up on an old osTickets and it works fine. With no Authentication like you have suggested above.

Pooleyy commented Jun 23, 2016

Ahh @robintoy it could be Shared yes.
But... I have the same email address set up on an old osTickets and it works fine. With no Authentication like you have suggested above.

@robintoy

This comment has been minimized.

Show comment
Hide comment
@robintoy

robintoy Jun 23, 2016

Hi @Pooleyy
you will not be able to use Office 365 like our configuration as you do not have access to Microsoft's Exchange cluster directly to add the right rules as required.

With a shared mailbox MS did an update a while ago stopping authentication to it, the only way to auth against a shared mailbox is with one of the users that has access to the mail box

robintoy commented Jun 23, 2016

Hi @Pooleyy
you will not be able to use Office 365 like our configuration as you do not have access to Microsoft's Exchange cluster directly to add the right rules as required.

With a shared mailbox MS did an update a while ago stopping authentication to it, the only way to auth against a shared mailbox is with one of the users that has access to the mail box

@Pooleyy

This comment has been minimized.

Show comment
Hide comment
@Pooleyy

Pooleyy Jun 23, 2016

Hi @robintoy
I see, thanks for your input - appreciated.
I've solved it by using another email now. It's just odd how it still works on my old osTickets.
Cheers! Sam

Pooleyy commented Jun 23, 2016

Hi @robintoy
I see, thanks for your input - appreciated.
I've solved it by using another email now. It's just odd how it still works on my old osTickets.
Cheers! Sam

@Nordi-EU

This comment has been minimized.

Show comment
Hide comment
@Nordi-EU

Nordi-EU Aug 13, 2016

I'm having the same problems with PHP 5.6 and v1.9.14.

This problem makes osTicket unusable for me. Almost every email provider is enforcing a STARTTLS connection and I already tried Inbox.lv and Zoho.com without any success.

Also changing $this->_socket_options =$socket_options; did not help. It only created a new error message: authentication failure [SMTP: Invalid response code received from server (code: 535, response: Incorrect authentication data)]

(but username and password are correct).

I can't understand how such problem can exist for almost a year and why its still not fixed.

Nordi-EU commented Aug 13, 2016

I'm having the same problems with PHP 5.6 and v1.9.14.

This problem makes osTicket unusable for me. Almost every email provider is enforcing a STARTTLS connection and I already tried Inbox.lv and Zoho.com without any success.

Also changing $this->_socket_options =$socket_options; did not help. It only created a new error message: authentication failure [SMTP: Invalid response code received from server (code: 535, response: Incorrect authentication data)]

(but username and password are correct).

I can't understand how such problem can exist for almost a year and why its still not fixed.

@cosmospham

This comment has been minimized.

Show comment
Hide comment
@cosmospham

cosmospham Aug 13, 2016

I use:

  • this hack from d48499b
  • change in __construct function:
$this->socket_options = array('ssl' => array(
            'verify_peer' => false,
            'verify_peer_name' => false,
            'allow_self_signed' => true
        ));
  • set ssl:// in config
  • use port for ssl

It worked.

PHP 5.6.24-0+deb8u1

cosmospham commented Aug 13, 2016

I use:

  • this hack from d48499b
  • change in __construct function:
$this->socket_options = array('ssl' => array(
            'verify_peer' => false,
            'verify_peer_name' => false,
            'allow_self_signed' => true
        ));
  • set ssl:// in config
  • use port for ssl

It worked.

PHP 5.6.24-0+deb8u1

@vcongion

This comment has been minimized.

Show comment
Hide comment
@vcongion

vcongion Aug 23, 2016

I currently have 30+ emails in our mail queue that are not sending out to Google because Google is rejecting emails. Does anyone have a stable fix for this?

vcongion commented Aug 23, 2016

I currently have 30+ emails in our mail queue that are not sending out to Google because Google is rejecting emails. Does anyone have a stable fix for this?

@awjans-ae

This comment has been minimized.

Show comment
Hide comment
@awjans-ae

awjans-ae Sep 27, 2016

I'm running debian and php5.6 and had the same problem. Instead of changing the code in the Net_SMTP constructor, I changed the two calls to instantiate the Net_SMTP class in include/pear/Mail/smtpmx.php and include/pear/Mail/smtp.php to pass in the socket options. I believe that is a better fix. And this is a PEAR issue, not an osTicket issue.

awjans-ae commented Sep 27, 2016

I'm running debian and php5.6 and had the same problem. Instead of changing the code in the Net_SMTP constructor, I changed the two calls to instantiate the Net_SMTP class in include/pear/Mail/smtpmx.php and include/pear/Mail/smtp.php to pass in the socket options. I believe that is a better fix. And this is a PEAR issue, not an osTicket issue.

@blackyzero

This comment has been minimized.

Show comment
Hide comment
@blackyzero

blackyzero Nov 5, 2016

i am getting same issue with latest release 1.10
unable to enable SMTP authentication, always getting STARTTLS issue.

also trying with all above suggestion, but not working :(

blackyzero commented Nov 5, 2016

i am getting same issue with latest release 1.10
unable to enable SMTP authentication, always getting STARTTLS issue.

also trying with all above suggestion, but not working :(

@indramgl

This comment has been minimized.

Show comment
Hide comment
@indramgl

indramgl Dec 7, 2016

I agreed with @cosmospham using d48499b

His method worked on version 1.10 / 1.9.15.

If this can be pushed to the main branch, that will be great.

Server Information
osTicket Version v1.9.15 — Up to date
Web Server Software Apache/2.4.23 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4
MySQL Version 5.5.52
PHP Version 5.6.27

indramgl commented Dec 7, 2016

I agreed with @cosmospham using d48499b

His method worked on version 1.10 / 1.9.15.

If this can be pushed to the main branch, that will be great.

Server Information
osTicket Version v1.9.15 — Up to date
Web Server Software Apache/2.4.23 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4
MySQL Version 5.5.52
PHP Version 5.6.27

@jdelhome3578

This comment has been minimized.

Show comment
Hide comment
@jdelhome3578

jdelhome3578 Dec 8, 2016

Contributor

@protich fixed this with 4f68aeb

Contributor

jdelhome3578 commented Dec 8, 2016

@protich fixed this with 4f68aeb

@rayfoss rayfoss closed this Dec 8, 2016

@milindras

This comment has been minimized.

Show comment
Hide comment
@milindras

milindras Feb 26, 2017

Hi This is still not working for me. I use 1 and 1 UK hosting with TLS 587.

Any help?

milindras commented Feb 26, 2017

Hi This is still not working for me. I use 1 and 1 UK hosting with TLS 587.

Any help?

@ntozier

This comment has been minimized.

Show comment
Hide comment
@ntozier

ntozier Feb 27, 2017

Contributor

I would recommend that you talk to 1and1 and ask them why its not working.

Also see:
#3715
and
http://osticket.com/forum/discussion/87243/resolved-smtp-connection-error-for-1and1-server

Contributor

ntozier commented Feb 27, 2017

I would recommend that you talk to 1and1 and ask them why its not working.

Also see:
#3715
and
http://osticket.com/forum/discussion/87243/resolved-smtp-connection-error-for-1and1-server

@cendolpuluit

This comment has been minimized.

Show comment
Hide comment
@cendolpuluit

cendolpuluit Jun 29, 2017

need some urgent assistance ...

i cant save smtp (gmail) at my helpdesk osticket.. below is the attachment of my version.
is it related to php ver 5.6 also ? tq

error1
error2

cendolpuluit commented Jun 29, 2017

need some urgent assistance ...

i cant save smtp (gmail) at my helpdesk osticket.. below is the attachment of my version.
is it related to php ver 5.6 also ? tq

error1
error2

@cendolpuluit

This comment has been minimized.

Show comment
Hide comment
@cendolpuluit

cendolpuluit Jun 29, 2017

one more question , im using in windows server 2008 r2 standard 64bit environment .. is there any configuration must do to smtp server function (build in with windows) .. sorry im really newbie with this osticket configuration. seems im taking this from other klik ...
error3

cendolpuluit commented Jun 29, 2017

one more question , im using in windows server 2008 r2 standard 64bit environment .. is there any configuration must do to smtp server function (build in with windows) .. sorry im really newbie with this osticket configuration. seems im taking this from other klik ...
error3

@cendolpuluit

This comment has been minimized.

Show comment
Hide comment
@cendolpuluit

cendolpuluit Jun 29, 2017

hope someone help me. thanks

cendolpuluit commented Jun 29, 2017

hope someone help me. thanks

@ntozier

This comment has been minimized.

Show comment
Hide comment
@ntozier

ntozier Jun 29, 2017

Contributor

"SMTP: Failed to connect: No connection could be made because the target machine actively refused it"
The remote server is refusing the connection.

In SMTP Virtual Mail Server feature in windows the server generally needs permission to relay. Go back to that screen that you posted. Click on the Access tab. Click Relay, and add the IP address of the webserver. Also make sure that the firewall allows connection on the port that you are using.

Contributor

ntozier commented Jun 29, 2017

"SMTP: Failed to connect: No connection could be made because the target machine actively refused it"
The remote server is refusing the connection.

In SMTP Virtual Mail Server feature in windows the server generally needs permission to relay. Go back to that screen that you posted. Click on the Access tab. Click Relay, and add the IP address of the webserver. Also make sure that the firewall allows connection on the port that you are using.

@cendolpuluit

This comment has been minimized.

Show comment
Hide comment
@cendolpuluit

cendolpuluit Jun 29, 2017

dear ntozier ,

seems im newbie.. sorry... i've once open the ip... i see ip somelike this 127.0.0.1 .. i don know where its come..

cendolpuluit commented Jun 29, 2017

dear ntozier ,

seems im newbie.. sorry... i've once open the ip... i see ip somelike this 127.0.0.1 .. i don know where its come..

@cendolpuluit

This comment has been minimized.

Show comment
Hide comment
@cendolpuluit

cendolpuluit Jun 29, 2017

like this right?

error1

cendolpuluit commented Jun 29, 2017

like this right?

error1

@ntozier

This comment has been minimized.

Show comment
Hide comment
@ntozier

ntozier Jun 29, 2017

Contributor

I do not know what your IP addresses are, so I can't really answer as to if it's correct. I presume that your webserver is 172.21.9.40, and that you are running the SMTP Virtual Server on the same machine? Also check your firewall. :)

Contributor

ntozier commented Jun 29, 2017

I do not know what your IP addresses are, so I can't really answer as to if it's correct. I presume that your webserver is 172.21.9.40, and that you are running the SMTP Virtual Server on the same machine? Also check your firewall. :)

@cendolpuluit

This comment has been minimized.

Show comment
Hide comment
@cendolpuluit

cendolpuluit Jun 29, 2017

yes , osticket all in this server .. yes smtp virtual server also same machine... oracle sun blade machine.. running windows server 2008 r2 standard 64bit... after i include the server(machine) ip in relay and test save the smtp setting for ndccmalaysia@gmail.com also failed.. use 4 diff port , 465 , 443 , 25 , 587

cendolpuluit commented Jun 29, 2017

yes , osticket all in this server .. yes smtp virtual server also same machine... oracle sun blade machine.. running windows server 2008 r2 standard 64bit... after i include the server(machine) ip in relay and test save the smtp setting for ndccmalaysia@gmail.com also failed.. use 4 diff port , 465 , 443 , 25 , 587

@cendolpuluit

This comment has been minimized.

Show comment
Hide comment
@cendolpuluit

cendolpuluit Jun 29, 2017

i can see SMTP tick in firewall windowss.. but this machine also installed with kaspersky. i don know whether firewall being control by kaspersky as well..

error2

cendolpuluit commented Jun 29, 2017

i can see SMTP tick in firewall windowss.. but this machine also installed with kaspersky. i don know whether firewall being control by kaspersky as well..

error2

@jgomez4000

This comment has been minimized.

Show comment
Hide comment
@jgomez4000

jgomez4000 Apr 13, 2018

I was having the same problem (STARTTLS error) connecting to smtp.gmail.com on osTicket 1.10.1.
Host: Windows Server 2012 (IIS 8.5), PHP 7, MySQL (5.7).

Adding the option 'verify_peer' => false to 'ssl' socket options fixed it.
In the file include/pear/Net/SMTP.php, in the construct function change:

// Turn off peer name verification by default\n
if (!$socket_options)
    $socket_options = array(
        'ssl' => array('verify_peer_name' => false)
    );

for

// Turn off peer name verification by default\n
if (!$socket_options)
    $socket_options = array(
        'ssl' => array('verify_peer_name' => false, 'verify_peer' => false)
    );

jgomez4000 commented Apr 13, 2018

I was having the same problem (STARTTLS error) connecting to smtp.gmail.com on osTicket 1.10.1.
Host: Windows Server 2012 (IIS 8.5), PHP 7, MySQL (5.7).

Adding the option 'verify_peer' => false to 'ssl' socket options fixed it.
In the file include/pear/Net/SMTP.php, in the construct function change:

// Turn off peer name verification by default\n
if (!$socket_options)
    $socket_options = array(
        'ssl' => array('verify_peer_name' => false)
    );

for

// Turn off peer name verification by default\n
if (!$socket_options)
    $socket_options = array(
        'ssl' => array('verify_peer_name' => false, 'verify_peer' => false)
    );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment