I have a JIRA 6.3.15 installed on an Ubuntu 14.04 in a VirtualBox VM. The host system for VirtualBox also is an Ubuntu 14.04. I configured JIRA to use SSL (as described here https://confluence.atlassian.com/display/JIRA/Running+JIRA+over+SSL+or+HTTPS ), set up a custom HTTPS port in JIRA's server.xml file, added a forwarding rule for that port in the VM configuration and opened the port in the host's firewall. All of this works fine.
Now I'd like to have JIRA send notification e-mails. I added an SMTP server to the JIRA configuration. This also works fine as long as I have the host system's firewall turned off (i.e. accept all incoming packets). But when the host firewall's default action for incoming packets is set to „Drop“, sending out e-mails from JIRA inside the VM over SMTP fails. The connection test fails with an UnknownHostException. The host firewall's default actions for outgoing and forwarded packets is „Accept“.
So apparently some port for incoming packets needs to be opened in the host system for the JIRA e-mail functionality to work. Could anyone point me to which port this is? I have already tried 465 as both destination and source port without success, and I couldn't find any documentation on this.