Re: Using Exchange online as relay

2023-04-02 Thread Jean-Marc Annonier
Thanks for the suggestion Edmund. You're right I should have looked at why IPV6 are failing :-) In the end, I've simply disabled IPV6 on the host and now it resolves smtp.office365.com directly into an IPV4 address. No more delays! Thanks. Apr 3 07:12:29 raspberrypi4GB smtpd[106424]: 92d759cde3d1

Re: Using Exchange online as relay

2023-04-02 Thread Edmund Lodewijks
Hi! Sorry, me again :-) > > Is there a way to tell opensmtpd to relay only using IPV4 for mta? […] > You could adapt your match line to only allow sending from your ipv4 address by adding “from src [your ipv4 address]. This is documented on the man-page. It’s not a perfect solution, but I think i

Re: Using Exchange online as relay

2023-04-02 Thread Jean-Marc Annonier
Sorry, me again :-) Is there a way to tell opensmtpd to relay only using IPV4 for mta? I googled it I found that "limit mta inet4" doesn't work and prevents opensmtpd from starting. The manual doesn't say anything about it. The reason is that opensmtpd tries first a bunch of IPV6 addresses corres

Re: Using Exchange online as relay

2023-03-31 Thread Jean-Marc Annonier
Thanks Thomas, it works!! Cheers, JM On Fri, 31 Mar 2023 at 22:16, Thomas Bohl wrote: > Hello, > > > action "relay" relay host smtp+tls://smtp.office365.com:587 > > auth > > the relay-url is missing the label. > > man smtpd.conf > ... > The format for relay-url is > [proto://[label@]]host[:po

Re: Using Exchange online as relay

2023-03-31 Thread Thomas Bohl
Hello, action "relay" relay host smtp+tls://smtp.office365.com:587 auth the relay-url is missing the label. man smtpd.conf ... The format for relay-url is [proto://[label@]]host[:port]. ... The label corresponds to an entry in a credentials table, as documented in table(5). It is used with

Using Exchange online as relay

2023-03-30 Thread Jean-Marc Annonier
Hello all, Does anyone have a working configuration to use Exchange Online as a relay? I've followed Microsoft instructions here: https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365