Email for completion not sending because smtp are not correct

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