Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

ODOO 15 : Microsoft365 - send on behalf of

Subscriure's

Get notified when there's activity on this post

This question has been flagged
outgoingmailserverMicrosoft365
4 Respostes
8435 Vistes
Avatar
Boujraf

Dear,

I have configured ongoing mail server with success.

and incoming mail server with success.



- system parameters


When I try to send a message to a contact and :

- I am logged as the user "accounting" who registered the email address in outgoing / incoming mail server, In this case From : accounting@xxx\.be,\ the\ message\ is\ sent\ successfully\. 

\-\ I\ am\ logged\ as\ the\ user\ ,\ in\ this\ case\ From\ : myself@xxx\.be\ I\ got\ an\ error\ message\. 

SMTPDataError:\ 554\ 5\.2\.252\ SendAsDenied;\ accounting@xxx\.be not\ allowed\ to\ send\ as\ myself@xxx.be STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied;


Any advices to close my issue.


Best Regards

1
Avatar
Descartar
Avatar
Nils Coenen
Best Answer

There is a good description provided by Ventortech how to setup 365 mail in odoo in order to make it work. Just look for the blog "Office 365 and Odoo.sh and Odoo Online. How to configure emails". This can help a lot.

However... I already have had the situation, where an additional security level was involved. Due to this we had to setup the 365 mail account and had to make sure, that all emails going out are handled only by this emailadress without the need of "sending on behalf". I could have a look to the history if necessary. 

In General... From my point of view integreating 365 Mail in Odoo can be a pain... but it works.

0
Avatar
Descartar
Boujraf Youssef

Thanks Dear
Yes I followed the steps from Ventortech and got an update of the technical doc they made.
But with Microsoft all the emails from the same domain managed by Microsoft365, if you are not assigning ‘send on behalf’ each member of the same domain, no way to send.
Now with the extra module in oca, I am able to send to any contact any email and get back through incoming email.

Now my issue is working with multi-company, how to have one domain per company and able to create Alias

Best regards

Avatar
Tobias Foit
Best Answer

Hi Boujraf Youssef!

Have you solved this issue by now? Did you try the steps suggested by Mahmoud, regarding the permissions in Office 365 / Outlook?

0
Avatar
Descartar
Avatar
Boujraf
Autor Best Answer

Dear,

Thanks for your quick answer.

My concern is :

- I have only registered ONE mail server (outgoing/incoming mail server) for the ODOO server.
I am expecting all the email exchange will be performed by this account. The email address used for is : accounting@xxx\.be\.

For\ example\ :

\-\ if\ Digest\ is\ sent\ to\ all\ users,\ it\ is\ done\ with\ accounting@xxx\.be\ account\.

\-\ If\ any\ user\ wants\ to\ send\ any\ message\ to\ different\ user\ registered\ in\ Odoo\ or\ external,\ I\ am\ expecting\ Odoo\ uses\ the\ mail\ server\ registered\ with\ accounting@xxx\.be

In\ my\ setup,\ I\ will\ not\ register\ each\ odoo\ user\ with\ their\ own\ email\ address\ account\.\ Most\ of\ the\ email\ address\ are\ "alias"\ or\ external\.

I\ don't\ believe\ Odoo\ is\ unable\ to\ process\ email\.

Then\ I\ am\ user\ "myself@xxx\.be"\ wants\ to\ send\ a\ message\ to\ "mycustomer@gmail.com" through Odoo. How to setup Odoo to have no issue with on behalf of ?

Best Regards,

Youssef


0
Avatar
Descartar
Avatar
Mahmoud El Bouyahyaoui
Best Answer

The error message "SMTPDataError: 554 5.2.252 SendAsDenied; accounting@xxx.be not allowed to send as myself@xxx.be STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied" is indicating that the user "myself@xxx.be" is not authorized to send email on behalf of the email address "accounting@xxx.be".

This is likely because the user "myself@xxx.be" does not have the necessary permissions to send email on behalf of the "accounting@xxx.be" email address.

Here are a few things you can try to resolve this issue:

  1. Verify that "myself@xxx.be" has the correct permissions to send email on behalf of "accounting@xxx.be" in the email server (Exchange server or Office 365) that you are using.

  2. Check the permissions of the user "myself@xxx.be" in the Office 365 or Exchange server. The user should be assigned with 'Send on Behalf' permissions to the email address accounting@xxx.be.

  3. Check the settings of the Office 365 or Exchange server, and make sure that the feature "Send on Behalf" is enabled and configured correctly.

  4. Confirm that the email address "accounting@xxx.be" is properly added and verified in the Office 365 or Exchange server, and it should be the default email address for the user "accounting".

  5. Try to use the SMTP settings of the email address "accounting@xxx.be" instead of the SMTP settings of "myself@xxx.be" in the outgoing mail server configuration in Odoo.

It's also possible that the issue is related to specific configurations of your Office 365 or Exchange server, and that you may need to consult with your IT department or an Office 365/Exchange administrator to resolve it.

0
Avatar
Descartar
Boujraf
Autor

Dear,

Thanks for your quick answer.

My concern is :

- I have only registered ONE mail server (outgoing/incoming mail server) for the ODOO server.
I am expecting all the email exchange will be performed by this account. The email address used for is : accounting@xxx\.be\.

For\ example\ :

\-\ if\ Digest\ is\ sent\ to\ all\ users,\ it\ is\ done\ with\ accounting@xxx\.be\ account\.

\-\ If\ any\ user\ wants\ to\ send\ any\ message\ to\ different\ user\ registered\ in\ Odoo\ or\ external,\ I\ am\ expecting\ Odoo\ uses\ the\ mail\ server\ registered\ with\ accounting@xxx\.be

In\ my\ setup,\ I\ will\ not\ register\ each\ odoo\ user\ with\ their\ own\ email\ address\ account\.\ Most\ of\ the\ email\ address\ are\ "alias"\ or\ external\.

I\ don't\ believe\ Odoo\ is\ unable\ to\ process\ email\.

Then\ I\ am\ user\ "myself@xxx\.be"\ wants\ to\ send\ a\ message\ to\ "mycustomer@gmail.com" through Odoo. How to setup Odoo to have no issue with on behalf of ?

Best Regards,

Youssef

Boujraf Youssef

I am still with this issue.
As soon I am not using the user with the email account registered as outgoing email server, same error message.

Is there any system parameters to add and or install an extra module from OCA?

Best Regards,

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
Configure outgoing mail server as Constant Contact
outgoingmailserver
Avatar
Avatar
Avatar
2
de maig 24
3006
Cannot setup Outgoing Mail Server with Microsoft Business Mail Server
outgoingmailserver
Avatar
Avatar
1
d’abr. 22
7886
Outlook sync is sending old meeting requests in bulk
Agenda Microsoft365
Avatar
Avatar
Avatar
Avatar
Avatar
5
de juny 25
4711
Error Sending Email: Client Not Authenticated
email Microsoft365
Avatar
Avatar
2
de des. 24
2904
Why Email is going with partner name except with the name set on Outgoing mail server?
outgoingmailserver odoo17
Avatar
Avatar
1
de set. 24
2068
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now