Public bug reported: When some external user (e.g. [email protected]) send email to openerp (e.g. [email protected]), openerp send notification to followers. That notification has value [email protected] 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. [email protected]).
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.', '[email protected]' 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 [email protected] 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 <[email protected]> to [email protected] with Message-Id <[email protected]>: 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. [email protected] 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.', '[email protected]') 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.\[email protected]") 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. [email protected]) send email to openerp (e.g. [email protected]), openerp send notification to followers. That notification has value [email protected] 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. [email protected]). 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.', '[email protected]' 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 [email protected] 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 <[email protected]> to [email protected] with Message-Id <[email protected]>: 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. [email protected] 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.', '[email protected]') 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.\[email protected]") 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 _______________________________________________ Mailing list: https://launchpad.net/~openerp-india Post to : [email protected] Unsubscribe : https://launchpad.net/~openerp-india More help : https://help.launchpad.net/ListHelp

