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.
Related
I'm trying to configure hMailServer on my computer to be able to send email out and also receive emails. I'm not sure if I have everything set up correctly as some tests works and some others do not so I am confused.
I have already set up in the DNS of my domain these 3 MX records:
mail.example.com
smtp.example.com
imap.example.com
Each one of those records points to the domain name of my server. I am able to connect to the web server of my domain. In my router, I have forwarded ports 25, 110, 143, 465 and 587 to my local computer running the hMailServer application. When running a port check on the web, it looks like port 25, 110 and 465 are blocked, but the rest are not.
If I open my Mozilla Thunderbird mail client, I set up an account I created in hMailServer for the domain in question.
I have also allowed the hMailServer application through my Windows firewall for both the private and public networks. I did the same for the Thunderbird email client.
I can locally send emails to myself and other local domains set up in hMailServer. However, I cannot send or receive any email to/from external recipients, like to/from Gmail or Hotmail for example. I'm getting this error message:
Error Type: SMTP
Connection to recipients server failed.
Error: Host name: 1.1.1.1 (edited) message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Here are the TCP/IP ports summary in hMailServer:
The second part of my question is once I can actually send and receive email to/from external domains, how would I secure the connection (SSL/TSL...)? I already have a SSL certificate for my web server (example.com and www.example.com). Do I just need to generate another one for say mail.example.com or do email servers use a different kind of certificate?
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
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 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?
I'm trying to send an email to my IIS (6) SMTP service.
The domain mycustomer.myserver.comis added to the domains list of the SMTP service. Port 25 is open, I can telnet there.
telnet mycustomer.myserver.com 25, gives no errors, but no message either. (other mail servers do show 220).
SMTPDIAG confirms this: Error: Expected "220". Server is not accepting connections.
Failed to submit mail to mycustomer.myserver.com.
Do I need any further configuration of my IIS SMTP to get this to work?
At this point, I do not have MX records, but I don't think that is the problem?
OK found it:
Allowed connections were restricted to localhost, as configured under Access > Connection control.