Fix main_relayhost validation

According to README "specify a domain name, hostname, hostname:port,
[hostname]:port, [hostaddress] or [hostaddress]:port." but module was
only matching for valid domain name. This commit ensures that all
possible variations of relayhost can be set.