I run a private OBS instance at a customer, and the mail notifications work fine.

This is what I had to change at the local MTA (postfix), in /etc/postfix/main.cf:
or if you're running openSUSE/SLE for the MTA, just set the variable POSTFIX_RELAYHOST to "[<my SMTP server>]" (with the square brackets).

And set the username/password in /etc/postfix/sasl_passwd. If you're using TLS you may need to set up relay_ccerts as well. 

In this case I'm using a customer-provided internal SMTP server.


Erico Mendonca
Premium Services
SUSE


From: Harald Welte <laforge@gnumonks.org>
Sent: Monday, June 27, 2022 1:45 PM
To: opensuse-buildservice@opensuse.org <opensuse-buildservice@opensuse.org>
Subject: How to configure build failure notification mails in self-hosted OBS
 
Hi all,

I'm interested in how to enable failed build notification emails in a self-hosted
OBS installation.  I tried RTFM but couldn't find anything about this
topic in the administration guide at
https://openbuildservice.org/help/manuals/obs-admin-guide/

Do I have to run a local MTA on the OBS master itself?  Or can I somehow
configure a SMTP host (+ credentials for authenticated SMTP) ?

Thanks in advance.  Might be worth adding a sentence about this to the
manual, too.

Regards,
        Harald
--
- Harald Welte <laforge@gnumonks.org>           http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)