i want make my linux server to receive mail from an host (LAN but if possible through Internet) and than relay to Gmail.
I made the second part with ssmtp let the server send mail through Gmail using
ssmtp email@example.com < msg.txt
The other part is needed for example for use program that integrate some smtp alarm function. The majority of this program doesn't support sending with credential so i need to pass through a server that doesn't need it.
The final result must be:
Host_with_smtp_alarm_function -> server_smtp -> Gmail_server
How can i make this work?
My host have a mask to fill with smtp server info. Filling with ip and port resulting in a "impossible to connect" The linux server are not listening for a connection, so send but not receive.
netstat -a confirm that.