Notification email with office 365

Sylvian Doudet

New Member
Jun 7, 2024
9
0
1
I would send notification email when backup
I have this message "Could not test target: could not notify via endpoint(s): office365: Connection error: Network is unreachable (os error 101) (500)"

This is my conf of smtp
1717748858364.png

My pve is connected to network

Thank's
 
Hey,

can you ping outlook.office365.com?
 
Does journalctl -f say anything while you try to send the test notification?
 
It's a bit difficult to use Basic Auth with M365. More and more Email-Providers restrict their connection to OAUTH per default.
Are there any plans to integrate OAUTH in Proxmox for mail-auth?
 
Does journalctl -f say anything while you try to send the test notification?
1718001994061.png

This is my file snmp
Code:
Ip: Forwarding DefaultTTL InReceives InHdrErrors InAddrErrors ForwDatagrams InUnknownProtos InDiscards InDelivers OutRequests OutDiscards OutNoRoutes ReasmTimeout ReasmReqds ReasmOKs ReasmFails FragOKs FragFails FragCreates OutTransmits
Ip: 2 64 124144582 0 56635 0 0 0 123174892 112693353 0 16 0 0 0 0 0 0 0 112693353
Icmp: InMsgs InErrors InCsumErrors InDestUnreachs InTimeExcds InParmProbs InSrcQuenchs InRedirects InEchos InEchoReps InTimestamps InTimestampReps InAddrMasks InAddrMaskReps OutMsgs OutErrors OutRateLimitGlobal OutRateLimitHost DestUnreachs OutTimeExcds OutParmProbs OutSrcQuenchs OutRedirects OutEchos OutEchoReps OutTimestamps OutTimestampReps OutAddrMasks OutAddrMaskReps
Icmp: 78056 50 0 1112 0 0 0 0 76903 41 0 0 0 0 78087 0 0 0 1113 0 0 0 0 71 76903 0 0 0 0
IcmpMsg: InType0 InType3 InType8 OutType0 OutType3 OutType8
IcmpMsg: 41 1112 76903 76903 1113 71
Tcp: RtoAlgorithm RtoMin RtoMax MaxConn ActiveOpens PassiveOpens AttemptFails EstabResets CurrEstab InSegs OutSegs RetransSegs InErrs OutRsts InCsumErrors
Tcp: 1 200 120000 -1 197351 67751 12 160 8 123037823 323706502 21889 0 181187 0
Udp: InDatagrams NoPorts InErrors OutDatagrams RcvbufErrors SndbufErrors InCsumErrors IgnoredMulti MemErrors
Udp: 3622 1 0 3712 0 0 0 55390 0
UdpLite: InDatagrams NoPorts InErrors OutDatagrams RcvbufErrors SndbufErrors InCsumErrors IgnoredMulti MemErrors
UdpLite : 0 0 0 0 0 0 0 0 0

the host and the port are wrong....here u find correct settings:https://kinsta.com/de/wissensdatenbank/office-365-smtp/
I change the host and the port but any don't change

It's a bit difficult to use Basic Auth with M365. More and more Email-Providers restrict their connection to OAUTH per default.
Are there any plans to integrate OAUTH in Proxmox for mail-auth?
I don't know, but if I have to I will do it
 
View attachment 69537

This is my file snmp
Code:
Ip: Forwarding DefaultTTL InReceives InHdrErrors InAddrErrors ForwDatagrams InUnknownProtos InDiscards InDelivers OutRequests OutDiscards OutNoRoutes ReasmTimeout ReasmReqds ReasmOKs ReasmFails FragOKs FragFails FragCreates OutTransmits
Ip: 2 64 124144582 0 56635 0 0 0 123174892 112693353 0 16 0 0 0 0 0 0 0 112693353
Icmp: InMsgs InErrors InCsumErrors InDestUnreachs InTimeExcds InParmProbs InSrcQuenchs InRedirects InEchos InEchoReps InTimestamps InTimestampReps InAddrMasks InAddrMaskReps OutMsgs OutErrors OutRateLimitGlobal OutRateLimitHost DestUnreachs OutTimeExcds OutParmProbs OutSrcQuenchs OutRedirects OutEchos OutEchoReps OutTimestamps OutTimestampReps OutAddrMasks OutAddrMaskReps
Icmp: 78056 50 0 1112 0 0 0 0 76903 41 0 0 0 0 78087 0 0 0 1113 0 0 0 0 71 76903 0 0 0 0
IcmpMsg: InType0 InType3 InType8 OutType0 OutType3 OutType8
IcmpMsg: 41 1112 76903 76903 1113 71
Tcp: RtoAlgorithm RtoMin RtoMax MaxConn ActiveOpens PassiveOpens AttemptFails EstabResets CurrEstab InSegs OutSegs RetransSegs InErrs OutRsts InCsumErrors
Tcp: 1 200 120000 -1 197351 67751 12 160 8 123037823 323706502 21889 0 181187 0
Udp: InDatagrams NoPorts InErrors OutDatagrams RcvbufErrors SndbufErrors InCsumErrors IgnoredMulti MemErrors
Udp: 3622 1 0 3712 0 0 0 55390 0
UdpLite: InDatagrams NoPorts InErrors OutDatagrams RcvbufErrors SndbufErrors InCsumErrors IgnoredMulti MemErrors
UdpLite : 0 0 0 0 0 0 0 0 0

Careful. This is SNMP - not SMTP.
The SNMP-thingie is a bug in the latest Kernels/SNMP-Implementation. I encounter the same messages in the logfile. This is not related to your problem.

https://learn.microsoft.com/en-us/e...-send-email-using-microsoft-365-or-office-365
 
  • Like
Reactions: _gabriel
Careful. This is SNMP - not SMTP.
The SNMP-thingie is a bug in the latest Kernels/SNMP-Implementation. I encounter the same messages in the logfile. This is not related to your problem.

https://learn.microsoft.com/en-us/e...-send-email-using-microsoft-365-or-office-365
Yes I didn't see why snmp would intervene in this but you never know.
But I don't have any other message.
Everything is configured well, maybe there is a package to install or something like that?
 
Did u enabled SMTP in your office365 account like in the link mentioned?
 
It's a bit difficult to use Basic Auth with M365. More and more Email-Providers restrict their connection to OAUTH per default.
Are there any plans to integrate OAUTH in Proxmox for mail-auth?
Support for OAUTH might get added in the future, but at this time nobody is working on it. I have not checked yet if the mailing library that we use (lettre) supports it though.
 
Did u enabled SMTP in your office365 account like in the link mentioned?
Yes it's active

Support for OAUTH might get added in the future, but at this time nobody is working on it. I have not checked yet if the mailing library that we use (lettre) supports it though.
OAUTH allows the reception of emails, SMTP allows the sending of emails
I can do it with my powershell scripts with SMTP, I don't understand why via PVE I can't do it
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!