Actually use the smtp port from settings

fix #4003