Is it possible to send an email via the "sendmail" command from a local machine?

Asked

Viewed 588 times

3

I just learned to use my Amazon server to send emails with the command sendmail. Everything 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 he can send with sendmail, I could also through my machine, to do tests, for example?

  • You are using Linux ?

  • 1

    @Jorgecosta yes, I tagged the question.

  • Sorry I hadn’t checked

  • @Jorgecosta Ubuntu 16, to facilitate even more :p

1 answer

1

Simply set up a valid SMTP on 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 locate the file sendmail.ini can try the command:

$ find -iname "sendmail.ini"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.