Hi ERPNext community
I’m trying to configure an email domain with Office 365
But it is useless, knowing that all the required data are entered correctly
Is there any solution ?
Hi ERPNext community
Long time user here. Tried to do this for weeks with zero success. Good luck!
If its the Godaddy 365, sorry but just quit already.
The way to do it is to use third-party tools, like twilio for SMTP, and maybe forwarding to a compatible email for incoming. Its a hack really.
Are you trying to configure SMTP alone?
Have done it here and using SMTP alone setup and am happy to share with you the settings.
Please share your solution. I would like to know how its done!
Hi @irukandji , Sorry I didn’t get back to you sooner
I’m Try to configure SMTP alone , But when I contacted the Office 365 provider, he said that it is not possible to directly access () except through the internal exchange that I have in the company, the internal exchange has been reached, but no result.
Solutions and results will be shared with you .
Apologies guys, but here it goes.
What you need to understand is how the SMTP email works in MS office 365.
There are three options of SMTP configuration or settings in Office 365.
A bit of reading on this article will let you understand and will help you how it works.
What we are using in our ERPnext setup is option 1 which is “Authenticate your device or application directly with a Microsoft 365 or Office 365 mailbox, and send mail using SMTP AUTH client submission”
Here are the screenshots of our ERPNExt settings.
We have set a default email account for sending, screenshot below, this is under email account list.
We are using outlook.com domain which is there by default in ERPnext, if you are using your own domain with O365 then you need to create one, I think when you create an email account it will also prompt you to create an email domain or it will automatically add the domain in the email domain list. Screenshot below.
Now on the article link I mentioned, read option 1 " Requirements for SMTP AUTH client submission" so you must meet those requirements.
If you manage to add the email account in ERPnext and it accepted the password then it means that it was able to authenticate with success. The next thing to do or try is to try sending an email from erpnext, without any links would be preferable to avoid it being blocked. Once you do send a test email check that in the email queue list, make sure the status says “SENT”.
Check the email account sign in activity that you used to configure, you either login with that account and then go to the security section and click on sign-in activity. You should see your sign in activity there that says Protocol: SMTP, your IP address, account alias, and approximate location of where your ERPnext server is hosted. You may need to allow it if it is says that it is unsecure or blocked.
Hope this helps you out, let me know how you go.
thank you very much
I use the hosted ERPNext service and am still on V12.
On my Microsoft Office 365 service I had to specifically enable SMTP Authentication on the outgoing mailbox. I could only do this via PowerShell, not via any of the Microsoft Admin interfaces.
PS > Connect-ExchangeOnline -UserPrincipalName <admin user account name@domain> PS > Set-CASMailbox -Identity <mailbox name@domain> -SmtpClientAuthenticationDisabled $false
Now, wait a few minutes for the change to take effect.
The emails are now sent correctly from ERPNext.
I have also added all the poneytelecom IP address ranges to my domain’s SPF records. This means that any email originating from the ERPNext hosted service will be accepted as an authorised sender of email for fosina.fr. I don’t know if this is only valid for some of ERPNext’s hosted service, or if the entire hosting is contained within these IP addresses.
This is the TXT record contents for my domain.
v=spf1 include:spf.protection.outlook.com ip4:126.96.36.199/16 ip4:188.8.131.52/16 ip4:184.108.40.206/18 ip4:220.127.116.11/19 ip4:18.104.22.168/19 ip4:22.214.171.124/19 ip4:126.96.36.199/19 ip4:188.8.131.52/16 ip4:184.108.40.206/16 ip4:220.127.116.11/16 ip4:18.104.22.168/15 ip6:2001:bc8::/32 -all
I appreciate your help @fishter
I Will do, and let you know the results