Project

General

Profile

action #112673

Cannot send emails from o3 size:M

Added by tinita 2 months ago. Updated 30 days ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Observation

We currently don't get emails for unreviewed issues on o3.

Looking into /var/mail/root, this started at May 31:

<o3-admins@suse.de>: host relay.infra.opensuse.org[192.168.47.4] said: 450
    4.1.8 <geekotest@ariel.suse-dmz.opensuse.org>: Sender address rejected:
    Domain not found (in reply to RCPT TO command)

<team-qa-tools-aaaaejigt64kk3g6p3q4rtgnl4@suse.slack.com>: host
    relay.infra.opensuse.org[192.168.47.4] said: 450 4.1.8
    <geekotest@ariel.suse-dmz.opensuse.org>: Sender address rejected: Domain
    not found (in reply to RCPT TO command)

Simple test:

echo "To: tina.mueller@suse.com
From: tina.mueller@suse.com
Subject: test

test test test
" | /usr/sbin/sendmail -t "tina.mueller@suse.com"

I never receive an email.

I also can't see it in /var/mail/root but I guess it takes a while until it appears there, while the mailserver tries to send it.

(We also haven't seen logwarn emails for a while (May 10 was the last one), but it could be that there were no unknown warnings. I can't find any logwarn emails reported in /var/mail/root.)

Acceptance criteria

  • AC1: Emails can be sent again

Suggestions


Related issues

Related to openSUSE admin - tickets #113755: New e-mail alias o3-admins@opensuse.orgResolved2022-07-18

Copied from openQA Infrastructure - action #110920: Emails from o3 are rejected by mx2.suse.de for certain sender/recipients size:SResolved

History

#1 Updated by tinita 2 months ago

  • Copied from action #110920: Emails from o3 are rejected by mx2.suse.de for certain sender/recipients size:S added

#2 Updated by tinita 2 months ago

  • Description updated (diff)

#3 Updated by cdywan about 2 months ago

  • Subject changed from Cannot send emails from o3 to Cannot send emails from o3 size:M
  • Description updated (diff)
  • Status changed from New to Workable

#4 Updated by okurz about 2 months ago

  • Priority changed from Urgent to High

openqa-cli api --o3 job_groups | jq '. | .[] | .description' | grep 'MAILTO' revealed that it's only openQA-in-openQA, so our team, that uses MAILTO from openQA so it would be only us affected anyway and according to mkittler o3 will not burn up unnoticed during SUSE Hack Week so reducing prio to High.

#5 Updated by jbaier_cz about 1 month ago

  • Assignee set to jbaier_cz

#6 Updated by jbaier_cz about 1 month ago

  • Status changed from Workable to In Progress

#7 Updated by jbaier_cz about 1 month ago

  • Status changed from In Progress to Feedback

The problem seems to be a combination of two factors: 1. local postfix settings; 2. sender address verification;

We are trying to send e-mail from non-existent geekotest@ariel.suse-dmz.opensuse.org which is denied by the relay. The simple test was not working either, because the local postfix rewrote the sender to <user>@ariel.suse-dmz.opensuse.org which is again non-existent and denied.

For now, I added two records for openqa-monitor and geekotest into sender_canonical map to rewrite the sender of those e-mails to an existent address (o3-admins in this case). That should hopefully solve the problem.

Maybe a little bit nicer solution for logwarn (openqa-monitor) can be enabled by: https://github.com/os-autoinst/openqa-logwarn/pull/41, which will enable to set the sender e-mail directly in the script (or cron script on o3).

Now we can see in the log:

čec 07 14:10:05 ariel postfix/pickup[23118]: 5439718E69: uid=0 from=<openqa-monitor@ariel.suse-dmz.opensuse.org>
čec 07 14:10:05 ariel postfix/cleanup[6583]: 5439718E69: message-id=<62c6e93d.al3TrJsc3pJjlkwq%openqa-monitor@ariel.suse-dmz.opensuse.org>
čec 07 14:10:05 ariel postfix/qmgr[23119]: 5439718E69: from=<o3-admins@suse.de>, size=4050, nrcpt=1 (queue active)
čec 07 14:10:05 ariel postfix/smtp[6589]: 5439718E69: to=<o3-admins@suse.de>, relay=relay.infra.opensuse.org[192.168.47.4]:25, delay=0.05, delays=0.03/0.02/0/0, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 5CA331F813)
čec 07 14:10:05 ariel postfix/qmgr[23119]: 5439718E69: removed

#8 Updated by okurz about 1 month ago

  • Tags set to reactive work

#9 Updated by jbaier_cz about 1 month ago

Looking in my inbox, I believe this issue is solved. I will keep this ticket in feedback though as I asked for a better sender address in opensuse domain.

#10 Updated by jbaier_cz 30 days ago

  • Related to tickets #113755: New e-mail alias o3-admins@opensuse.org added

#11 Updated by jbaier_cz 30 days ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF