Skip to Content
Menu
This question has been flagged
1 Reply
11760 Views

According to this help website, "About This Communit", this is a platform for beginners too, so if this question lacks detail, or needs something I couldn't find addressed in "Read the Guidelines", please let me know in a comment what information is missing and I will respond to address the concern.  Thank you for your time and help.



I have a problem exactly the same as in this closed question:

https://github.com/odoo/odoo/issues/13479

I am using a dockerized version to get a feel for Odoo before going forward with it, from here:
https://unkkuri.com/blog/unkkuri-blog-1/post/install-odoo-version-11-in-docker-container-21
as of July 10,2018 - so with

postgres:10.0
veivaa/odoo:11.0 ---> Odoo 11.0-20180710 (Community Edition)

and am experiencing the exact same error as W360S. When I clear the Alias Field under General Settings, the Email Invitation works, but it sends a link to the user with "locahost" in it, e.g.

http://localhost:8069/web/reset_password?db=Everything&token=1kwQSGujVuFAULw

and so most users cannot access the link. My static WLAN IP is known so how do I send that address instead?

I tried editing System Parameters - web.base.url to be http://<my WLAN static IP>:8068, which is visible from the world as I have ran other docker images from here, but still complains of


2018-07-10 19:17:20,831 1 INFO Everything odoo.addons.fetchmail.models.fetchmail: Fetched 0 email(s) on imap server imap yandex com; 0 succeeded, 0 failed.
2018-07-10 19:17:33,352 1 INFO Everything werkzeug: 172.18.0.1 - - [10/Jul/2018 19:17:33] "POST /longpolling/poll HTTP/1.1" 200 -
2018-07-10 19:17:34,592 1 INFO Everything odoo.addons.base.ir.ir_mail_server: Mail delivery failed via SMTP server 'None'.
SMTPSenderRefused: 553
5.7.1 Sender address rejected: not owned by auth user.
bounce+40-res.users-13@yandex.com
2018-07-10 19:17:34,592 1 ERROR Everything odoo.addons.mail.models.mail_mail: failed sending mail (id: 40) due to Mail Delivery Failed
Mail delivery failed via SMTP server 'None'.
SMTPSenderRefused: 553
5.7.1 Sender address rejected: not owned by auth user.
bounce+40-res.users-13@yandex.com
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_mail_server.py", line 460, in send_email
    smtp.sendmail(smtp_from, smtp_to_list, message.as_string())
  File "/usr/lib/python3.5/smtplib.py", line 862, in sendmail
    raise SMTPSenderRefused(code, resp, from_addr)
smtplib.SMTPSenderRefused: (553, b'5.7.1 Sender address rejected: not owned by auth user.', 'bounce+40-res.users-13@yandex.com')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_mail.py", line 329, in _send
    msg, mail_server_id=mail.mail_server_id.id, smtp_session=smtp_session)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_mail_server.py", line 469, in send_email
    raise MailDeliveryException(_("Mail Delivery Failed"), msg)
odoo.addons.base.ir.ir_mail_server.MailDeliveryException: ('Mail Delivery Failed', "Mail delivery failed via SMTP server 'None'.\nSMTPSenderRefused: 553\n5.7.1 Sender address rejected: not owned by auth user.\nbounce+40-res.users-13@yandex.com")
2018-07-10 19:17:34,844 1 INFO Everything werkzeug: 172.18.0.1 - - [10/Jul/2018 19:17:34] "POST /web/dataset/call_button HTTP/1.1" 200 -
2018-07-10 19:17:34,862 1 INFO ? werkzeug: 172.18.0.1 - - [10/Jul/2018 19:17:34] "GET /web/static/src/xml/dialog.xml?debug=1531250254860 HTTP/1.1" 200 -
2018-07-10 19:17:34,884 1 INFO Everything werkzeug: 172.18.0.1 - - [10/Jul/2018 19:17:34] "POST /web/dataset/call_kw/res.users/read HTTP/1.1" 200 -
2018-07-10 19:17:34,897 1 INFO Everything werkzeug: 172.18.0.1 - - [10/Jul/2018 19:17:34] "POST /web/dataset/call_kw/res.company/read HTTP/1.1" 200 -




On Yandex's website, they are aware of the error and offered this advice (so apparently they expect this service to work);

“Sender address rejected: not owned by auth user”
If you receive the message “Sender address rejected: not owned by auth user”, the address you are trying to send a message from does not match the username under which you are authenticated at the SMTP server. Make sure the mail program's reply-to address is configured to the address the username of which is used in SMTP authorization settings.




The administrator's email is the same account as the Incoming & Outgoing (IMAP/STMP) servers at yandex. The company's website is blank for now since it doesn't seem to matter what I put there, and the company's email address is the same as the administrator's. The latter, according to https://www.odoo.com/forum/help-1/question/cannot-send-email-out-using-own-smtp-18900 should be the "Reply-To" address mentioned above in Yandex's advice I believe.

I also downloaded the image's soruce to a local directory before reloading back into a new container - so I have access to the source.

Regardless of the title, "How to use my mail server to send and receive emails in Odoo" this page: https://www.odoo.com/documentation/user/11.0/discuss/email_servers.html hasn't been helpful enough for me.





Inside the docker image is the odoo.conf: (should the 25 port be uncommented?)

3d951a6:/$ cat /etc/odoo/odoo.conf
[options]
addons_path = /mnt/extra-addons
data_dir = /var/lib/odoo
; admin_passwd = admin
; csv_internal_sep = ,
; db_maxconn = 64
; db_name = False
; db_template = template1
; dbfilter = .*
; debug_mode = False
; email_from = False
; limit_memory_hard = 2684354560
; limit_memory_soft = 2147483648
; limit_request = 8192
; limit_time_cpu = 60
; limit_time_real = 120
; list_db = True
; log_db = False
; log_handler = [':INFO']
; log_level = info
; logfile = None
; longpolling_port = 8072
; max_cron_threads = 2
; osv_memory_age_limit = 1.0
; osv_memory_count_limit = False
; smtp_password = False
; smtp_port = 25
; smtp_server = localhost
; smtp_ssl = False
; smtp_user = False
; workers = 0
; xmlrpc = True
; xmlrpc_interface =
; xmlrpc_port = 8069
; xmlrpcs = True
; xmlrpcs_interface =
; xmlrpcs_port = 8071



Avatar
Discard
Best Answer

Just my recommendation:

Do not use the email features as long as you have not set up Odoo with a proper public domain using a proxy server. Then follow the documentation for the email setup.

However I'm not sure you have understood your error message properly. I think your problem is the dynamic reply-to address bounce+40....

In order to make this work, you should have a catchall email address, which is not offered by all email hosters and your hoster has to allow email relaying which Yandex seems not to do. Otherwise change the provider, that makes it much easier.

Avatar
Discard
Related Posts Replies Views Activity
2
Jul 24
607
1
May 24
1205
2
May 24
806
1
Apr 24
1387
1
Feb 24
448