I installed sendmail on my server (ubuntu 16). I set up the configuration file on smtp.google.com and googl`a box. Mail is sent. All is well. But I want to send mail from my server. That is, I want to deploy smtp on my server and configure an agent for it. How to do it?
And the second question. How to send messages from different mailboxes through smtp, that is, to replace Mail-From in headers. (send from site). And if it is impossible through smtp, how is it possible?