Skip to Content
Menu
This question has been flagged
6 Replies
16848 Views

Hi guys

I am trying to send emails from my Odoo account. 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 gmail to accept less secure connections from outside and when I run a test inside Odoo with I get the following message: Connection Test Succeeded! Everything seems properly set up!


BUT: When I try to send a real mail 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.

Avatar
Discard
Best Answer

From the error its clear that odoo is trying to send emial 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-mailserver with the lowest number will be used the most.


Avatar
Discard
Best Answer

Having the same problem.. this indeed a bug from version 8.0

Avatar
Discard
Best Answer

My test works, its the gmail captha : https://www.google.com/accounts/DisplayUnlockCaptcha 

If everything is ok and its still not sending

Check for a security Email blocking the login from a certain site you should review activity and confirm it, after this all email will be sent,


for my case it goes that way anyway hope this helps

Avatar
Discard
Best Answer

Rolf, have you find out a solution? Pls share.

i've got Mail delivery failed via SMTP server 'None'.

Avatar
Discard
Best Answer

Hi, I still have the same issue and I don't have a clue how to fix it. Did you fix it?

I've added the catchall mail alias, checked the mail connection, etc... and I don't know what else to check.


Thanks in advance!

Avatar
Discard
Best Answer

Im facing a similar problem with odoo 11:

outgoung mail server configured, test successful,  however sending a mail fails with error from remote server :

SMTPRecipientsRefused: {'foo@example.com': (550, b'Verification failed for <bounce+24-res.users-1@example.com..

ok, instead example.com there is my real address, but the error comes from that strange bounce address:

bounce+24-res.users-1@..

Version is Odoo 11.0-20171019 Community edition

Any body else seen this behaviour or knows  how to fix that ?

Rolf



Avatar
Discard