It eliminates a possibility that unintended data transfer between lines is performed for data received by an
Internet fax function in a conventional apparatus such as an MFP connectable to the lines. In the MFP, a transfer restriction condition is set for each transfer condition related to
the Internet fax function, data from an external apparatus is received by
the Internet fax function via any of plural network interfaces, whether to execute transmission of the received data is determined based on information indicating the
network interface used in the data reception and destination information according to the transfer condition, the transmission of the data determined to execute the transmission is executed using the destination information via any of the plural network interfaces, and the transmission of the data determined to not execute the transmission is not executed using the destination information.