I refer to my earlier question and how I solved it. I am now using the latest version of pentaho and I cant seem to get the email configuration working.
Server: smtp.gmail.com
Port: 465
Use Authentication: Yes
User : mygmailusername
Pass : mygmailpass
protocol: smtp (instead of smtps)
Secure Con Type : SSL
When I enter the details in the admin settings and click test email configuration it fails. The thing is that as I mentioned in my earlier question this config works fine in pdi and am able to send emails. However it is does not seem to work for bi-server. Are there some files I need to modify or what? Also I have tried all other possible configs (protocol:smtps, port:587) etc. and still failure. Why does this config work in pdi and not biserver ?
I finally had to change the configuration to
SMTP Host: smtp.gmail.com
Port: 587
Authentication: Yes (checked)
User Name: mygmailusername#gmail.com
Pass : mygmailpass
Protocol: smtp (or smtps; both work for me)
Address all email from server will come from: mygmailusername#gmail.com
Use Start TLS: Yes (checked)
Use SSL: Yes (checked)
Now Pentaho 5.0.1 BiServer Can send emails via gmail smtp. Works like a charm
There seems to be a bug in Pentaho Server 7 CE; so make sure to use below configuration -
SMTP Host: smtp.gmail.com
Port: 587
Authentication: Yes (checked)
User Name: mygmailusername#gmail.com
Pass : mygmailpass
Protocol: smtp (or smtps; both work for me)
Address all email from server will come from: mygmailusername#gmail.com
Use Start TLS: Yes (checked)
Use SSL: Yes (checked)
Email "From" Address: mygmailusername#gmail.com
Related
I am building a Jenkins server on my AWS EC2 instance. After building finish, I want to send email to stakeholder.
I am using STMP with smtp.sendgrid.net in port 587.
But I sometime can not send email. The log from jenkins says
MessagingException message: Could not connect to SMTP host:
smtp.sendgrid.net, port: 587
I access to EC2 instance and telnet to sendgrid. It says:
[hostname#domain ~]$ telnet smtp.sendgrid.net 587
Trying 161.202.148.179...
telnet: connect to address 161.202.148.179: Connection timed out
Trying 161.202.148.182...
telnet: connect to address 161.202.148.182: Connection timed out
Trying 169.38.103.39...
Connected to smtp.sendgrid.net.
Escape character is '^]'.
220 SG ESMTP service ready at ismtpd0004p1maa1.sendgrid.net
I understand that mean I can only access to some ip coming from smtp.sendgrid domain. I am sure to open all outbound rules for EC2. Because the problem happens sometimes, so anyone could give me any suggestion for this situaions.I intend to use IP instead of domain, but it just a workaround, IP can change anytime.
Please help me.
I had a similar issue, if your EC2 outbound rules are opened then you should ensure that you provide SMTP authentication along with your SMTP server and SMTP port and your DNS resolvers are good enough.
Sendgrid expects username and password.
username: it's "apikey", It might have to be encoded in base64 "YXBpa2V5".
password: it's your API Key, get it from Sendgrid and save it here. It might have to be encoded in base64.
I tried base64 encoded and it didn't work, so I tried without the encoding and it worked.
If your problem is not related to the authentication, you could review your DNS resolver, probably the problem would be there.
I have a rocket.chat instance running on Google Compute.
I am trying to configure the smtp settings from the Administration menu as specified here - https://rocket.chat/docs/administrator-guides/email/setup/#setup-credentials
I also have my smtp setup with free zoho mails, that works for other services like SendGrid, etc.
So, based on this documentation here - https://www.zoho.com/mail/help/imap-access.html
I initially started with this config -
Then I tested the configuration with all combinations of these values too -
Protocol: smtp, smtps
Port: 465, 587
IgnoreTLS: True, False
But in none of the cases I am receiving any test emails.
Here is my rocket chat log screenshot if that can help debug & solve this issue -
I've tried everything so far but I can't make the email server to work with my G-Suite (Google Apps or Gmail) in Prestashop.
I have a G-Suite paid account that is working. I can send and receive emails. My email address is: email#mydomain.com.
I've tried leaving the first section blank "domain name" with no luck.
I've tried using smtp-relay.gmail.com instead of smtp.gmail.com with no luck
I've tried using SSL and TLS with ports: 25, 465, 587 and 2525 with no luck.
I even tried using a Gmail free account (myemail#gmail.com) and it doesn't work.
I always get the following error:
Error: Por favor compruebe su configuraciĆ³n
Connection could not be established with host smtp.gmail.com [php_network_getaddresses: getaddrinfo failed: Name or service not known #0]
What am I doing wrong or what am I missing?
I was able to make it work. I am not completely sure how, but I disabled G-suite's 2 way verification and insecure apps and configured the smtp with smtp.gmail.com, email#mydomain.com, password, TLS and port 587 and it finally worked.
I could successfully send e-mail notification in Hudson using gmail as the smtp server.
But when I try to configure our own smtp server, it gives the following error when trying to send the test mail:
Failed to send out e-mail
javax.mail.MessagingException: Exception reading response;
nested exception is:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
Are there any special configurations with the e-mail notifications???
Edit:
Also does it require enforcing the security certificate and if so is there a way to achieve it???
Thanks
Please try using the following settings:
SMTP SERVER : smtp.gmail.com
use SMTP Authentication : true
use SSL : true
SMTP port : 465
I had this problem too. My solution was to make all the necessary configuration (check ssl box and stuff) and CLICK THE SAVE BUTTON before use the test mail.
i just had this issue before clicking the save button.
Changing the SMTP port from 587 to 465 also resolved this issue for me, even though I'm using an alternative SMTP service:
SMTP server: smtp.mandrill.com
Use SMTP Authentication: true
Use SSL: true
SMTP Port: 465
From what I can tell (disclaimer: I am by no means a Hudson/Jenkins expert)
the Hudson/Jenkins email plugin supports SSL encrypted SMTP communication - however this implementation requires that communications are encrypted from the get go.
When connecting on port 587, the server on the other end may expect a STARTTLS command (see this SSL vs TLS vs STARTTLS article). This command is sent using plain-text to 'upgrade' the connection to use SSL/TLS.
Hudson/Jenkins instead attempts to start negotiating SSL on port 587, which is promptly rejected, resulting in the following error:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
I also tried adding additional JAVA options "-Dmail.smtp.starttls.enable=true" (configured in /etc/default/jenkins on Unbuntu) to enable TLS:
JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true -Dmail.smtp.starttls.enable=true"
Unfortunately this didn't resolve the issue for me.
After changing the port to 465, the SSL negotiation occurred correctly and the communication succeeded.
Hope that helps.
Using symfony framework how can I send test emails from localhost?
What are most easiest ways?
Thank you!
The easiest way, I suppose and what I normally do, is to configure the _dev environment to use good old Gmail (or any other provider for that matter). Set this up in your apps/frontend/config/factories.yml:
dev:
mailer:
class: sfMailer
param:
logging: %SF_LOGGING_ENABLED%
charset: %SF_CHARSET%
delivery_strategy: realtime
transport:
class: Swift_MailTransport
param:
host: smtp.gmail.com
port: 465
encryption: ssl
username: username#gmail.com
password: your-password
Sending e-mails will ofcourse take a little longer because PHP would have to connect to Google's servers and deliver the message.
This way you can worry about setting up a proper SMTP on your production server, and just let your dev machine be for development. Another advantage is if your develop on the road, and your local cafe / airport / kiosk blocks port 25 (they usually do) you won't have problems delivering mail.
You could install a mail server such as Postfix, and configure it to use an external mail server as an SMTP relay. Otherwise, most email services will either refuse to accept your message, or categorize it as spam.
This thread at serverfault might be helpful to you-it explains how to configure postfix to relay emails through gmail: Configure Postfix to send/relay emails Gmail (smtp.gmail.com) via port 587