ssmtp settings ubuntu 1

ssmtp settings ubuntu

sudo nano /etc/ssmtp/ssmtp.conf

Here is what the above code is Doing:
1. We’re using the nano text editor to open the ssmtp.conf file.
2. We’re adding the following lines to the file:
root=postmaster
mailhub=smtp.gmail.com:587
hostname=raspberrypi
AuthUser=your_email@gmail.com
AuthPass=your_password
FromLineOverride=YES
UseSTARTTLS=YES
3. We’re saving the file and exiting nano.

Similar Posts