action #112673
closedCannot send emails from o3 size:M
0%
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¶
- Contact person responsible for the relay, e.g. create openSUSE heroes ticket over admin@opensuse.org or ask in https://matrix.to/#/#opensuse-admin:libera.chat or create Jira SD ticket
- It seems like any domain is rejected including suse.de and suse.com
Updated by tinita over 2 years ago
- Copied from action #110920: Emails from o3 are rejected by mx2.suse.de for certain sender/recipients size:S added
Updated by livdywan over 2 years 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
Updated by okurz over 2 years 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.
Updated by jbaier_cz over 2 years ago
- Status changed from Workable to In Progress
Updated by jbaier_cz over 2 years 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
Updated by jbaier_cz about 2 years 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.
Updated by jbaier_cz about 2 years ago
- Related to tickets #113755: New e-mail alias o3-admins@opensuse.org added
Updated by jbaier_cz about 2 years ago
- Status changed from Feedback to Resolved
Updated by tinita about 1 year ago
For the record, to write it down somewhere, we had the problem in o3 that cron emails couldn't be sent and landed in /var/mail/root
, where we would have to actively look into.
We now also added root@ariel.suse-dmz.opensuse.org o3-admins@opensuse.org
to /etc/postfix/sender_canonical
(and ran postmap /etc/postfix/sender_canonical
to regenerate the lmdb file).