Sending emails from Linux terminal using SSMTP If you want to know more about SMTP, please use this wiki article about SMTP. Finally, it will be forwarded to the recipient. When you send a mail, your client forwards it to your vendor’s SMTP server which then sends it to recipient’s email vendor. SSMTP is one of such client programs that can help you to send the emails. There are two software pieces needed: SMTP server (hosted by email vendor) and SMTP client that you have in your system. Though vendors like Outlook, Gmail usually use proprietary protocols, they provide SMTP services so that user can access their emails from any client. SMTP (Simple Mail Transfer Protocol) is one of the protocols (set of rules and formats for data and communication) used in sending and receiving emails. Let’s see more about sending emails from Linux command line. This is one of the many use cases where sending mails from Linux can help you big time. With the mail setup, it can automatically send you emails in case there is an alert. You use Fail2Ban on it to thwart unwarranted logins. Suppose you have a Linux server that you need to keep secured. The main question is why would you take the trouble of sending emails from Linux terminal? Did you know that you can send mail from Linux command line? That’s not surprising, I believe.
0 Comments
Leave a Reply. |