meta data for this page
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:mail:msmtp [2019/05/28 11:21] niziak created |
linux:mail:msmtp [2020/10/20 07:19] (current) niziak |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== MSMTP ====== | ||
+ | |||
<code bash> | <code bash> | ||
sudo apt-get install msmtp-mta | sudo apt-get install msmtp-mta | ||
Line 4: | Line 6: | ||
<file | /etc/msmtprc> | <file | /etc/msmtprc> | ||
- | account gmail | ||
- | auth plain | ||
- | host smtp.gmail.com | ||
- | port 587 | ||
- | |||
- | user tools@gmail.com | ||
- | password 123456 | ||
- | |||
- | from tools@gmail.com | ||
# Use TLS. | # Use TLS. | ||
Line 24: | Line 17: | ||
- | account default : gmail | + | |
+ | account gmail1 | ||
+ | auth plain | ||
+ | host smtp.gmail.com | ||
+ | port 587 | ||
+ | user tools@gmail.com | ||
+ | password 123456 | ||
+ | from tools@gmail.com | ||
+ | |||
+ | account gmail2 | ||
+ | auth plain | ||
+ | host smtp.gmail.com | ||
+ | port 587 | ||
+ | user backups@gmail.com | ||
+ | password 123456 | ||
+ | from backups@gmail.com | ||
+ | |||
+ | |||
+ | account default : gmail1 | ||
</file> | </file> | ||
Line 33: | Line 44: | ||
<file | /etc/aliases> | <file | /etc/aliases> | ||
+ | mailer-daemon: user@domain.org | ||
postmaster: user@domain.org | postmaster: user@domain.org | ||
+ | nobody: user@domain.org | ||
+ | hostmaster: user@domain.org | ||
+ | webmaster: user@domain.org | ||
+ | www: user@domain.org | ||
+ | ftp: user@domain.org | ||
+ | abuse: user@domain.org | ||
+ | noc: user@domain.org | ||
+ | security: user@domain.org | ||
+ | |||
+ | backuppc: user@domain.org | ||
+ | postgres: user@domain.org | ||
+ | www-data: user@domain.org | ||
+ | |||
root: user@domain.org | root: user@domain.org | ||
+ | |||
+ | jenkins: user@domain.org | ||
+ | user: user@domain.org | ||
# The default is the default email to which an email will be sent if no match for a user is found. | # The default is the default email to which an email will be sent if no match for a user is found. | ||
default: user@domain.org | default: user@domain.org | ||
</file> | </file> |