Merge branch '5886-sender-rejected-inactive-domain' into 'develop'

Resolve ""Sender address rejected: not logged in" when sending from remote server with a inactive local domain"

Closes #5886

See merge request !1329
1 job for develop in 12 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Syntax
passed #8653
syntax_diff:lint

00:00:12