ScadaBR send email SMTP - email

I need to send an email with a software called ScadaBR (which is for industrial supervision). As my "SMTP host" I use the name of the company server that we use to send emails with port 25 because we don't use any authentication. However I can't connect to the server from the software, it gives me the error "connection failed with the server".
The full error is:
Failed to send email titled "ScadaBR test email" to "FRWLT#bost.com".
Message: "Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: smtp-eu.app.corp, port: 25; nested exception is: java.net.SocketException: Unrecognized Windows Sockets error: 10107: connect"
The email destination is FRWLT#bost.com and the server name is smtp-eu.app.corp.
I tried to use the gmail server but in the company where I work use some firewal seems to stop any kind of connection with the port 587 (the port that connects with the gmail server).
I have an positive answer when I try to ping the server and also I have a positive answer when I try the connection via "putty" with telnet.
Can anyone help me connecting to the SMTP server?

Related

javax.mail: "Connection refused" to smtp.gmail.com

I have a webapp that logs fatal errors (due to bugs in the code, basically) and also reports them via email to a gmail account using smtp.gmail.com:465. This has worked fine for years, and the system is stable so it's a while since I last had a fatal error (Oct 2017). However, the other day I did something stupid while testing a bugfix and it caused a fatal error report. The email wasn't sent and I got this:
javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
nested exception is:
java.net.ConnectException: Connection refused: connect
I can connect via telnet:
$ telnet smtp.gmail.com 465
Trying 74.125.133.109...
Connected to gmail-smtp-msa.l.google.com.
Escape character is '^]'.
I'm assuming it's something to do with Gmail's security which means that you have to do some sort of special configuration if you want to use Thunderbird or something instead of Gmail's dreadful web interface. Can anyone tell me what I should do to get this working?
It turns out it was Gmail being cute. The underlying error was an "authentication refused", but it was being wrapped in a "connection refused" exception elsewhere. I finally figured out how to tell Gmail to allow access from an insecure app, and that solved it.

SMTP errors from web server

I am having issues with SMTP from one of my web servers. I've verified firewall connectivity over port25 to the SMTP relay and the exchange servers is good to go. I can hit the SMTP relays and exchange server from my web server via telnet. Whenever I drop a mail in Pickup it sits in the queue.
In Event Viewer I get:
Message delivery to the host 'IPADDDRESS' failed while delivering to the remote domain 'MYDOMAIN' for the following reason: The connection was dropped by the remote host.
I checked SMTPDiag and it comes back:
Error: Expecting "220". Server is not accepting connections.
Failed to submit mail to "server.domain.com"
I checked and my connection control is set to allow and the domains are listed in SMTP.. I am losing my mind trying to figure out why mail is failing at this point..
Are you hitting a rate limit or is your outbound ip on a blacklist? Try the blacklist search here: https://mxtoolbox.com/supertoolmobile.aspx

Odoo 10: Mail Delivery Failed (error: 111)

I am trying to send emails from my Odoo 10 installation. For this I have configured the outgoing mail server with Gmail SMTP as follows:
SMTP Server: smtp.gmail.com
SMTP Port: 465
Priority: 10
Connection Security: SSL/TLS
I have also configured my Gmail account to accept less secure connections from outside and when I run the test from Odoo's email configuration menu I get the following message:
Connection Test Succeeded! Everything seems properly set up!
BUT: If I try to send a real mail with Odoo I get the following error reason:
Mail Delivery Failed
Mail delivery failed via SMTP server 'localhost'.
error: 111
Connection refused
I don't know what to do, I searched for it on the internet but found nothing. Hope somebody can help me. Many thanks in advance.
From the error its clear that Odoo is trying to send emails using "SMTP server 'localhost'".
By default Odoo will create a localhost server in outgoing mail configuration menu. So you must set the "Priority" field in the form. Set the GMail server priority as "1"and localhost as "2" or any other value.
Priority: The priority of your mail server. The lower the number the
higher the priority. This will mean that the e-mail server with the
lowest number will be used the most.

Email is bouncing off from few mail providers

when im trying to send email from my domain to polish email providers onet.pl and gazeta.pl im getting bounce back message:
A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
XXX#gazeta.pl
SMTP error from remote mail server after HELO mydomain.com:
host mx.poczta.gazeta.pl [1.1.1.1]: 503 5.7.0 Error:
access denied for unknown[2.2.2.2]
I have configured ptr and mx record. Please help.
There are so many possibilities for the mail denied. Please check :
1) Your mail server IP address should not be blacklisted anywhere. You can check it from http://multirbl.valli.org/lookup/
2) Make sure that the recipient mail server listen on the port which you are using i.e. Port 25. Please check if the port 587 works. You can also try port 465 with TLS.
3) Check if any Antivirus application installed on your side causes the issue.

I can't send an email with smtp

I want to send an email with a software that I use called ("ScadaBR" it's for industriel supervision).
I use the name of the server that my company uses to send emails in the "SMTP host", with the port 25. but I have an error "connection failed with the server"
This is the error:
Failed to send email titled "ScadaBR test email" to "FRWLT#bost.com".
Message: "Mail server connection failed; nested exception is
javax.mail.MessagingException: Could not connect to SMTP host:
smtp-eu.app.corp, port: 25; nested exception is:
java.net.SocketException: Unrecognized Windows Sockets error: 10107:
connect"
The email destination is:FRWLT#bost.com
The server name is : smtp-eu.app.corp
Can anyone help me please?
Seeing smtp-eu.app.corp is a .corp address, it's an address in your Local Network? If so, is that server reachable from the webserver hosting the site?
Also some SMTP servers require an username and password or the IP address of the webserver (if it's on the same LAN) must be allowed to send mail from it's IP address through the SMTP server.
If it's an application running on your local computer, could you test with a programm like "putty" to connect to smtp-eu.app.corp on port 25 (choosing telnet as connection method) to see if you can connect to it
Could you provide more details on the situation (if this isn't the answer)?