Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now
  • Email cant send...
    Hi all
    i am on:
    Admin Panel
    Email Diagnostic.

    here i create a Sample email

    subject: osTicket test email
    body: osTicket test email

    say me: 

    Test email sent successfully to <jamiguel77@gmail.com>

    But never never arrive the email on the box: jamiguel77@gmail.com


    i see on Dashboard-> System Logs:

    Mailer Error

    Unable to email via SMTP:smtp.gmail.com:587 [swmanzana] Failed to set sender: swmanzana@gmail.com [SMTP: Invalid response code received from server (code: 530, response: 5.7.0 Must issue a STARTTLS command first. m127sm2019646itc.19 - gsmtp)]

    any advice?

    thanks

  • [resolved] SMTP with office 365 again
    Connect with openssl works:

     openssl s_client -crlf -connect smtp.office365.com:587 -starttls smtp
  • Not sending or receiving emails
    found a real solution. Had to search this forum a bit but found it!!!

    The problem IS in SMTP.php the file was not updated completely to incorporate php5.6.


    @Shaddana (sorry Shad for dragging you into this, but got to give you credit for the fix) found the problem in the SMTP.php config:
     
    I found in line 600 as follows :
            if ($tls && version_compare(PHP_VERSION, '5.1.0', '>=') &&
                extension_loaded('openssl') && isset($this->_esmtp['STARTTLS']) &&
                strncasecmp($this->host, 'ssl://', 6) !== 0)

    I modify to :
            if ($tls && version_compare(PHP_VERSION, '6.1.0', '>=') &&
                extension_loaded('openssl') && isset($this->_esmtp['STARTTLS']) &&
                strncasecmp($this->host, 'ssl://', 6) !== 0)

    It was in line 573 for me but, seems like a dev issue.....
  • Not sending or receiving emails
    So...
    1. Are you still using an outdated version? (1.9.12 when there have been multple maint versions, and a new version released since then)

    2. Have you read the threads linked in this thread recently? (specifically comment 4)

    3. Do you remember posting that you found a fix and posted it here?
    http://osticket.com/forum/discussion/87960/smtp-starttls-failed-solution#latest
  • Not sending or receiving emails
    @ntozier as per our prior conversation that you were so dismissive about.

    I posted the information you suggested I post... 7 months ago........ Your suggesting to get it working was to:

    "So that's actually why I suggested that you try PHP 5.5 instead. :)"

    Don't get me wrong I am more than happy to downgrade to a version that works with the application, but I find it very frustrating when the product advertises it works with (insert software version) but it really doesn't. 

    This is a dev problem. A search pulled up multiple threads with people dealing with the starttls error. Here is a link to the search http://osticket.com/forum/search?Search=STARTTLS+ All "solved" starttls errors solutions are to downgrade to a previous version of php. This is a solution non-the-less, but it does not mean php5.6 is compatible with your app.

    If you can get it to work with php5.6 SHOW ME A WORKABLE SOLUTION. Please prove me to be an idiot. I would rather have osticket working on php5.6 then to be proven right that osticket is not fully compatible with it.
  • Only php5.4-5.5 will work correctly with osticket
    I tend to disagree. It supports 5.6 like Clinton did with the Honduras coup or Benghazi..... With php 5.6 it will run the site, ldap, and most other things, but it will not properly link with the smtp function. I have browsed these forums and the internet for quite a while searching for the solution to the starttls error. It keeps coming back to the php version, in which people suggested editing the php.ini file amongst other php config files. I have done this. In the end the only solution I have found to work was to downgrade to php5.5 or 5.4. If there is workable solution to the starttls error with php5.6 please let me know and how to fix this issue.
  • Failed to configure Email SMTP settings
    Hi,
    i got the same issue on osTicket v1.9.15
    Also the mailserver i try to use doesn't support unsecure connections anymore.
    On Port 465 it takes a long time then it says Failed to connect to smtp.strato.de:465 [SMTP: Invalid response code received from server (code: -1, response: )]
    On port 587 it says authentication failure [SMTP: STARTTLS failed (code: 220, response: Ready to start TLS)]
    i tried matuha's approach to set the value the php version is compared to to 6.1.0, but it failed slightly different.
    (for version 1.9.15 it can be found at line 564 of /include/pear/Net/SMTP.php)
    On Port 465 again it takes a long time and then says Failed to connect to smtp.strato.de:465 [SMTP: Invalid response code received from server (code: -1, response: )]
    On port 587 it says authentication failure [SMTP: Invalid response
    code received from server (code: 538, response: 5.7.11 authentication failed, please try SSL/TLS
    Verschluesselung]
    I also tried experimental Bugfix #2628 by John Hunt committed Feb 17, 2016, but it results in the same messages as with matuha's approach.
  • Email Issues
    Hi,

    Here is our osTicket info:

    osTicket Versionv1.9.12 (19292ad)  Upgrade— v1.9.14 is available
    Web Server SoftwareApache
    MySQL Version5.5.42
    PHP Version5.6.17

    When an agent adds a message, our customers are not always receiving the email response.  Some customers do, and some do not.  Trying to track down the issue.

    We checked the mail logs, and the ones that do not get received, are not showing up in the mail logs.  The ones that do get recevied, do show up in the logs.  This implies an issue in osTicket not being able to send the email properly.....

    Right now we have email all using PHP Mail functions as we have never been able to get SMTP to configure properly for our email address.  The problem seems to be getting worse lately.  When I use the Diagnostics for email, our tests all work fine.

    I wanted to try to set up using SMTP directly in osTicket, but am not able to.

    We use Bluehost, and have 2 smtp ports.  26 non-secured, and 465, SSL.

    When I try 26, I get the following:
    authentication failure [SMTP: STARTTLS failed (code: 220, response: TLS go ahead)]

    When I try 465, osTicket just hangs and nothing happens.

    Incoming emails (we use fetch) all work,and the IMAP and SMTP user/pwd are the same, so that is correct.

    Any ideas how to resolve the SMTP issue?
    And, where can I track down mail errors from the PHP functions since it appears some are not getting sent.

    Thanks for any help and advice,
    Mark


  • Problem with emails - Authentication
    When I try to make a new email with the SMTP authentication, I receive this error:

    authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Ready to start TLS)] 
    Why?
  • SMTP: STARTTLS failed SOLUTION!!!
    For those of us for experienced this issues, its a bitch to say the least. But with the all mighty power of google there is a solution. Downgrade from php5.6 to 5.5. As @ntozier pointed out to me its an openssl issue. Here is the work around for those who wish to keep php5.6 


    Downgrade to php5.5 was easier said than done. So here is a step by step on how to accomplish this.

    Remove PHP5.6: apt-get purge php*
    List Repos: cd /etc/apt/sources.list.d && ls
    Remove Old PHP Repos: rm -rf ondrej-ubuntu-php*
    Add Repo: add-apt-repository ppa:ondrej/php
    Update: apt-get update
    Install PHP5.5: apt-get install php5.5 php5.5-mysql php5.5-imap php5.5-gd
    Update: apt-get update
    Restart apache: service apache2 restart

  • Not sending or receiving emails
    As the title suggests osticket is unable to receive or send messages. I am using osticket 1.9 and php 5.6. On the IMAP side of things. osticket is able to connect to the email and create a folder, but cannot receive messages. I also get this error when trying to authenticate through smtp. authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Start TLS)]. I have searched the internet for a solution but have found nothing that works
  • Error on SMTP configuration with Office365
    Did any find the solution?, We just recently shifted to office 365 and in email configuration, I have having the same error...authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 SMTP server ready)]
  • Problems with using TLS in LDAP-PlugIn

    I'm using the compressed .phar. I uncompressed it because there where much more missing php files required from ldap2.php that I found in the phar file.

    Now the testscript seemed to work, I can see successful logins from the bind-user of the testscript on the DC, what I don't know if the LDAP-Bind was really TLS secured or not. I hope 'starttls' => 'true' Forces the LDAP Client to use TLS and if it doesn't work it will fail and give an error.

    OK what to do next? We have found something confusing in php documentation about TLS Support. This should be given at Version 5.4 and later, we are currently using 5.3.28?

    https://pear.php.net/package/Net_LDAP2

    Dependencies for Net_LDAP2


    • PHP 5.4 ...
  • Problems with using TLS in LDAP-PlugIn

    Yes I checked use TLS and the error is:

    TLS could not be started: Connect error: Unknown Net_LDAP2 Error (-11)

    I would like to try the quick and dirty script to test a TLS Connection, but I fail on my missing php experience. there is a problem with the require_once 'Net/LDAP2.php'; line

    [21-Apr-2016 09:01:11 Europe/Berlin] PHP Warning:  require_once(Net/LDAP2.php): failed to open stream: No such file or directory in C:\inetpub\OSTicket\ldap.php on line 3
    [21-Apr-2016 09:01:11 Europe/Berlin] PHP Fatal error:  require_once(): Failed opening required 'Net/LDAP2.php' (include_path='.;C:\php\pear') in C:\inetpub\OSTicket\ldap.php on line

    <?php
    // Inclusion of the Net_LDAP2 package:
    require_once 'Net/LDAP2.php';

    // The configuration array:
    $config = array (
        'binddn'    => 'CN=Bind_osTicket,OU=Service,OU=Misc,DC=net,DC=company,DC=de',
        'bindpw'    => 'bindPWD',
        'basedn'    => 'dc=net,dc=company,dc=de',
        'host'      => 'adns1.net.company.de',
        'starttls' => 'true'
    );

    // Connecting using the configuration:
    $ldap = Net_LDAP2::connect($config);

    // Testing for connection error
    if (PEAR::isError($ldap)) {
        die('Could not connect to LDAP-server: '.$ldap->getMessage());
    }
    ?>

  • SMTP Authentication failure: STARTTLS failed code 220 (provider Strato)
    I get an error trying to use SMTP for email sending:

    Using Strato as an provider I have to use SSL/TLS. osTicket can't connect. 

    I get the error:
    authentication failure [SMTP: STARTTLS failed (code: 220, response: Ready to start TLS)]
    Serverinformationen
    osTicket-Versionv1.9.12 (19292ad) —  Up to date
    Server-SoftwareApache/2.2.31 (Unix)
    MySQL-Version5.5.47
    PHP-Version5.6.19

  • SMTP SSL Issues
    Same problem here. Using Strato as an provider I have to use SSL/TLS but osTicket can't connect. I get the error:
    authentication failure [SMTP: STARTTLS failed (code: 220, response: Ready to start TLS)]
  • email relaying when smtp authentication fails
    sample log before stopping sendmail

    -----------
    Mar 18 14:49:12 osticket sendmail[22523]: u2I9I60g022521: to=<xxxxxxx@gmail.com>, ctladdr=<apache@localhost6.localdomain6> (48/48), delay=00:01:06, xdelay=00:01:05, mailer=esmtp, pri=126748, relay=gmail-smtp-in.l.google.com. [74.125.200.27], dsn=2.0.0, stat=Sent (OK 1458292751 lk8si4638486pab.112 - gsmtp)
    Mar 18 14:49:12 osticket sendmail[22527]: STARTTLS=client, relay=gmail-smtp-in.l.google.com., version=TLSv1/SSLv3, verify=FAIL, cipher=ECDHE-RSA-AES128-GCM-SHA256, bits=128/128
    Mar 18 14:49:13 osticket sendmail[22527]: u2I9IAio022525: to=<xxxxxxx@gmail.com>, ctladdr=<root@localhost6.localdomain6> (0/0), delay=00:01:03, xdelay=00:01:03, mailer=esmtp, pri=125446, relay=gmail-smtp-in.l.google.com. [74.125.200.27], dsn=2.0.0, stat=Sent (OK 1458292753 m3si6460597pfi.8 - gsmtp)

    -------------

    log after stopping sendmail service

    --------------
    Mar 18 16:27:11 osticket sendmail[22776]: u2IAv68V022776: from=apache, size=5205, class=0, nrcpts=1, msgid=<AtS50nQ-NPizX68Ab-pgMAAD+aAABV-@9ab978eda6>, relay=apache@localhost
    Mar 18 16:27:11 osticket sendmail[22776]: u2IAv68V022776: to="xxxxx" <xxxxxxx@gmail.com>, ctladdr=apache (48/48), delay=00:00:05, xdelay=00:00:00, mailer=relay, pri=35205, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
    Mar 18 17:07:24 osticket sendmail[22842]: u2IBbOZK022842: from=apache, size=2950, class=0, nrcpts=1, msgid=<AtS50nQ-Il9i68Qye-TwQAAGOaAABV-@a39e1be1cc>, relay=apache@localhost
    Mar 18 17:07:24 osticket sendmail[22842]: u2IBbOZK022842: to="xxxxxxxx" <xxxxxxx@gmail.com>, ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32950, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]


  • Unable to use SMTP Authentication Required [SMTP:STARTTLS failed
    Hi Everyone,

    This is my first post so sorry if I break any rules, but I need some help with using authentication in my smtp settings

    here are the versions I am running:

    osTicket Version          v1.9.12 (19292ad)
    Web Server Software   Apache/2.4.10 (Debian)
    MySQL Version           5.5.46
    PHP Version               5.6.17-0+deb8u1 


    I have also attached a picture of my smtp settings and the error I am getting except I have removed the hostname for my own security purposes.

    Thank you in advance to anyone that can help me

    Edit: In case anyone cannot view the image:

    Authentication failure [SMTP: STARTTLS failed (code:220, response: 2.0.0 SMTP server ready)]
    Status     Enable
    Hostname
    Port Number   25
    Authentication required Yes
    Header Spoofing           No



  • Autoresponder don't notify to User when adding New Agent&User,New Ticket ,Reply & update status
    Hi ,

    Did you get any chance to look my request?

    Yes, I validated and have
    received email.
    But If I am trying to access
    SMTP through osTicket application I am getting below error.

    We verified in google and found
    related issue details. Looks like client authentication issue.( Using sendmail as a client with
    AUTH
    )

     http://community.hpe.com/t5/System-Administration/Configure-Linux-for-smtp-auth/td-p/6441736

     

    I am not sure on that. Can you
    give me suggestion on this? Do we require 250 Auth
     to
    resolve this issue?
     


    telnet smtpx.svcs.hpe.com 25   (Ref- Result 1)

    openssl s_client -connect smtpx.svcs.hpe.com:25
    -starttls smtp 
    (Ref: Result2)

    Thanks,

    Boopathy