Postfix for Gmail: Difference between revisions

m Cleanup for the secrets configuration, improved references formatting.
Tie-ling (talk | contribs)
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@gmail.com, you@work.com} }";
       virtual_alias_maps = "inline:{ {root=you@work.example, you@home.example} }";
     };
     };
   };
   };