Cannot send emails from o3 size:M
We currently don't get emails for unreviewed issues on o3.
/var/mail/root, this started at May 31:
<firstname.lastname@example.org>: host relay.infra.opensuse.org[192.168.47.4] said: 450 4.1.8 <email@example.com>: Sender address rejected: Domain not found (in reply to RCPT TO command) <firstname.lastname@example.org>: host relay.infra.opensuse.org[192.168.47.4] said: 450 4.1.8 <email@example.com>: Sender address rejected: Domain not found (in reply to RCPT TO command)
echo "To: firstname.lastname@example.org From: email@example.com Subject: test test test test " | /usr/sbin/sendmail -t "firstname.lastname@example.org"
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
- AC1: Emails can be sent again
#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.
#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
email@example.com 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: 5439718E69: uid=0 from=<firstname.lastname@example.org> čec 07 14:10:05 ariel postfix/cleanup: 5439718E69: message-id=<62c6e93d.al3TrJsc3pJjlkwqemail@example.com> čec 07 14:10:05 ariel postfix/qmgr: 5439718E69: from=<firstname.lastname@example.org>, size=4050, nrcpt=1 (queue active) čec 07 14:10:05 ariel postfix/smtp: 5439718E69: to=<email@example.com>, 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: 5439718E69: removed