I wrote:
What is not clear to me, is, if mail (1) for sending emails always do smptp to localhost:25 (or :587?) , if one can change this. Perhaps there is something to do.
It was a lapsus. I knew the solution. mail (1) uses sendmail. And I did configure sendmail to use gmail smtp. There is nothing to change in mail (1). Rodrigo.