If there is a communication protocol and corresponding instructions between the mail machine and the computer, you can use these instructions to interact with the mail machine. The performance of the computer depends on the amount of software calculations it performs; if the calculations are small, even a microcontroller can handle them. Of course, a smartphone can also be used.