Skip to Content
Menu
This question has been flagged
5 Replies
15064 Views

Hi,

I am trying to send a mass mailing, when I do the test I receive the test message correctly. But when send the capaign only a few messages are sent, I get the following failing error:

error: 111
Connection refused

Outgoing mail configuration:

Description     Correo Librería   
Priority     1 Connection Information SMTP Server     gator4252.hostgator.com   
SMTP Port     465 Debugging     off Connection Security     SSL/TLS Username     odoo@libreriafrancesa.net Password     ***********

On the logs:

2017-05-22 17:53:09,448 30387 INFO Libreria_Francesa odoo.models.unlink: User #1 deleted mail.mail records with IDs: [433]
2017-05-22 17:53:09,464 30387 INFO Libreria_Francesa odoo.models.unlink: User #1 deleted ir.attachment records with IDs: [2754]
2017-05-22 17:53:09,480 30387 INFO Libreria_Francesa odoo.models.unlink: User #1 deleted mail.message records with IDs: [3993]
2017-05-22 17:53:10,617 30387 INFO Libreria_Francesa odoo.addons.mail.models.mail_mail: Mail with ID 434 and Message-Id u'<1495475572.739439964294434.650048498239153-openerp-reply_to@odoo-v10-16>' successfully sent 2017-05-22 17:53:10,638 30387 INFO Libreria_Francesa odoo.models.unlink: User #1 deleted mail.mail records with IDs: [434]
2017-05-22 17:53:10,653 30387 INFO Libreria_Francesa odoo.models.unlink: User #1 deleted ir.attachment records with IDs: [2755]
2017-05-22 17:53:10,668 30387 INFO Libreria_Francesa odoo.models.unlink: User #1 deleted mail.message records with IDs: [3994]
2017-05-22 17:53:10,857 30387 INFO Libreria_Francesa odoo.addons.base.ir.ir_mail_server: La entrega de correo falló vía el servidor SMTP 'gator4252.hostgator.com'.
error: 111 Connection refused 2017-05-22 17:53:10,859 30387 ERROR Libreria_Francesa odoo.addons.mail.models.mail_mail: failed sending mail (id: 435) due to Fallo de entrega de correo La entrega de correo falló vía el servidor SMTP 'gator4252.hostgator.com'.
error: 111 Connection refused Traceback (most recent call last):
  File "/opt/odoo/server/addons/mail/models/mail_mail.py", line 278, in send
    res = IrMailServer.send_email(msg, mail_server_id=mail.mail_server_id.id)
  File "/opt/odoo/server/odoo/addons/base/ir/ir_mail_server.py", line 464, in send_email
    raise MailDeliveryException(_("Mail Delivery Failed"), msg)
MailDeliveryException: (u'Fallo de entrega de correo', u"La entrega de correo fall\xf3 v\xeda el servidor SMTP 'gator4252.hostgator.com'.\nerror: 111\nConnection refused")

Avatar
Discard

Hi Niyas,


Thanks for your reply, I already had checked that answered but is not the case my STMP server has priority 1 and the localhost has priority 10. And my error messages states that the error is regarding the hostgator server :

odoo.addons.mail.models.mail_mail: failed sending mail (id: 435) due to Fallo de entrega de correo La entrega de correo falló vía el servidor SMTP 'gator4252.hostgator.com'.

Also the message before on the log has being sent correctly :
2017-05-22 17:53:10,617 30387 INFO Libreria_Francesa odoo.addons.mail.models.mail_mail: Mail with ID 434 and Message-Id u'<1495475572.739439964294434.650048498239153-openerp-reply_to@odoo-v10-16>' successfully sent 

I am guessing that the SMTP server is blocking me because to many connections in a small period, but I haven´t find any configuration about times delays on Odoo for mass mailing.



Best Answer

SMTP have limits, but whether any emails got in your inbox before? If no then got to the inbox and check whether any updates to enable connections from low secure nodes. or try after enable this settings on your account. Please fins that on
https://myaccount.google.com/security#connectedapps and enable

Allow less secure apps: ON
Avatar
Discard
Author Best Answer

Hi Ermin,


Can you please provide me information on how to setup a different server for the mass mailing service? It seems to me that it uses the SMTP server with the higher priority  on the outgoing messages configuration.

In the other hand how for your second recomendation of the SMTP/MTA service, is it possible to integrate such service with Odoo, in order to have only one customer´s database? I like the possiblity to send messages regarding sales o tag criteria in Odoo.


Hilar,


I am not using a google server for my outgoing mail service. And my configuration is a SSL secure one.


BR

Ramón

Avatar
Discard
Best Answer

I do recommend to setup an own SMTP  server for massmailing or to use a specialized SMTP/MTA provider such as Mandrill or Amazon SES etc. for this purpose.

Avatar
Discard
Best Answer

Hi, you can check this link, answer is here

Avatar
Discard