Is it possible to send an email by the "sendmail" command of a local machine?

3

I learned a short time ago to use my Amazon server to send emails with the sendmail command. It works perfectly.

I wanted to know if I could do the same thing through my local machine. Because, theoretically, the server is also a machine. If it can send with sendmail , could I also through my machine, to do tests, for example?

    
asked by anonymous 18.07.2018 / 18:13

1 answer

1

Just set up a valid SMTP in sendmail.ini , as I explained in:

something like (example with Gmail):

[sendmail]
smtp_server=smtp.gmail.com
smtp_port=587
default_domain=gmail.com

auth_username=[seuemail]@gmail.com
auth_password=[suasenha]

I believe that if installed "global" can use the command:

$ sudo sendmailconfig

Note to find the file sendmail.ini you can try the command:

$ find -iname "sendmail.ini"
    
18.07.2018 / 21:39