Skip to content

Commit

Permalink
Add sample configuration for ssmtp
Browse files Browse the repository at this point in the history
See issue #7
  • Loading branch information
ema committed Nov 16, 2022
1 parent ab2f6f5 commit fd74910
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sample_pet/ssmtp/revaliases
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# pets: destfile=/etc/ssmtp/revaliases, owner=root, group=root, mode=0440
# pets: package=ssmtp
root:[email protected]:smtp.gmail.com:465
localuser:[email protected]:smtp.gmail.com:465
25 changes: 25 additions & 0 deletions sample_pet/ssmtp/ssmtp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# pets: destfile=/etc/ssmtp/ssmtp.conf, owner=root, group=root, mode=0440
# pets: package=ssmtp

# The user that gets all the mails (UID < 1000, usually the admin)
[email protected]

# The mail server (where the mail is sent to), both port 465 or 587 should be acceptable
# See also https://support.google.com/mail/answer/78799
mailhub=smtp.gmail.com:465

# The address where the mail appears to come from for user authentication.
rewriteDomain=gmail.com

# Use implicit TLS (port 465). When using port 587, change UseSTARTTLS=Yes
TLS_CA_FILE=/etc/ssl/certs/ca-certificates.crt
UseTLS=Yes
UseSTARTTLS=No

# Username/Password
AuthUser=username
AuthPass=password
AuthMethod=LOGIN

# Email 'From header's can override the default domain?
FromLineOverride=yes

0 comments on commit fd74910

Please sign in to comment.