Project

General

Profile

Actions

action #80812

closed

Fix mail sending on o3 size:S

Added by okurz about 3 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
2020-12-08
Due date:
% Done:

0%

Estimated time:

Description

Observation

The following error was found by staring at o3 logs out of boredom:

postfix/smtp[18623]: to=<o3-admins@suse.de>,status=deferred (Host or domain name not found. Name service error for name=relay.infra.opensuse.org type=AAAA Host not found

Acceptance Criteria

AC1: Mail sending works

Suggestions

  • Find a replacement for relay.infra.opensuse.org, ask openSUSE heroes and/or SUSE IT EngInfra, create tickets and wait for answers

Related issues 1 (0 open1 closed)

Related to openQA Infrastructure - action #95293: Monitoring alerts on errors in logs on o3 (was: followup to: error on "Next & previous results": ajax error message and no results showing up) size:MResolvedokurz2021-07-09

Actions
Actions #1

Updated by okurz about 3 years ago

I asked in #opensuse-admin IRC as well:

cboltz okurz[m]: I can at least recommend not to use relay.i.o.o from openqa ;-)
relay.i.o.o is (and also the nameservers knowing it) in the heroes network, which is probably not reachable from the openqa network
better use a server inside the openqa network
okurz[m] @cboltz it seems this got changed, could be two years ago, maybe by tampakrap at that time. Since then it seems we have no email forwarding out of that zone

Actions #2

Updated by okurz about 3 years ago

  • Target version changed from Ready to future
Actions #3

Updated by okurz about 2 years ago

  • Target version changed from future to Ready

Suggestion: Ask openSUSE heroes and/or SUSE IT EngInfra for the best solution how to send emails to a mailing list, preferrably o3-admins@suse.de but we can also create a new one, maybe openSUSE dedicated

Actions #4

Updated by okurz about 2 years ago

  • Related to action #95293: Monitoring alerts on errors in logs on o3 (was: followup to: error on "Next & previous results": ajax error message and no results showing up) size:M added
Actions #5

Updated by mkittler about 2 years ago

  • Subject changed from o3: log error about failed email sending "postfix/smtp[18623]: to=<o3-admins@suse.de>,status=deferred (Host or domain name not found. Name service error for name=relay.infra.opensuse.org type=AAAA Host not found" to Fix mail sending on o3 size:S
  • Description updated (diff)
  • Status changed from New to Workable
Actions #6

Updated by okurz about 2 years ago

  • Status changed from Workable to Blocked
  • Assignee set to okurz
Actions #7

Updated by okurz about 2 years ago

  • Status changed from Blocked to Resolved

With help from Daniel Rodríguez over SD-Ticket and Bernhard Wiedemann over chat we could fix the problem.

sudo echo 192.168.47.4 relay.infra.opensuse.org >> /etc/hosts && sudo sed -i -e 's/disable_dns_lookups = no/disable_dns_lookups = yes/' -e 's/inet_protocols = ipv4/inet_protocols = all/' /etc/postfix/main.cf && sudo systemctl restart postfix

also see https://serverfault.com/questions/626249/delivery-temporarily-suspended-host-or-domain-name-not-found

And I received emails immediately. So fixed.

Actions #8

Updated by nicksinger about 2 years ago

I asked for a proper DNS fix in the SD ticket and Bernhard gave me a good fix how to resolve it. I implemented these changes on o3 by adding

server=/infra.opensuse.org/192.168.47.4

to /etc/dnsmasq.d/openqa.conf and set itself as resolver with

NETCONFIG_DNS_STATIC_SERVERS="127.0.0.1"

in /etc/sysconfig/network/config. If you see problems it is just a matter of restoring the old NETCONFIG_DNS_STATIC_SERVERS (there is a commented line right above the new one) and regenerate resolv.conf with netconfig update -f

Actions

Also available in: Atom PDF