openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #27222
[Bug 1276956] [NEW] 553 mail error when try to send notification
Public bug reported:
When some external user (e.g. user@xxxxxxxxxxxx) send email to openerp (e.g. info@xxxxxxxxxxxx), openerp send notification to followers. That notification has value user@xxxxxxxxxxxx at field FROM.
If I use gmail smtp server, then this notification is sent successfully, but field FROM is changed by google server to my gmail account (e.g. ivan@xxxxxxxxx).
But some smtp server has another behavior. For example popular russian free service "mail for domain" https://pdd.yandex.ru has another behavior. Smtp server return error:
SMTPSenderRefused: (553, '5.7.1 Sender address rejected: not owned by auth user.', 'user@xxxxxxxxxxxx'
I made small module, which change FROM field value to catchall email value, but it's not a good solution, because after that changes there is no way to figure out sender, if there was no partner user@xxxxxxxxxxxx
http://bazaar.launchpad.net/~yelizariev/+junk/openerp-addons-yelizariev/view/head:/mail_fix_553/mail_fix_553.py
2014-01-18 06:25:56,532 6789 INFO trunk openerp.addons.mail.mail_thread: Routing mail from <user@xxxxxxxxxxxx> to info@xxxxxxxxxxxx with Message-Id <49131390026345@xxxxxxxxxxxxxxxx>: direct alias match: (u'res.users', 1, {}, 1, browse_record(mail.alias, 1))
2014-01-18 06:25:57,212 6789 ERROR trunk openerp.addons.base.ir.ir_mail_server: Mail delivery failed via SMTP server 'smtp.yandex.ru'.
SMTPSenderRefused: 553
5.7.1 Sender address rejected: not owned by auth user.
user@xxxxxxxxxxxx
Traceback (most recent call last):
File "/mnt/files/src/openerp-server/server/openerp/addons/base/ir/ir_mail_server.py", line 465, in send_email
smtp.sendmail(smtp_from, smtp_to_list, message.as_string())
File "/usr/lib/python2.7/smtplib.py", line 722, in sendmail
raise SMTPSenderRefused(code, resp, from_addr)
SMTPSenderRefused: (553, '5.7.1 Sender address rejected: not owned by auth user.', 'user@xxxxxxxxxxxx')
2014-01-18 06:25:57,216 6789 ERROR trunk openerp.addons.mail.mail_mail: failed sending mail.mail 2
Traceback (most recent call last):
File "/mnt/files/src/openerp-server/addons/mail/mail_mail.py", line 284, in send
context=context)
File "/mnt/files/src/openerp-server/server/openerp/addons/base/ir/ir_mail_server.py", line 478, in send_email
raise MailDeliveryException(_("Mail Delivery Failed"), msg)
MailDeliveryException: (u'Mail Delivery Failed', u"Mail delivery failed via SMTP server 'smtp.yandex.ru'.\nSMTPSenderRefused: 553\n5.7.1 Sender address rejected: not owned by auth user.\nuser@xxxxxxxxxxxx")
2014-01-18 06:25:57,223 6789 INFO trunk openerp.addons.fetchmail.fetchmail: fetched/processed 1 email(s) on imap server yandex
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1276956
Title:
553 mail error when try to send notification
Status in OpenERP Addons (modules):
New
Bug description:
When some external user (e.g. user@xxxxxxxxxxxx) send email to openerp (e.g. info@xxxxxxxxxxxx), openerp send notification to followers. That notification has value user@xxxxxxxxxxxx at field FROM.
If I use gmail smtp server, then this notification is sent successfully, but field FROM is changed by google server to my gmail account (e.g. ivan@xxxxxxxxx).
But some smtp server has another behavior. For example popular russian free service "mail for domain" https://pdd.yandex.ru has another behavior. Smtp server return error:
SMTPSenderRefused: (553, '5.7.1 Sender address rejected: not owned by auth user.', 'user@xxxxxxxxxxxx'
I made small module, which change FROM field value to catchall email value, but it's not a good solution, because after that changes there is no way to figure out sender, if there was no partner user@xxxxxxxxxxxx
http://bazaar.launchpad.net/~yelizariev/+junk/openerp-addons-yelizariev/view/head:/mail_fix_553/mail_fix_553.py
2014-01-18 06:25:56,532 6789 INFO trunk openerp.addons.mail.mail_thread: Routing mail from <user@xxxxxxxxxxxx> to info@xxxxxxxxxxxx with Message-Id <49131390026345@xxxxxxxxxxxxxxxx>: direct alias match: (u'res.users', 1, {}, 1, browse_record(mail.alias, 1))
2014-01-18 06:25:57,212 6789 ERROR trunk openerp.addons.base.ir.ir_mail_server: Mail delivery failed via SMTP server 'smtp.yandex.ru'.
SMTPSenderRefused: 553
5.7.1 Sender address rejected: not owned by auth user.
user@xxxxxxxxxxxx
Traceback (most recent call last):
File "/mnt/files/src/openerp-server/server/openerp/addons/base/ir/ir_mail_server.py", line 465, in send_email
smtp.sendmail(smtp_from, smtp_to_list, message.as_string())
File "/usr/lib/python2.7/smtplib.py", line 722, in sendmail
raise SMTPSenderRefused(code, resp, from_addr)
SMTPSenderRefused: (553, '5.7.1 Sender address rejected: not owned by auth user.', 'user@xxxxxxxxxxxx')
2014-01-18 06:25:57,216 6789 ERROR trunk openerp.addons.mail.mail_mail: failed sending mail.mail 2
Traceback (most recent call last):
File "/mnt/files/src/openerp-server/addons/mail/mail_mail.py", line 284, in send
context=context)
File "/mnt/files/src/openerp-server/server/openerp/addons/base/ir/ir_mail_server.py", line 478, in send_email
raise MailDeliveryException(_("Mail Delivery Failed"), msg)
MailDeliveryException: (u'Mail Delivery Failed', u"Mail delivery failed via SMTP server 'smtp.yandex.ru'.\nSMTPSenderRefused: 553\n5.7.1 Sender address rejected: not owned by auth user.\nuser@xxxxxxxxxxxx")
2014-01-18 06:25:57,223 6789 INFO trunk openerp.addons.fetchmail.fetchmail: fetched/processed 1 email(s) on imap server yandex
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1276956/+subscriptions
Follow ups
References