bodhi: use fqdn for bastion/smtp host

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2025-07-07 09:04:11 -07:00
parent bd65adc71d
commit 21f6b5acf8
3 changed files with 4 additions and 4 deletions

View file

@ -72,7 +72,7 @@ class = "logging.handlers.SMTPHandler"
formatter = "simple"
level = "ERROR"
filters = ["rate_limit"]
mailhost = "bastion"
mailhost = "bastion.fedoraproject.org"
{% if env == "staging" %}
fromaddr = "updates@stg.fedoraproject.org"
{% else %}

View file

@ -22,7 +22,7 @@ handlers:
level: ERROR
formatter: generic
filters: [rate_limit]
mailhost: "bastion"
mailhost: "bastion.fedoraproject.org"
{% if env == "production" %}
fromaddr: "updates@fedoraproject.org"
{% else %}

View file

@ -298,7 +298,7 @@ fedora_40_primary_arches = aarch64 x86_64
# The hostname of an SMTP server Bodhi can use to deliver e-mail.
# smtp_server =
{% if env == "production" %}
smtp_server = bastion
smtp_server = bastion.fedoraproject.org
{% endif %}
# The updates system itself. This e-mail address is used as the From address for e-mails that Bodhi
@ -821,7 +821,7 @@ formatter = generic
[handler_smtp]
class = logging.handlers.SMTPHandler
kwargs = {'mailhost':'bastion', 'fromaddr':'updates@stg.fedoraproject.org', 'toaddrs':['bodhiadmin-members@fedoraproject.org'], 'subject':'Bodhi error'}
kwargs = {'mailhost':'bastion.fedoraproject.org', 'fromaddr':'updates@stg.fedoraproject.org', 'toaddrs':['bodhiadmin-members@fedoraproject.org'], 'subject':'Bodhi error'}
level = ERROR
formatter = generic