Changing the email Port for Nintex Workflow emails.
The below instructions are for older builds of Nintex Workflow. The ability to update the port number has been added to the "Messaging and Notifications" settings of Nintex Administration in later builds.
When I change my outgoing email settings in Central Administration > System Settings > Configure outgoing e-mail settings to use Port 587 for O365 SSL email my email is received as expected from SharePoint Workflows but my Nintex workflow send notification emails fail and the ULS logs are showing that they are still being sent to port 25.
To resolve this issue the web.config needs to be altered to point Nintex Workflow send notification emails to the correct port by adding the below.
The reason this issue occurs is because Nintex uses the API System.Net.Mail.SmtpClient.Send to send emails which is different to Sharepoint which uses SPUtility.SendEmail and this is why the results differ from SharePoint to Nintex.