Howdy, Stranger!

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

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Google Apps STMP configuration Failes

Hi,

I have google apps email services. In the Admin Panel -> Email -> Settings I have configured both IMAP and STMP. IMAP settings are accepted and mail fetching working fine. But STMP setting are giving error. The settings are:

HostName : ssl://smtp.gmail.com
Port Number : 465  (have tried with 587)
Authentication Required : Yes
Header Spoofing : Allow for this email address (Ticked)

The error I get is:

Sending Email via SMTP     
Failed to connect to ssl://smtp.gmail.com:465 [SMTP: Failed to connect socket: Connection refused (code: -1, response: )]


Additional DetailsPHP : 5.4.45Apache : 2.4.18osTicket : 1.10-RC.2
Please guide.
Thank you.
Warm Regards,Abhishek

Comments

  • did you tell google to accept the connection?
    because that errors says that they refused the connection.
  • I am sorry I did not understand you clearly. I assume you are asking if I have activated the PO and IMAP. The answer is yes. I use Outlook to send and receive email in IMAP mode.
  • I don't want to put words in anyone's mouth, but he is saying the server is rejecting what osTicket is sending.  In other words, osTicket is functioning or you would not get the error message from the server.

    You may want to try to use telnet to see if you get booted.

    Try, telnet smtp.gmail.com 465, and telnet smtp.gmail.com 587.

    Do you get a connection?
  • edited May 2016
    Hi,

    Sorry for the late response. I have checked. Please find the text below.
    Abhisheks-iMac:~ abhishek$ telnet smtp.gmail.com 465

    Trying 74.125.68.108...

    Connected to gmail-smtp-msa.l.google.com.

    Escape character is '^]'.

    Connection closed by foreign host.


    Abhisheks-iMac:~ abhishek$ telnet smtp.gmail.com 587

    Trying 74.125.68.108...

    Connected to gmail-smtp-msa.l.google.com.

    Escape character is '^]'.

    220 smtp.gmail.com ESMTP d71sm7707354pfd.80 - gsmtp


    Please advice.

    Thank you.

    Warm Regards,

    Abhishek

  • It sounds like your host.  Try this,


    From the website:
    And copy and paste the below
    hello velanapps.com
    mail from:<test@velanapps.com>
    rcpt to:<to_email@velanapps.com>
    data
    From: test@velanapps.com
    Subject: test mail from command line

    this is test number 1
    sent from linux box
    .

    Note : Do not forgot the "." at end which represents end of the message

    I found this in web, and added this in Stackoverflow as many end up here.

  • edited June 2016
    the relay gmail is smtp-relay.gmail.com

Sign In or Register to comment.