Only change owners get email notifications?

194 views
Skip to first unread message

sonicw...@gmail.com

unread,
Dec 6, 2023, 7:04:15 AM12/6/23
to Repo and Gerrit Discussion
Hi, I've been trying to debug a situation where it seems that only the change owner ever receives any email notifications for activity on a change - anyone else doesn't (whether they're in the attentionset, tagged, reviewers, CC'ed, etc. or not, and from what I can see irrespective of what the users have configured in their own settings).

I've been looking through the settings and configuration, but really can't see anything obvious that's wrong.

We're using Gerrit 3.8.1 (looked through the release notes, but no fixes in later versions that seemingly should affect this).

For sending email, we're using Office365, sending directly from gerrit to smtp.office365.com.
Emails to change owners go through just fine, so the configuration of this should be fine. If I log in to the Outlook web client for the gerrit user, I see emails in the sent folder, that are only addressed to the change owner, even though the notification clearly states that 'Attention is currently required from' other users also.

I've configured sendemail.from = gerrit <gerrit@<ourdomain>> to make sure that it's not Outlook rejecting emails in cases where the sender is different. Otherwise the sendemail configuration just sets up the smtp settings, and specifies a few allowrcpts.


Any ideas on what could be wrong? Or whether I'm misunderstanding some of the email notification functionality?

Thanks in advance!
Simon

sonicw...@gmail.com

unread,
Jan 4, 2024, 6:30:56 AM1/4/24
to Repo and Gerrit Discussion
Sorry for bumping, but would anyone have any input on this?

Thanks in advance!

sonicw...@gmail.com

unread,
Jan 5, 2024, 8:53:47 AM1/5/24
to Repo and Gerrit Discussion
What I've tried since then:
- Upgraded to gerrit 3.9.1
- Cleaned up the sendemail configuration, removed anything non-essential, now contains only the server configuration

None of those had any effect on the issue. I was still only seeing the change owner getting email notifications, irrespective of attention sets, notification settings, etc.

Is there any way of getting a log of the emails that gerrit thinks it is sending out? 



Björn Pedersen

unread,
Jan 19, 2024, 9:40:23 AM1/19/24
to Repo and Gerrit Discussion
sonicw...@gmail.com schrieb am Freitag, 5. Januar 2024 um 14:53:47 UTC+1:
What I've tried since then:
- Upgraded to gerrit 3.9.1
- Cleaned up the sendemail configuration, removed anything non-essential, now contains only the server configuration


This is a problem with MS365:  option  1 (SMTP AUTH) only allows to send as a fixed sender (but gerrit sends as the user that triggered the mail), and you need to configure this on S365  (see https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365#limitations-of-smtp-auth-client-submission)
Option 2 only allows to send to accounts on the configured mail domain. 


you need a fully functional smtp server without such restrictions for gerrit (e.g a sendmail/ postfix install).

sonicw...@gmail.com

unread,
Feb 22, 2024, 11:22:31 AM2/22/24
to Repo and Gerrit Discussion
On Friday, January 19, 2024 at 3:40:23 PM UTC+1 Björn Pedersen wrote:
sonicw...@gmail.com schrieb am Freitag, 5. Januar 2024 um 14:53:47 UTC+1:
What I've tried since then:
- Upgraded to gerrit 3.9.1
- Cleaned up the sendemail configuration, removed anything non-essential, now contains only the server configuration


This is a problem with MS365:  option  1 (SMTP AUTH) only allows to send as a fixed sender (but gerrit sends as the user that triggered the mail), and you need to configure this on S365  (see https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365#limitations-of-smtp-auth-client-submission)
Option 2 only allows to send to accounts on the configured mail domain. 


you need a fully functional smtp server without such restrictions for gerrit (e.g a sendmail/ postfix install).

Hi Björn - thanks for the answer, and sorry for the late reply from my side. I finally had time to work with our IT department to set up a separate smtp server, but the result is exactly the same. Emails go through, but only to the change owner.

I've set sendemail.from = Code Review <gerrit@ourdomain>, which as I understand should fix the sender, but no change there either.

Any idea if there's a way to get a log from gerrit itself about which emails it's trying to send?

Thanks in advance,
Simon
Reply all
Reply to author
Forward
0 new messages