Postfix for Gmail: Difference between revisions
m Cleanup for the secrets configuration, improved references formatting. |
msmtp |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
This is how to setup Postfix to use Gmail as a relay host, so it can send email via Gmail, e.g. for output of cronjobs etc. | This is how to setup Postfix to use Gmail as a relay host, so it can send email via Gmail, e.g. for output of cronjobs etc. | ||
== Option: use msmtp instead of postfix == | |||
Msmtp seems to be easier to configure, see [[ZFS#Mail_notifications_(ZFS_Event_Daemon)]] | |||
== Secrets Configuration == | == Secrets Configuration == | ||
| Line 33: | Line 36: | ||
# optional: Forward mails to root (e.g. from cron jobs, smartd) | # optional: Forward mails to root (e.g. from cron jobs, smartd) | ||
# to me privately and to my work email: | # to me privately and to my work email: | ||
virtual_alias_maps = "inline:{ {root=you@ | virtual_alias_maps = "inline:{ {root=you@work.example, you@home.example} }"; | ||
}; | }; | ||
}; | }; | ||