Skip to content

Commit cf12356

Browse files
phile314-isskadomenkozar
phile314-isska
authored andcommittedNov 29, 2016
Document ssmtp for email notifications. (#426)
1 parent 8758d71 commit cf12356

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
 

Diff for: ‎doc/manual/projects.xml

+20
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,26 @@ build_exotic =
471471

472472
<xi:include href="declarative-projects.xml" />
473473

474+
<section>
475+
<title>Email Notifications</title>
476+
<para>
477+
Hydra can send email notifications when the status of a build changes. This provides
478+
immediate feedback to maintainers or committers when a change causes build failures.
479+
</para>
480+
481+
<para>
482+
The simplest approach to enable Email Notifications is to use the ssmtp package, which
483+
simply hands off the emails to another SMTP server. For details on how to configure ssmtp,
484+
see the documentation for the <varname>networking.defaultMailServer</varname> option.
485+
To use ssmtp for the Hydra email notifications, add it to the path option of the Hydra services
486+
in your <filename>/etc/nixos/configuration.nix</filename> file:
487+
<programlisting>
488+
systemd.services.hydra-queue-runner.path = [ pkgs.ssmtp ];
489+
systemd.services.hydra-server.path = [ pkgs.ssmtp ];
490+
</programlisting>
491+
</para>
492+
</section>
493+
474494
</chapter>
475495

476496
<!--

0 commit comments

Comments
 (0)