I'm trying to adjust alerts using Cloudera's Alert publisher (v. 5.14). Here are my alert publisher's settings from Cloudera's UI:
- Enable Email Alerts: true
- Mail Server Protocol: smtp
- Mail Server Hostname: smtp.gmail.com
- Mail Server Username: sender#hadoop-cluster.org
- Mail From Address: sender#hadoop-cluster.org
- Mail Message Recipients: recipient#gmail.com
- Mail Server TCP Port: 587
Any others configs I left by default. Sender's and recipient's emails was obfuscated in this snippet but I can say that "hadoop-cluster.org" is a domain which have a GSuite record so SMTP configs of hadoop-cluster.org should be similar to GMail configs.
When I've applied these settings and restart Cloudera management service I've tried to send test alert. In alert publister's logs I'm catching the following exception:
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. p10*****.47 - gsmtp
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1829)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1368)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:886)
at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:416)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:340)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:355)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:344)
at org.apache.camel.component.mail.MailProducer.process(MailProducer.java:44)
at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)
What I'm doing wrong? I've searched the answer on Cloudera's community forums but didn't found any useful advises.
Must issue a STARTTLS command
Enable TLS security by configuring Mail Server Protocol: smtps
Restart cloudera management service and trigger a test email. Don't need to explicitly specify tls port. It will use port 587 by default.
https://developers.google.com/gmail/imap/imap-smtp
Related
I have a WordPress website in a Docker container which is running on linux server, the problem is I can't send the contact form data to my email address in the same server. According to my knowledge, WordPress uses mail() php function.
Server informations :
Debian 8
php 5.6
MTA: Postfix (dkim, spf, dmarc, ssl etc. done)
The server is working and sending emails since years, deliverability 10/10.
I am using the Outlook mobile app to access to my e-mails on my phone to this server, which means that the remote access to the SMTP server is working well. (port 587 on tls)
Docker container informations:
Ip address: 172.18.0.1
network mode: Bridge
Interface name: br-61b941dec29d
The website in the container is using WP 6.1.1 and the problem is (I know it's normal) that no emails are sent from the website, neither by clicking on WP reset password link, nor the contact form of the website, which was created with contact form 7 plugin.
Solutions tried:
I tried with a WP plugin that allows to set up external SMTP host, I set up the IP address of the host server, the port 587 and STARTTLS protocol, it did not work, the plugin has a "send test email" button, but at every try the plugin returns an error from the host server:
Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
But since I can configure mobile app to access the SMTP server, and that the certificate (let's encrypt) is valid (I checked with a ssllabs.com) I don't understand this error.
I tried manually by editing the php.ini file in the container which is located at
/usr/local/etc/php/php.ini-production
SMTP = host_ip_address
smtp_port = 587 and then 25
sendmail_from = myaddress#domain.com
I also edited the /etc/postfix/main.cf by adding 172.18.0.0/24 to mynetworks the inet_interfaces was already set to "all"
mynetworks = xxx.xxx.xxx.0/24 [::ffff:127.0.0.0]/104 [::1]/128 172.18.0.0/24
inet_interfaces = all
None of these worked. I tried sending emails with a simple php script using mail() function, it failed with no error log, at least, the logs are not shown in docker logs.
What I'm looking for
Send the data from the contact form to an email address in this host server. It is not mandatory to use internet, since the container and the MTA are on the same host server.
I have a Symfony 3.4 app and FOSUserBundle installed with it. I deployed the app to Compute Engine instance. However, when I try to send emails after each registration, I get the following error.
Exception occurred while flushing email queue: Connection could not be
established
with host smtp.mailgun.org [Connection timed out #110] [] []
Here is my parameters.yml file
parameters:
mailer_transport: smtp
mailer_host: smtp.mailgun.org
mailer_user: postmaster#mydomain.tdl
mailer_password: mailerpass
I also tried
mailer_host: smtp.mailgun.org:587
I added the 587 outgoing port to the firewall rules list on the Google Cloud platform, but that did not help either.
Looks like on Compute Engine you should use port 2525 because outbound connections on ports 25, 465, and 587 is not allowed. You can read more on Mailgun documentation and Google Cloud Platform documentation and more.
Google Compute Engine has all standard outgoing SMTP ports blocked by design. Please vote here to get Google's SMTP behavior changed:
https://googlecloudplatform.uservoice.com/forums/302595-compute-engine/suggestions/10079937-send-and-receive-email-using-tcp-smtp-imap-ports
Until they open the SMTP ports, there will be no good way to send email from their cloud servers. Sendgrid and the others are too expensive and lack many features that are needed.
How to send mail using gmail from IBM Websphere Application Server 8 using javamail 1.5.2 api because that give me a same error :
Caused by: java.security.cert.CertPathValidatorException: The certificate issued by OU=Equifax Secure Certificate Authority, O=Equifax, C=US is not trusted; internal cause is: java.security.cert.CertPathValidatorException: Certificate chaining error
You need to import Google certificate into the WebSphere's trust store.
WebSphere does not trust the certificate. You are trying to send an email to a server that uses SSL.
The easiest way is to use Retrieve from port
You can find info here: http://www-01.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.express.doc/ae/usec_sslretrievesignercert.html
Have you used correct values for retrieving?
Host: smtp.gmail.com
Port: 465
Alias: gmail
I have got a simple BizTalk Application in which there is only one schema and pipeline. I have simply add XML Validator in validate stage of pipeline.I have deployed this app in BizTalk Server 2010.
Now I have created a receive location which takes a XML file and set its receive pipeline which i have created. I have also marked "Enable routing for failed messaged" in receive port.
I have also created a SMTP send port and and configured it with mail server name and etc.
Receive port is working fine but send port is unable to send emails.
When i check "Track Service Instance" is shows an error "Transport failed to connect to the server".
Update: I am using Gmail SMTP server name in order to send e-mails and I am getting the error "The server rejected the sender address. The server response was: 530 5.7.0 Must issue a STARTTLS command first. ye1sm22267001pab.19 - gsmtp"
Where could be the problem? Any help will be appreciated
With that error in your update the problem is clear.
The Gmail server is expecting a SSL connection.
See SMTP TLS problem
The standard SMTP adapter does not support SSL/TLS connections.
You will need to write a custom adapter or purchase a third party
adapter to support SSL connections
http://www.nsoftware.com/products/biztalk/adapters/emails.aspx
Greg.Forsythe
EDIT: An alternative is to connect to a local SMTP server that doesn't require SSL/TLS and let it route the e-mails.
Are you running 32 bit or 64 bit? Is your tracking host in 32 bit or 64 bit? MIME/SMIME encoder pipeline can't run in 64 bit mode... are you using that?
http://msdn.microsoft.com/en-us/library/gg634591.aspx
"Transport failed to connect to the server"
This error message basically means the BizTalk SMTP adapter is unable to connect to the SMTP server or the server does not allow to send the e-mail.
Try connecting to the SMTP server with the telnet client (you may need to install this as an additional feature) or by configuring the proxy (available on the SMTP adapter and adapter defaults).
It might also be the case that you need to authenticate towards the SMTP server.
Also, some SMTP servers do not allow to send an e-mail from an unknown domain like "someone#notthenameofthecompany.com".
Hope this helps.
I am at my wits end here. I'm trying to set up SMTP settings for use in Wordpress plugin Contact Form 7. My email server is set up through Google Apps and my website is hosted on 1and1. I am using WP plugin Configure SMTP to set it up. After I try to send test email, I get the following error:
SMTP Error: Could not connect to SMTP host.
My SMTP settings are:
SMTP host: smtp.gmail.com
SMTP port: 465
Secure connection: SSL
Auth: yes
SMTP username: my-username#my-domain.com
SMTP password: password
Sender email: my-username#my-domain.com
I have also tried port 587 on TLS and port 25. I have called 1and1 two times, both times they said they don't block ports and cannot help me since my email is pointed to Gmail. I have tried other WP plugins to set up the SMTP settings. I have doublechecked that the MX records that Google supplied me correct in my 1and1 DNS. I have no idea what else I can do, I have read that other have a similar problem with this set up and with others, yet I have not found anything that has solved my issue. Many are saying it is the webhost that is blocking the ports yet 1and1 said both times I called that they don't block ports and it is a Gmail problem. I don't know what else to try.
Any help would be appreciated.
They are not being honest they do block SMTP ports 465 and 587
If you have Domain hosted at 1and1 and configure an email address they miay say they do block..
I have wordpress site attempting to use Contact for 7 and POSTMAN SMTP plugins
Postman has diag routine, it clearly shows that 1and1 are blocking the only mail port open is 443.