Support smtplib for sending emails

Support mail delivery without a local MTA. Instead, an SMTP server can
now be configured using the smtp-server option in the [notifications]
section. In order to use this option, the value of the sendmail option
must be empty.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2020-02-07 13:22:29 +01:00
parent 3f2654e79e
commit de549fb2d5
2 changed files with 20 additions and 5 deletions

View file

@ -47,7 +47,8 @@ window_length = 86400
[notifications]
notify-cmd = /usr/local/bin/aurweb-notify
sendmail = /usr/bin/sendmail
sendmail =
smtp-server = localhost
sender = notify@aur.archlinux.org
reply-to = noreply@aur.archlinux.org