Skip to content

Instantly share code, notes, and snippets.

@jmkim
Last active February 23, 2025 06:49
Show Gist options
  • Save jmkim/d248de30657df4a93e9b3e12f51e05cb to your computer and use it in GitHub Desktop.
Save jmkim/d248de30657df4a93e9b3e12f51e05cb to your computer and use it in GitHub Desktop.
sudo apt install ssmtp
sudo vi /etc/ssmtp/ssmtp.conf
#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=postmaster

# The place where the mail goes. The actual machine name is required no 
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=mail

# Where will the mail seem to come from?
#rewriteDomain=

# The full hostname
hostname=HOSTNAME_HERE

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
#FromLineOverride=YES
# sSMTP aliases
# 
# Format:	local_account:outgoing_address:mailhub
#
# Example: root:[email protected]:mailhub.your.domain[:port]
# where [:port] is an optional port number that defaults to 25.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment