Comments (11)
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.
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.
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.
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.
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.
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.
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.
This is what I was trying to explain you 😉
from social.
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.
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.
I missed that one, thanks for pointing it out.
I guess that makes my proposed module redundant.
from social.
Related Issues (20)
- Apply for several data-models with one System Parameter. HOT 1
- [14.0][16.0] Image gallery for mailing list HOT 1
- [16.0] mass_mailing_unique: error on install if existing 'mailing.contact' records with no email
- [16.0] python library dependency conflict 'pyparsing' (social/server-ux) HOT 9
- [15.0] base_search_mail_content compatibility
- Add CC and BCC to Followers
- mail_activity_done: wrong counters
- mail_drop_target: It no longer works with Outlook version 1.2024.223.300.
- [15.0] mail_drop_target - RPC_ERROR Odoo Server Error - (bug)
- [15.0] mail_activity_team: duplicated notifications (probably newer versions are affected)
- reply for imcoming mesage add catchall email
- Mail Activity Board available for v17
- [16.0] mail_gateway_whatsapp unable to send messages to client HOT 2
- [16.0] base_search_mail_content: Unable to access collaborator view in tasks within a project as portal user
- [17.0] mail_debrand - Button to view the quotation broken in debranded mail HOT 2
- [16.0]mail_optional_follower_notification: Not working on invoices.
- [15][16] base_search_mail_content: Don't search in the log information HOT 3
- mail_send_confirmation Can we not have the confirmation on Discuss Channel Messages?
- mail_drop_target: mail_drop_target.disable_notify should be True by default
- [17.0] mail_tracking starting endless email loop HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from social.