SMTP relay will send email to adresses inside our domain but not externally

I am pulling my hairs off!

The server will send emails to local adresses but refuses to send anything outside…

I would get this error:

Swift_TransportException: Expected response code 354 but got code “503”, with message "503 5.5.2 Need rcpt command [private info here]

  • I have created MX TXT etc. forwards on my DNS zones
  • I created forwarding rules in Office 365 and exchange
  • Other services on the exact same server are able to send/receive mail from anywhere

I am so tired!

Edit: We are running the latest stable release (20.0.6) and are behind Traefik reverse proxy

you run your own mailserver?

why do you think it’s a NC-problem then?

We Use O365 Exchange server
I did all the config in the Exchange server, like we do for all our other services
I entered the parameters inside Nextcloud and it works only for internal domains
Microsoft’s logs don’t even show email trying to be sent when using external addresses.

Oh for the love of god! it works now!

For some reason, entering would translate as in the config! I simply open config.php and manually forced no-reply and tadaaa!
Also added timeout 30 to make sure as many suggested…