fix invalid port check
add missing smtp protocol configuration
update to 0.4.5