Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Odoo 13, Connection lost every time when i try to send email

Subscribe

Get notified when there's activity on this post

This question has been flagged
emailconnection
2 Replies
7195 Views
Avatar
Ivar

Connection lost every time when i try to send email and about few second the Connection restored but the email never send out.


i tried Settings >Outgoing Mail Servers 

use the "Test Connection" then it show 


"Connection Test Succeeded!

Everything seems properly set up!"


which setting i should change to fix  the email problem?



Here are the error log:


2020-06-18 04:11:53,017 9646 INFO ? odoo: Odoo version 13.0

2020-06-18 04:11:53,017 9646 INFO ? odoo: addons paths: ['/opt/odoo/odoo/odoo/addons', '/home/simonlee/.local/share/Odoo/addons/13.0', '/opt/odoo/odoo/addons']

2020-06-18 04:11:53,018 9646 INFO ? odoo: database: default@default:default

2020-06-18 04:11:53,241 9646 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/bin/wkhtmltopdf

2020-06-18 04:11:53,429 9646 INFO ? odoo.service.server: HTTP service (werkzeug) running on vultr.guest:8069

2020-06-18 04:12:02,184 9646 INFO ? odoo.http: HTTP Configuring static files

2020-06-18 04:12:02,241 9646 INFO master_db odoo.modules.loading: loading 1 modules...

2020-06-18 04:12:02,252 9646 INFO master_db odoo.modules.loading: 1 modules loaded in 0.01s, 0 queries

2020-06-18 04:12:02,273 9646 INFO master_db odoo.modules.loading: loading 57 modules...

2020-06-18 04:12:03,236 9646 INFO master_db odoo.modules.loading: 57 modules loaded in 0.96s, 0 queries

2020-06-18 04:12:03,954 9646 INFO master_db odoo.modules.loading: Modules loaded.

2020-06-18 04:12:03,965 9646 INFO master_db odoo.addons.base.models.ir_http: Generating routing map for key 1

2020-06-18 04:12:04,120 9646 INFO master_db werkzeug: 101.78.142.90 - - [18/Jun/2020 04:12:04] "POST /web/dataset/call_kw/mail.compose.message/write HTTP/1.1" 200 - 26 0.025 1.866

2020-06-18 04:12:04,295 9646 INFO master_db werkzeug: 101.78.142.90 - - [18/Jun/2020 04:12:04] "POST /web/dataset/call_kw/mail.compose.message/read HTTP/1.1" 200 - 17 0.013 0.013

2020-06-18 04:12:04,506 9646 INFO master_db werkzeug: 101.78.142.90 - - [18/Jun/2020 04:12:04] "POST /web/dataset/call_kw/res.partner/read HTTP/1.1" 200 - 2 0.007 0.009

2020-06-18 04:12:04,507 9646 INFO master_db werkzeug: 101.78.142.90 - - [18/Jun/2020 04:12:04] "POST /web/dataset/call_kw/ir.attachment/read HTTP/1.1" 200 - 16 0.016 0.011

2020-06-18 04:12:06,319 9646 INFO master_db odoo.addons.base.models.ir_mail_server: Mail delivery failed via SMTP server 'None'.

SMTPDataError: 553

Relaying disallowed as hagoinc@yahoo.com

2020-06-18 04:12:06,320 9646 ERROR master_db odoo.addons.mail.models.mail_mail: failed sending mail (id: 322) due to Mail Delivery Failed

Mail delivery failed via SMTP server 'None'.

SMTPDataError: 553

Relaying disallowed as hagoinc@yahoo.com

Traceback (most recent call last):

  File "/opt/odoo/odoo/odoo/addons/base/models/ir_mail_server.py", line 526, in send_email

    smtp.sendmail(smtp_from, smtp_to_list, message.as_string())

  File "/usr/lib/python3.7/smtplib.py", line 888, in sendmail

    raise SMTPDataError(code, resp)

smtplib.SMTPDataError: (553, b'Relaying disallowed as hagoinc@yahoo.com')


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/odoo/odoo/addons/mail/models/mail_mail.py", line 363, in _send

    msg, mail_server_id=mail.mail_server_id.id, smtp_session=smtp_session)

  File "/opt/odoo/odoo/odoo/addons/base/models/ir_mail_server.py", line 536, in send_email

    raise MailDeliveryException(_("Mail Delivery Failed"), msg)

odoo.addons.base.models.ir_mail_server.MailDeliveryException: ('Mail Delivery Failed', "Mail delivery failed via SMTP server 'None'.\nSMTPDataError: 553\nRelaying disallowed as hagoinc@yahoo.com")

2020-06-18 04:12:06,344 9646 ERROR master_db odoo.addons.mail.models.mail_mail: Exception while processing mail with ID 323 and Msg-Id '<653931045186226.1592453524.709261655807495-openerp-14-purchase.order@vultr.guest>'.

Traceback (most recent call last):

  File "/opt/odoo/odoo/addons/mail/models/mail_mail.py", line 363, in _send

    msg, mail_server_id=mail.mail_server_id.id, smtp_session=smtp_session)

  File "/opt/odoo/odoo/odoo/addons/base/models/ir_mail_server.py", line 526, in send_email

    smtp.sendmail(smtp_from, smtp_to_list, message.as_string())

  File "/usr/lib/python3.7/smtplib.py", line 861, in sendmail

    (code, resp) = self.mail(from_addr, esmtp_opts)

  File "/usr/lib/python3.7/smtplib.py", line 534, in mail

    self.putcmd("mail", "FROM:%s%s" % (quoteaddr(sender), optionlist))

  File "/usr/lib/python3.7/smtplib.py", line 367, in putcmd

    self.send(str)

  File "/usr/lib/python3.7/smtplib.py", line 359, in send

    raise SMTPServerDisconnected('please run connect() first')

smtplib.SMTPServerDisconnected: please run connect() first

2020-06-18 04:12:06,347 9646 INFO master_db werkzeug: 101.78.142.90 - - [18/Jun/2020 04:12:06] "POST /web/dataset/call_button HTTP/1.1" 500 - 160 0.077 1.608

2020-06-18 04:12:06,353 9646 ERROR master_db werkzeug: Error on request:

Traceback (most recent call last):

  File "/opt/odoo/odoo/addons/mail/models/mail_mail.py", line 256, in send

    smtp_session=smtp_session)

  File "/opt/odoo/odoo/addons/mail/models/mail_mail.py", line 363, in _send

    msg, mail_server_id=mail.mail_server_id.id, smtp_session=smtp_session)

  File "/opt/odoo/odoo/odoo/addons/base/models/ir_mail_server.py", line 526, in send_email

    smtp.sendmail(smtp_from, smtp_to_list, message.as_string())

  File "/usr/lib/python3.7/smtplib.py", line 861, in sendmail

    (code, resp) = self.mail(from_addr, esmtp_opts)

  File "/usr/lib/python3.7/smtplib.py", line 534, in mail

    self.putcmd("mail", "FROM:%s%s" % (quoteaddr(sender), optionlist))

  File "/usr/lib/python3.7/smtplib.py", line 367, in putcmd

    self.send(str)

  File "/usr/lib/python3.7/smtplib.py", line 359, in send

    raise SMTPServerDisconnected('please run connect() first')

smtplib.SMTPServerDisconnected: please run connect() first


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/home/simonlee/.local/lib/python3.7/site-packages/werkzeug/serving.py", line 304, in run_wsgi

    execute(self.server.app)

  File "/home/simonlee/.local/lib/python3.7/site-packages/werkzeug/serving.py", line 292, in execute

    application_iter = app(environ, start_response)

  File "/opt/odoo/odoo/odoo/service/server.py", line 414, in app

    return self.app(e, s)

  File "/opt/odoo/odoo/odoo/service/wsgi_server.py", line 142, in application

    return application_unproxied(environ, start_response)

  File "/opt/odoo/odoo/odoo/service/wsgi_server.py", line 117, in application_unproxied

    result = odoo.http.root(environ, start_response)

  File "/opt/odoo/odoo/odoo/http.py", line 1281, in __call__

    return self.dispatch(environ, start_response)

  File "/opt/odoo/odoo/odoo/http.py", line 1251, in __call__

    return self.app(environ, start_wrapped)

  File "/home/simonlee/.local/lib/python3.7/site-packages/werkzeug/middleware/shared_data.py", line 220, in __call__

    return self.app(environ, start_response)

  File "/opt/odoo/odoo/odoo/http.py", line 1454, in dispatch

    response = self.get_response(httprequest, result, explicit_session)

  File "/opt/odoo/odoo/odoo/http.py", line 280, in __exit__

    self._cr.commit()

  File "/opt/odoo/odoo/odoo/sql_db.py", line 163, in wrapper

    return f(self, *args, **kwargs)

  File "/opt/odoo/odoo/odoo/sql_db.py", line 391, in commit

    func()

  File "/opt/odoo/odoo/addons/mail/models/mail_thread.py", line 2310, in send_notifications

    env['mail.mail'].browse(email_ids).send()

  File "/opt/odoo/odoo/addons/mail/models/mail_mail.py", line 262, in send

    smtp_session.quit()

  File "/usr/lib/python3.7/smtplib.py", line 984, in quit

    res = self.docmd("quit")

  File "/usr/lib/python3.7/smtplib.py", line 420, in docmd

    self.putcmd(cmd, args)

  File "/usr/lib/python3.7/smtplib.py", line 367, in putcmd

    self.send(str)

  File "/usr/lib/python3.7/smtplib.py", line 359, in send

    raise SMTPServerDisconnected('please run connect() first')

smtplib.SMTPServerDisconnected: please run connect() first - - -

2020-06-18 04:12:08,861 9646 INFO master_db werkzeug: 101.78.142.90 - - [18/Jun/2020 04:12:08] "POST /web/webclient/version_info HTTP/1.1" 200 - 1 0.000 0.005

2020-06-18 04:12:15,394 9646 INFO ? odoo.addons.bus.models.bus: Bus.loop listen imbus on db postgres

2020-06-18 04:13:05,398 9646 INFO master_db werkzeug: 101.78.142.90 - - [18/Jun/2020 04:13:05] "POST /longpolling/poll HTTP/1.1" 200 - 22 0.027 50.024

2020-06-18 04:13:10,713 9646 INFO master_db werkzeug: 42.200.118.6 - - [18/Jun/2020 04:13:10] "POST /longpolling/poll HTTP/1.1" 200 - 20 0.010 50.015

1
Avatar
Discard
Avatar
Juan Jose Carballo Samayoa
Best Answer

https://github.com/odoo/odoo/issues/8134 check this post 

0
Avatar
Discard
Avatar
David Bacter
Best Answer

Has anyone solved this issue?

I am inclined to believe that the issue has something to do with the email address of the sender but I am not sure.

I have the same issue. I have multiple users and those that have the domain in their email address same as the company (ex: @example.com) can send emails with no problem however when a user with an address with a different domain (ex: user@gmail.com) sends an email he gets a Connection lost... pop-up.

I am using the odoo.sh servers for mail.

Can anyone provide any useful insight?

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Email set correctly but email is not being delivered? Solved
email connection
Avatar
Avatar
Avatar
Avatar
Avatar
10
Jul 23
58375
emails not in emails list Solved
email connection send
Avatar
1
Mar 15
6065
need more felixiblity and inovation on email marketing tools
email
Avatar
0
Nov 25
181
After editing the Sales Order Confirmation email template, Odoo isn't using it.
email
Avatar
Avatar
1
Jul 25
1995
How to remove "Powered by Odoo" in email in the Enterprise version Solved
email
Avatar
Avatar
Avatar
Avatar
Avatar
5
Nov 25
19947
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now