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
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:
* myhostname = <my FQDN>
* relayhost = <my SMTP server>
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.
[cid:232bad41-11e8-4748-868c-92c213c3c658]
Erico Mendonca
Premium Services
SUSE
________________________________
From: Harald Welte
Hey, On 27.06.22 18:45, Harald Welte wrote:
Do I have to run a local MTA on the OBS master itself?
At least for relaying yes.
Or can I somehow configure a SMTP host (+ credentials for authenticated SMTP) ?
We are using delivery with /usr/sbin/sendmail, however your local MTA configuration then handles this is up to you. Henne -- Henne Vogelsang http://www.opensuse.org Everybody has a plan, until they get hit. - Mike Tyson
participants (3)
-
Erico Mendonca
-
Harald Welte
-
Henne Vogelsang