Hello Richard,

I'm on linux here but yes, generally if your screen refreshes on windows OS, you might consider port 465 open.
You can try with port 466 which is not open and see the difference.

What I would suggest is to try to setup your account in any email client on that machine (i.e. thunderbird, outlook..) and use the very same credentials with OM. Small things matter - username has to include the @domain etc, sometimes it's difficult to have the settings done correctly.

Please follow the gmail guides if you prefer to use their service:
https://support.google.com/a/answer/176600
https://support.google.com/mail/?p=BadCredentials (even it's for IMAP, the same rules apply - you may need to go to https://accounts.google.com/DisplayUnlockCaptcha, etc.)

You may also try to use port 587 and set mail.smtp.starttls.enable = 1
See https://groups.google.com/forum/#!topic/openmeetings-user/UY_P0tQoWGI
and http://mail-archives.apache.org/mod_mbox/incubator-openmeetings-user/201203.mbox/%3cceaa10b3be8add43885aa9632d5820da1cc08...@adc.in.autorobinc.com%3E


I'm just a common user trying to help ;) Wish you the very best luck and hope you will be happy with OM!

PS: I just tried to use gsmtp with openssl s_client -connect smtp.gmail.com:465 and realized I could not authorize with AUTH LOGIN. Maybe google decided to only allow OAuth (and I don't know if that is supported in OM). I would personally launch an SMTP server locally but that's another story and another lot of things to take care of...

Tharrrk

On 1.8.2017 20:59, Richard Pérez wrote:
Hello Tharrrk:

Thanks for your suggestion.
I'm doing this on my desktop computer, with Win10 where I have OM installed (I 
have a laptop with WinXP to test as an attendee but haven't tried telnet there 
yet).

I opened a cmd window and tested:
telnet smtp.gmail.com 465

When I click enter it activates, and I could distinguish the word "connecting" coming up 
before the whole window went blank (or black if you prefer) with no text in it.  In my case my 
escape character is "q", with which I recover the usual cmd prompt.

I tried first with: $telnet smtp.gmail.com 465
but it does not recognise the character "$".

After clicking Enter "connecting" went by very fast before going blank, so 
maybe there was something more written there like:
  Trying 74.125.133.109...
  Connected to gmail-smtp-msa.l.google.com.

but I can't be sure.
Can I consider 465 is enabled?  Maybe the checking behaviour is a bit different 
on Windows 10?

Anything else I can do?


Richard
--------------------------------------------
On Tue, 1/8/17,  <thar...@tharrrk.net> wrote:

  Subject: Re: help configuration smtp server
  To: user@openmeetings.apache.org, "Richard Pérez" 
<traductorchi...@yahoo.co.uk>
  Date: Tuesday, 1 August, 2017, 15:16
Dear Richard, telnet should be run on the machine where OM is
  running and provided
  with the gmail smtp
  server as parameter along with the smtps port - i.e.
  telnet smtp.gmail.com 465
  You
  should see a message like Connected to ... if it succeeded.
  This
  depends on OS you're using:
$telnet smtp.gmail.com 465
  Trying 74.125.133.109...
  Connected to gmail-smtp-msa.l.google.com.
  Escape character is '^]'.
Hope this helps Tharrrk On 1.8.2017 18:51, Richard Pérez wrote:
  > Hello Maxim:
  >
  > I checked “Telnet Client” in Windows
  10 Control Panel, then checked telnet was enabled and I used
  the following command to check port 465:
  >
  > telnet 181…myIP….
  465
  > and it delivered a blank cmd
  window.  According to instructions I have seen googling
  that would mean port 465 is not closed.  I suppose that
  means it is not “Firewalled”.
  >
  > After sending an invitation (now instead
  of “localhost:5080” it says “181…myIP:5080”) I
  still get the same exception:
  >
  > ERROR 08-01 13:29:56.045
  o.a.o.c.m.MailHandler:246 [taskExecutor-1] - Error while
  sending message
  >
  javax.mail.MessagingException: Exception reading response
  >
  > And I’m still
  getting:
  > Caused by:
  java.net.SocketTimeoutException: Read timed out
  >
  > I did another test,
  disconnecting my antivirus for 10 min, and got a different
  exception:
  >
  > ERROR
  08-01 13:36:35.578 o.a.o.c.m.MailHandler:246
  [taskExecutor-2] - Error while sending message
  > javax.mail.MessagingException: Could not
  connect to SMTP host: smtp.gmail.com, port: 465, response:
  -1
  >     at
  com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2106)
  >     at
  com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:712)
  >     at
  javax.mail.Service.connect(Service.java:388)
  >     at
  javax.mail.Service.connect(Service.java:246)
  >     at
  javax.mail.Service.connect(Service.java:195)
  >     at
  javax.mail.Transport.send0(Transport.java:254)
  >     at
  javax.mail.Transport.send(Transport.java:124)
  >     at
  org.apache.openmeetings.core.mail.MailHandler$2.run(MailHandler.java:242)
  >     at
  java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
  Source)
  >     at
  java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
  Source)
  >     at
  java.lang.Thread.run(Unknown Source)
  >
  DEBUG 08-01 13:36:53.053 o.a.o.w.c.MainPanel:117
  [http-nio-0.0.0.0-5080-exec-5] - Sending WebSocket PING
  > DEBUG 08-01 13:37:10.280
  o.a.o.s.q.s.ReminderJob:44
  [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-7]
  - ReminderJob.remindMeetings
  > DEBUG
  08-01 13:37:16.752 o.a.o.s.q.s.ReminderJob:44
  [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-7]
  - ReminderJob.remindMeetings
  > DEBUG
  08-01 13:37:23.155 o.a.o.w.c.MainPanel:117
  [http-nio-0.0.0.0-5080-exec-1] - Sending WebSocket PING
  > DEBUG 08-01 13:37:25.291
  o.a.o.c.m.MailHandler:277
  [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-8]
  - sendMails enter ...
  > DEBUG 08-01
  13:37:25.293 o.a.o.c.m.MailHandler:279
  [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-8]
  - Number of emails in init queue 1
  >
  DEBUG 08-01 13:37:25.297 o.a.o.c.m.MailHandler:236
  [taskExecutor-3] - Message sending in progress
  >
  >
  >
  Does this information help to understand what's
  wrong?
  >
  >
  >
  > Richard
  >
  >
  --------------------------------------------
  > On Mon, 31/7/17, Maxim Solodovnik <solomax...@gmail.com>
  wrote:
  >
  >   Subject:
  Re: help configuration smtp server
  >
  To: "Openmeetings user-list" <user@openmeetings.apache.org>,
  "Richard Pérez" <traductorchi...@yahoo.co.uk>
  >   Date: Monday, 31 July, 2017, 23:16
  >
  >   This error:
  >   "Caused by:
  java.net.SocketTimeoutException: Read
  >
   timed out"Often mean port 465 is
  >   "firewalled". You can check
  it using
  >   telnet
  >   application.base.url in
  >   configuration should be changed to
  something resolvable from
  >   outside
  your server for ex. external IP, hostname
  >   etc.
  >
  >
  >   On Tue, Aug 1,
  2017 at 9:21 AM, Richard Pérez <traductorchi...@yahoo.co.uk>
  >   wrote:
  >   >
  Hello Coscend:
  >   >
  >   > Thanks for your answer.
  >   > Let me see if I understand.
  >   > If one of my attendees receives
  this link:
  http://localhost:5080/openmeetings/hash?invitation=.....
  >   > He can only enter the room using
  my computer?
  >   > I suppose the same
  goes if I put my IP address instead
  >
  of "localhost".  Right?
  >
  >
  >   > I must say that link was
  created by my installed OM, in
  >   the
  room, with the form to send an invitation.
  >   > If I can't use
  "localhost" in an
  >
  invitation why does OM create that link instead of
  something
  >   else.  I can't edit
  that link on the frontend.
  >   >
  >   > My current install has the
  following in config:
  >   >
  smtp_server                     smtp.gmail.com
  >   > smtp_port
         465
  >   >
  system_email_addr               myem...@mywebsite.com
  >   > email_username          myem...@mywebsite.com
  >   > email_userpass          my
  password for GSuite
  >   >
  mail.smtp.starttls.enable       1
  >
  > application.base.url            http://localhost:5080/openmeetings/
  >   >
  >   > I
  have noticed that when I change the
  >
  "system_email_addr" in the Admin> Config,
  the
  >   following log line does not
  change, it still shows the email
  >   I
  used as the "user" email when I installed OM (myem...@mywebsite.com).
  >   >
  >   > DEBUG
  07-30 20:11:03.136 o.a.o.c.m.MailHandler:205
  >   [taskExecutor-1] - setReplyTo (email
  used to register when
  >   installing
  OM)
  >   >
  >
  > Is it possible my Admin >config is being
  overridden
  >   by my install info, and I
  should re-install OM with some
  >   other
  info.
  >   > Any idea what info?
  >   >
  >   >
  Thanks,
  >   >
  >
  >
  >   >
  >
  > Richard
  >   >
  >   >
  >   >
  --------------------------------------------
  >   > On Mon, 31/7/17, Coscend@OM
  >   <om.insig...@coscend.com>
  wrote:
  >   >
  >
  >  Subject: RE: help configuration smtp server
  >   >  To: user@openmeetings.apache.org
  >   >  Date: Monday, 31 July, 2017,
  18:07
  >   >
  >
  >  Dear Richard,
  >   >
  >   >  Here are two vectors to help
  you
  >   >  resolve your issue.
  >   >  Perhaps your application name
  and
  >   >  e-mail are not configured
  properly:
  >   >
  Admin->Configuration
  >   >
  Localhost-> only someone using your
  >   >  local computer can use the
  invitation.
  >   >
  >   >
  >   >
  > example link created: 
http://localhost:5080/openmeetings/hash?invitation=6c608020-c92d-42bc-98d9-763cfb0a1bb3&language=1).
  >   >  >...
  >
  >  > ReminderJob.remindMeetings ERROR
  >   >  07-30 20:11:33.499
  o.a.o.c.m.MailHandler:246
  >   >
  [taskExecutor-1] - Error while sending message
  >   >
  >   >
  Thank you.
  >   >
  >   >  Sincerely,
  >   >
  >   >
  Hemant K. Sabat
  >   >
  >   >  Coscend Communications
  Solutions
  >   >  www.Coscend.com
  >   >
  >
  ------------------------------------------------------------------
  >   >  Real-time, Interactive Video
  >   >  Collaboration, Tele-healthcare,
  Tele-education,
  >   Telepresence
  >   >  Services, on the fly…
  >   >
  >
  ------------------------------------------------------------------
  >   >  CONFIDENTIALITY NOTICE: See
  >   >  'Confidentiality Notice
  Regarding E-mail Messages
  >   from
  >   >  Coscend Communications
  Solutions' posted at: http://www.Coscend.com/Terms_and_Conditions.html
  >   >
  >   >
  >   >
  >   >
  >   >  -----Original Message-----
  >   >  From: Richard Pérez [mailto:traductorchi...@yahoo.co.uk]
  >   >  Sent: Monday, July 31, 2017 3:23
  PM
  >   >  To: Openmeetings user-list
  <user@openmeetings.apache.org>
  >   >  Subject: Re: help configuration
  smtp
  >   >  server
  >   >
  >   >
  Hello Maxim:
  >   >
  >   >  I followed what you suggested
  the last
  >   >  time I asked about
  this (13th july) but for some
  >   reason
  I
  >   >  can’t get it to work.
  Considering my procedures
  >   and
  >   >  the Error I get what can I be
  doing wrong?
  >   >  - Is there
  another way to send the link
  >   >
  to my attendees without using the email feature?
  >   (i.e.
  >   >
  create an invitation email with a password, create
  >   the link,
  >
  >  and copy these into an ordinary email).
  >   >  - I tried to do this pasting the
  link
  >   >  into the browser of my
  laptop but it does not open
  >   the
  >   >  access to OM (example link
  created: 
http://localhost:5080/openmeetings/hash?invitation=6c608020-c92d-42bc-98d9-763cfb0a1bb3&language=1).
  >   >  My laptop runs on Windows XP and
  no one is supporting
  >   XP
  >   >  anymore.  Could this be the
  cause or am I doing
  >   this
  >   >  wrong?
  >
  >
  >   >
  >
  >  set up gmail smtp
  >   >  https://support.google.com/a/answer/176600?hl=en
  >   >  I chose: Gmail SMTP server
  >   >
  >   >
  From here I went to: https://support.google.com/a/answer/6260879?hl=en
  >   >  because I had to make sure I
  was
  >   >  enabling “Less secure
  apps” correctly According
  >   to
  this
  >   >  page, to be able to
  enable “Less secure apps” I
  >   had
  to
  >   >  access Google Admin
  Console, to be able to do this I
  >   had
  to
  >   >  create a GSuite account
  with a non-gmail email from
  >   my
  >   >  website, verify my domain as
  usual, and apparently
  >   I’m
  >   >  going to be invoiced if I want
  to keep on using
  >   this.
  >   >  After going through this
  adventure crossing rivers,
  >
  through
  >   >  swamps, under and
  over the ocean, I finally installed
  >
  OM
  >   >  with the following
  data:
  >   >
  >
  >  smtp_server:
  >   >
  smtp.gmail.com
  >   >  smtp_port:
    465
  >   >
  mail.smtp.starttls.enable: 1
  >   >
  >   >  I have tried to get emails sent
  from
  >   >  the room (Public Video
  And Whiteboard Room) using
  >   the
  >   >  following email information:
  >   >
  >   >
  system_email_addr
  >   >     1) the
  email registered as the user email when
  >   >  installing OM (my website
  email), It is the same
  >   email used
  >   >  as
  >
  >
  >   >
  >
  >           Admin of Gsuite; 2) another
  >   >  gmail: myem...@gmail.com
  >   >  email_username
  >   >  myemail@gmail
  or
  >   >  mygsuiteem...@mywebsite.com
  >   >  or my OM username (not an
  email)
  >   >
  >
  >  email_userpass
  >   >
  password used to enter myem...@gmail.com
  >   >  or my password used to enter mygsuiteem...@mywebsite.com
  >   >  or
  >
  >
  >   >
  >
  >          my OM password, respectively
  >   >
  >   >
  Each time I changed the configuration
  >
   >  in the frontend I logged out and restarted Red5
  to
  >   make sure
  >
  >  changes were effective, then went into the room
  and
  >   sent an
  >
  >  email invitation (with password activated and
  having
  >   created
  >   >  the hash link)
  >   >
  >   >
  myGSuiteemail:  if I had an email
  >
  >  called john...@mywebsite.com
  >   >  managed through my website, now
  I have an email with
  >   that
  >   >  same name managed through
  Google’s Gsuite but
  >   although it
  >   >  looks like gmail.com it sends
  emails as if
  >   it were john123
  >   >  from my website.
  >   >
  >   >
  >   >  What I have found in my OM log
  is the
  >   >  following (the same in
  all cases):
  >   >
  >   >  EBUG 07-30 20:11:03.061
  >   >  o.a.o.c.m.MailHandler:236
  [taskExecutor-1] - Message
  >
  sending
  >   >  in progress
  >   >  DEBUG 07-30 20:11:03.062
  >   >  o.a.o.c.m.MailHandler:237
  [taskExecutor-1] -   To:
  >   >
  "email of person I am inviting"
  >   >  DEBUG 07-30 20:11:03.062
  >   >  o.a.o.c.m.MailHandler:238
  [taskExecutor-1] -
  >   Subject:
  >   >  "invitation sent"
  >   >  DEBUG 07-30 20:11:03.062
  >   >  o.a.o.c.m.MailHandler:199
  [taskExecutor-1] -
  >   getMimeMessage
  >   >  DEBUG 07-30 20:11:03.062
  o.a.o.c.m.MailHandler:162
  >   >
  [taskExecutor-1] - getBasicMimeMessage DEBUG 07-30
  >   >  20:11:03.136
  o.a.o.c.m.MailHandler:205
  >
  [taskExecutor-1] -
  >   >  setReplyTo
  "Email registered for “user” when
  >   I installed
  >
  >  OM"
  >   >
  >   >
  >   >
  >   >
  >   >
  >   >
  >   >
          (It doesn’t change when
  >
   >  I change emails in the frontend Configuration)
  DEBUG
  >   07-30
  >
  >  20:11:10.139 o.a.o.c.m.MailHandler:277
  >   >
  >
  [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-3]
  >   >  - sendMails enter ...
  >   >  DEBUG 07-30 20:11:10.146
  >   >  o.a.o.c.m.MailHandler:279
  >   >
  >
  [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-3]
  >   >  - Number of emails in init queue
  0 DEBUG 07-30
  >   20:11:10.147
  >   >  o.a.o.c.m.MailHandler:284
  >   >
  >
  [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-3]
  >   >  - ... sendMails done.
  >   >  DEBUG 07-30 20:11:11.048
  >   >  o.a.o.w.c.MainPanel:117
  >   [http-nio-0.0.0.0-5080-exec-7] -
  >   >  Sending WebSocket PING DEBUG
  07-30 20:11:27.974
  >   >
  o.a.o.s.q.s.ReminderJob:44
  >   >
  >
  [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-4]
  >   >  - ReminderJob.remindMeetings
  ERROR 07-30
  >   20:11:33.499
  >   >  o.a.o.c.m.MailHandler:246
  [taskExecutor-1] - Error
  >   while
  >   >  sending message
  >   >
  javax.mail.MessagingException:
  >
  >  Exception reading response
  >
  >      at
  >   >
  >
  com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2369)
  >   >      at
  >
  >
  >
  com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2096)
  >   >      at
  >
  >
  >
  com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:712)
  >   >      at
  >
  >  javax.mail.Service.connect(Service.java:388)
  >   >      at
  >
  >  javax.mail.Service.connect(Service.java:246)
  >   >      at
  >
  >  javax.mail.Service.connect(Service.java:195)
  >   >      at
  >
  >  javax.mail.Transport.send0(Transport.java:254)
  >   >      at
  >
  >  javax.mail.Transport.send(Transport.java:124)
  >   >      at
  >
  >
  >
  org.apache.openmeetings.core.mail.MailHandler$2.run(MailHandler.java:242)
  >   >      at
  >
  >
  >
  java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
  >   >  Source)
  >
  >      at
  >   >
  >
  java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
  >   >  Source)
  >
  >      at
  >   >
  java.lang.Thread.run(Unknown Source) Caused by:
  >   >  java.net.SocketTimeoutException:
  Read timed out
  >   >      at
  >   >
  java.net.SocketInputStream.socketRead0(Native
  >   Method)
  >   >
      at
  >   >
  java.net.SocketInputStream.socketRead(Unknown
  >   Source)
  >   >
      at
  >   >
  java.net.SocketInputStream.read(Unknown Source)
  >   >      at
  >
  >  java.net.SocketInputStream.read(Unknown Source)
  >   >      at
  >
  >
  >
  com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:124)
  >   >      at
  >
  >  java.io.BufferedInputStream.fill(Unknown Source)
  >   >      at
  >
  >  java.io.BufferedInputStream.read(Unknown Source)
  >   >      at
  >
  >
  >
  com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:92)
  >   >      at
  >
  >
  >
  com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2349)
  >   >      ... 11 common frames
  >   >  omitted
  >
  >
  >   >
  >
  >
  >   >  Thanks,
  >   >
  >   >
  Richard
  >   >
  >
  >
  >   >
  --------------------------------------------
  >   >  On Thu, 13/7/17, Maxim
  Solodovnik
  >   >  <solomax...@gmail.com>
  >   >  wrote:
  >
  >
  >   >   Subject: Re: help
  configuration smtp
  >   >  server
  >   >   To: "Openmeetings
  user-list" <user@openmeetings.apache.org>,
  >   >  "Richard Pérez"
  <traductorchi...@yahoo.co.uk>
  >   >   Date: Thursday, 13 July, 2017,
  22:03
  >   >
  >
  >   To set up gmail smtp you should get
  >   >  params  from here:
  >   >   https://support.google.com/a/answer/176600?hl=en
  >   >   I have used "Gmail SMTP
  server"
  >   >
  >   >   In OM
  "mail.smtp.starttls.enable"
  >
   >   should be "1"
  >
  >
  >   >   In case of "unable
  to find valid
  >   >   certification
  path to requested
  >   >
  target" you most probably need to
  >   >   update JRE (to get latest
  CAs)
  >   >   If not try to import
  certificate
  >   >  chain
  >   >   in catruststore of JVM (as
  was
  >   >   discussed earlier)
  >   >
  >   >
  >
  >   --
  >   WBR
  >   Maxim aka
  solomax

Reply via email to