完了メールが送信されないのはSMTPが正しくないため

Have you tried ./discourse-doctor
Also you should read this.