ssmtp mail server setup and configuration

image_pdfimage_print

Install ssmtp Install ssmtp: sudo apt-get install ssmtp

Edit the ssmtp config file : gksu gedit /etc/ssmtp/ssmtp.conf

Enter this in the file:

#!!! Do not use  STARTTLS and  TLS  in the same time,  You cant use both of them in the same time. 

 
Enter the email address of the person who will receive your email:

Subject: Sent from a terminal!

Your content goes here. Lorem ipsum dolor sit amet, consectetur adipisicing.

To send the email: Ctrl + D

You can also save the text mentioned in Point 5 into a text file and send it using:

ssmtp recipient_name@gmail.com < filename.txt

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.