Author Topic: Problems with Email notifications with RAID-F set up  (Read 995 times)

Offline Twisty

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Problems with Email notifications with RAID-F set up
« on: February 18, 2018, 04:20:39 am »
Hi,

Seen a few posts relating to email notification issues, but none have managed to hep me solve my particular difficulty.
I'm attempting to set up notifications and when I saved and then 'Verify' the settings I get the error that other users are reporting:

org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.mail.me.com:25

I've tried both SSL and TLS (and both together), but still nothing.

I'm using 2 factor, application specific password with iCloud mail. Here are my settings:

Active - tick
SMART - tick
SSL or TLS - tried both and none
Host - smtp.mail.me.com
Port - tried 25, 465 & 587
Username: myname@me.com
Password - application specific password from Apple
Sender - myname@me.com
Recipients - myname@me.com
CC - blank
BCC - blank
Options - all ticked for 'On success' and 'On failure'

Hope someone can help.
Thanks.

Offline mystik

  • Jr. Member
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
Re: Problems with Email notifications with RAID-F set up
« Reply #1 on: February 18, 2018, 10:17:55 am »
I have not seen the other posts.  So, this may have already been mentioned.  Try contacting your ISP to ensure the port is not blocked for you.  You wouldn't think it'd be the case since it's the default port for email software also, but I have seen it done by a provider before. 

Offline Twisty

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Problems with Email notifications with RAID-F set up
« Reply #2 on: February 20, 2018, 12:41:13 pm »
I have not seen the other posts.  So, this may have already been mentioned.  Try contacting your ISP to ensure the port is not blocked for you.  You wouldn't think it'd be the case since it's the default port for email software also, but I have seen it done by a provider before.

Hi. Thanks for your suggestion. Tried that, all seems fine. In fact I have other email notifications set up with other software that work with these settings, so I think it must be something else.

Offline Twisty

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Problems with Email notifications with RAID-F set up
« Reply #3 on: February 20, 2018, 12:43:12 pm »
This is the log for the error:

ERROR: Sending the email to the following server failed : smtp.mail.me.com:587
org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.mail.me.com:587
   at org.apache.commons.mail.Email.sendMimeMessage(Unknown Source)
   at org.apache.commons.mail.Email.<unknown>(Unknown Source)
   at com.tchegbe.flexraid.server.notification.EmailAlert.execute(Unknown Source)
   at com.tchegbe.flexraid.server.notification.EmailAlert.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: javax.mail.MessagingException: Could not convert socket to TLS;
  nested exception is:
   javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair
   at com.sun.mail.smtp.SMTPTransport.startTLS(Unknown Source)
   at com.sun.mail.smtp.SMTPTransport.protocolConnect(Unknown Source)
   at javax.mail.Service.connect(Unknown Source)
   at javax.mail.Service.connect(Unknown Source)
   at javax.mail.Service.connect(Unknown Source)
   at javax.mail.Transport.send0(Unknown Source)
   at javax.mail.Transport.<unknown>(Unknown Source)
   ... 5 more
Caused by: javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair
   at sun.security.ssl.Alerts.getSSLException(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.handleException(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
   at com.sun.mail.util.SocketFetcher.configureSSLSocket(Unknown Source)
   at com.sun.mail.util.SocketFetcher.startTLS(Unknown Source)
   ... 12 more
Caused by: java.lang.RuntimeException: Could not generate DH keypair
   at sun.security.ssl.DHCrypt.<init>(Unknown Source)
   at sun.security.ssl.ClientHandshaker.serverKeyExchange(Unknown Source)
   at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
   at sun.security.ssl.Handshaker.processLoop(Unknown Source)
   at sun.security.ssl.Handshaker.process_record(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
   ... 16 more
Caused by: java.security.InvalidAlgorithmParameterException: Prime size must be multiple of 64, and can only range from 512 to 1024 (inclusive)
   at com.sun.crypto.provider.DHKeyPairGenerator.initialize(Unknown Source)
   at java.security.KeyPairGenerator$Delegate.initialize(Unknown Source)
   ... 23 more

Offline clavus

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Problems with Email notifications with RAID-F set up
« Reply #4 on: March 26, 2018, 01:30:54 pm »
fwiw, I had the same issue with my notifications. As it turns out, my antivirus software (AVG) was configured to block outbound smtp. Turning this off in settings took care of the issue.

Offline Twisty

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Problems with Email notifications with RAID-F set up
« Reply #5 on: June 05, 2018, 11:49:11 am »
Still had issues with my Apple email (@me.com), so reverted to using my Gmail account (@gmail.com). This worked with no issues. So has to be something with the Apple environment.......?