action #110920
closedQA (public) - coordination #99303: [saga][epic] Future improvements for SUSE Maintenance QA workflows with fully automated testing, approval and release
openQA Project (public) - coordination #99306: [epic] Future improvements: Make reviewing openQA results per squad easier
Emails from o3 are rejected by mx2.suse.de for certain sender/recipients size:S
0%
Description
We would like to send notification emails on openqa.opensuse.org.
There are certain combinations of Sender and recipients that are rejected by mx2.suse.de.
I'm testing with
echo "body" | mailx -s "subject" -r "from@example.org" "to@example.org"
Sending from a suse.de address to an suse.com, an external address or a slack channel address works.
Sending from a suse.com address to a suse.com or suse.de address is rejected.
Sending from a suse.com address to an external address works.
Sending from a suse.de address to a suse.de address is rejected.
If rejected, the recipient gets an email from mailer daemon:
<timueller@suse.de>: host mx2.suse.de[ip] said: 554 5.7.1
<o3-admins@suse.de>: Sender address rejected: We don't accept our own
addresses as sender address on this host! (in reply to RCPT TO command)
Acceptance criteria¶
- AC1: Emails are no longer rejected
Suggestions¶
- File tickets with SUSE IT and openSUSE heroes
Updated by tinita over 2 years ago
- Copied from action #110629: openqa-label-known-issues: Fallback notification address in openqa-label-known-issues if no email address could be parsed from group_overview added
Updated by tinita over 2 years ago
- Project changed from openQA Project (public) to openQA Infrastructure (public)
- Category deleted (
Feature requests)
Updated by okurz over 2 years ago
- Target version set to Ready
- Parent task set to #99306
Updated by livdywan over 2 years ago
- Subject changed from Emails from o3 are rejected by mx2.suse.de for certain sender/recipients to Emails from o3 are rejected by mx2.suse.de for certain sender/recipients size:S
- Description updated (diff)
- Status changed from New to Workable
Updated by okurz over 2 years ago
- Priority changed from Normal to High
- Target version changed from future to Ready
We have not seen emails from o3 logwarn as well for some time so this might be broken in general.
Updated by tinita over 2 years ago
- Copied to action #112673: Cannot send emails from o3 size:M added
Updated by tinita over 2 years ago
- Status changed from Workable to Blocked
I would say this is blocked by #112673. No emails are sent at all.
At best when talking to the mail server admins, both issues can be mentioned.
Updated by okurz over 2 years ago
- Assignee set to okurz
please use "Blocked" with an assignee that tracks the blocked states. Taking over.
Updated by jbaier_cz over 2 years ago
I believe this one is no longer blocked, we might want to give it another try.
Updated by okurz over 2 years ago
- Status changed from Blocked to Workable
- Assignee deleted (
okurz)
sure, we can go ahead
Updated by tinita over 2 years ago
- Status changed from Workable to In Progress
- Assignee set to tinita
Updated by tinita over 2 years ago
It's not possible to send emails with a suse.de sender address, I checked with Bernhard Wiedemann:
https://suse.slack.com/archives/C029APBKLGK/p1657882472570089
I still don't understand why this works on osd, but it looks like we have to set some "external" sender address and add a reply-to, like Oliver suggested.
Updated by tinita over 2 years ago
- Status changed from In Progress to Feedback
I set the sender to noreply@openqa.opensuse.org
for now, in /etc/postfix/sender_canonical
.
To have an effect, one needs to call
postmap /etc/postfix/sender_canonical
systemctl restart postfix.service
Emails to my own suse.de address is arriving, but it still needs to be confirmed if emails are arriving at the o3-admins list.
Waiting for feedback from the list owner @okurz.
Updated by tinita over 2 years ago
- Status changed from Feedback to In Progress
I can now administrate the list.
I had to explicitly allow the sender address noreply@openqa.opensuse.org
.
I also set the sender adress for openqa-monitor, so the logwarn emails should go through now.
Todo:
- Add Reply-To header to logwarn and openqa-review emails
Updated by tinita over 2 years ago
- Status changed from In Progress to Feedback
Actually the reply-to is not necessary.
The Sender address is now set via postfix to noreply@openqa.opensuse.org
, but the "From" header can now be o3-admins@suse.de
.
I set the from_email in openqa.ini to o3-admins@suse.de
.
Added that email to the allowed senders in mailman as well.
Now all emails should go through.
Updated by tinita over 2 years ago
- Status changed from Feedback to Resolved
Ok, I just saw a successful logwarn email, and a test email to o3-admins plus slack also works.
Resolving.