审查委员会默认发件人电子邮件

Review Board default sender email

Review Board documentation 提到

Sender Headers

Review Board can send e-mail on behalf of users. This may happen when creating a new review request or reviewing some code.

E-mails appear to be sent from the users, rather than from Review Board itself.

...

By using these two fields instead of just faking the From address, we can avoid e-mails appearing to be spam or otherwise malicious. Many modern e-mail clients warn if the From address appears to be suspicious.

有什么方法可以禁止代表用户发送电子邮件吗?我想从管理面板中设置的默认电子邮件发送电子邮件。

尝试在

中设置 from_email

https://github.com/reviewboard/reviewboard/blob/0935f8daf9b2f07d1f679a1cbed49998df3d59de/reviewboard/notifications/email.py

方法:

def send_review_mail(user, review_request, subject, in_reply_to,
                     to_field, cc_field, text_template_name,
                     html_template_name, context=None, extra_headers=None)

特别是,行: from_email = get_email_address_for_user(user)

我们在公司的服务器设置中做了类似的事情,以强制发件人成为我们希望用户响应的特定用户。