Hello Salimata ba,
When outbound mail is flagged as spam, the most common causes are domain reputation, SPF/DKIM/DMARC misconfiguration, or the sending IP being listed on a blocklist. You should verify that your DNS records are correctly configured: SPF must include the sending service (v=spf1 include:spf.protection.outlook.com -all for Microsoft 365), DKIM should be enabled in the Exchange Admin Center, and DMARC should be published with a policy that matches your domain’s sending practices. Without these, receiving servers will distrust your mail and route it to Junk.
On the inbound side, if you are not receiving mail, check the Exchange Online Protection (EOP) quarantine and transport rules. It is possible that your domain’s MX records are misconfigured, pointing to the wrong host, or that inbound filtering is rejecting messages. You can confirm MX records with nslookup -type=mx yourdomain.com and ensure they point to yourdomain-com.mail.protection.outlook.com.
If both outbound and inbound are failing, the root cause is almost certainly DNS or mail flow configuration rather than Outlook client settings. I recommend reviewing the Exchange Admin Center under Mail Flow > Accepted Domains and Connectors to ensure your domain is properly registered and mail routing is intact.
I hope you've found something useful here. If it helps you get more insight into the issue, it's appreciated to accept the answer. Should you have more questions, feel free to leave a message. Have a nice day!
Domic Vo.