Giter Site home page Giter Site logo

Comments (11)

eLBati avatar eLBati commented on August 12, 2024 1

For v10 and v12 another implementation was made: mail_outbound_static

Additional info at odoo/odoo#20911

I think we should go on with mail_outbound_static

from social.

pedrobaeza avatar pedrobaeza commented on August 12, 2024

The problem here is that your mail server supports any address or enforce the main one. This is called "mail relay". We use Mailgun as mail provider with authorized domains.

In a nutshell, it's not something of Odoo, but on the rest of the infrastructure.

from social.

dreispt avatar dreispt commented on August 12, 2024

In this scenario, the mail server is configured according to a corporate policy, and I cant change any of them. So I need Odoo to "behave" accordingly.

Additionally, from a security PoV I see the point for this policy of not "impersonating" someone else, and there are more companies out there using it.
For example, GitHub notifications "From" adress carry your name, but a fixed notifications email address.

from social.

pedrobaeza avatar pedrobaeza commented on August 12, 2024

Yeah, but you can put whatever you want on your From, that mail server will change it. There's a middle solution that some mails servers do that is "X in the name of Y", but again is not in Odoo part, but on the mail server that allows that.

from social.

dreispt avatar dreispt commented on August 12, 2024

Yeah, but you can put whatever you want on your From, that mail server will change it.

It doesn't. It rejects the email message.

There's a middle solution that some mails servers do that is "X in the name of Y",

I researched that. My particular case is using MS Exchange.
We can have Daniel send an email of a Group ("Odoo"), but we can't have a "Odoo" send an email on behalf of "Daniel" (my need).

but again is not in Odoo part, but on the mail server that allows that.

Again, is this case I can't and I don't want to.

from social.

pedrobaeza avatar pedrobaeza commented on August 12, 2024

Ok, if you think this can be solved that way, try and tell me. I remember to struggle with the same problem and MS exchange being a pain, finally using other smtp server.

from social.

dreispt avatar dreispt commented on August 12, 2024

Update:

My current fix is not strong enough: the SMTP server enforces that the Header "Sender" corresponds to the "From" in the message envelope. For mails to go through I need to ensure that both the Sender and the messages's From corresponds to the user connected to the SMTP server.

The most relevant commit is: odoo/odoo@a4597fe and the relevant discussion on the Odoo framework is odoo/odoo#3347. It seems that there are some PRs trying to fix this in the core.

from social.

pedrobaeza avatar pedrobaeza commented on August 12, 2024

This is what I was trying to explain you 😉

from social.

dreispt avatar dreispt commented on August 12, 2024

Olivier Dony wrote:

Users should also be aware of the limitations of their outgoing SMTP providers. To use Odoo in multi-user environments you need a true SMTP relay that accepts arbitrary From values, exactly as if you were running a mailing-list software (which you actually are). Typically GMail will not work well, as it is a personal SMTP, not a corporate one.

from social.

dreispt avatar dreispt commented on August 12, 2024

Using my own SMTP server is not something I want to do.
So my only alternative is to really force the Sender and From addresses to the mail server's user.

from social.

dreispt avatar dreispt commented on August 12, 2024

I missed that one, thanks for pointing it out.
I guess that makes my proposed module redundant.

from social.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.