Unable to connect to mail server

Due to firewall barriers and securities, we have servers which cannot get into the mail server.
However, it can connect to the Lotus Notes Server.
Can a command line be used to fix this problem?
How can we connect and send SMTP mail using Notes Mail 5.1xthrough normal Notes protocols port 1352?
