:: commands to open firewall ports for smtp, smtps, msa, pop3s, imaps services
netsh advfirewall firewall add rule name = SMTP dir = in protocol = tcp action = allow localport = 25 profile = PUBLIC
netsh advfirewall firewall add rule name = SMTPS dir = in protocol = tcp action = allow localport = 465 profile = PUBLIC
netsh advfirewall firewall add rule name = MSA dir = in protocol = tcp action = allow localport = 587 profile = PUBLIC
netsh advfirewall firewall add rule name = POP3 dir = in protocol = tcp action = allow localport = 110 profile = PUBLIC
netsh advfirewall firewall add rule name = POP3S dir = in protocol = tcp action = allow localport = 995 profile = PUBLIC
netsh advfirewall firewall add rule name = IMAP dir = in protocol = tcp action = allow localport = 143 profile = PUBLIC
netsh advfirewall firewall add rule name = IMAPS dir = in protocol = tcp action = allow localport = 993 profile = PUBLIC
netsh advfirewall firewall add rule name=DOMINO dir=IN protocol=TCP action=allow localport=1352 profile=PUBLIC
netsh advfirewall firewall add rule name = SMTP dir = in protocol = tcp action = allow localport = 25 profile = PUBLIC
netsh advfirewall firewall add rule name = SMTPS dir = in protocol = tcp action = allow localport = 465 profile = PUBLIC
netsh advfirewall firewall add rule name = MSA dir = in protocol = tcp action = allow localport = 587 profile = PUBLIC
netsh advfirewall firewall add rule name = POP3 dir = in protocol = tcp action = allow localport = 110 profile = PUBLIC
netsh advfirewall firewall add rule name = POP3S dir = in protocol = tcp action = allow localport = 995 profile = PUBLIC
netsh advfirewall firewall add rule name = IMAP dir = in protocol = tcp action = allow localport = 143 profile = PUBLIC
netsh advfirewall firewall add rule name = IMAPS dir = in protocol = tcp action = allow localport = 993 profile = PUBLIC
netsh advfirewall firewall add rule name=DOMINO dir=IN protocol=TCP action=allow localport=1352 profile=PUBLIC