Project

General

Profile

action #80812

Fix mail sending on o3 size:S

Added by okurz over 1 year ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
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

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:MResolved2021-07-09

History

#1 Updated by okurz over 1 year 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

#2 Updated by okurz over 1 year ago

  • Target version changed from Ready to future

#3 Updated by okurz 5 months 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

#4 Updated by okurz 5 months 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

#5 Updated by mkittler 5 months 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

#6 Updated by okurz 4 months ago

  • Status changed from Workable to Blocked
  • Assignee set to okurz

#7 Updated by okurz 4 months 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.

#8 Updated by nicksinger 3 months 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

Also available in: Atom PDF