Setting up your mail server

Bitbucket Data Center と Server の管理

このページの内容

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

Setting up Bitbucket Data Center and Server to use your SMTP mail server:

  • allows Bitbucket to send notifications about events to do with commit discussions, pull requests and repositories. Note that if the mail server fails, notifications will be dropped.
  • allows Bitbucket to email a link to a newly created user, which the user can use to generate their own password.
  • ユーザーがパスワードを忘れた場合にそれをリセットすることを許可します。

See Supported platforms for the mail clients supported by Bitbucket.


Go to the administration area and click Mail server (under 'Settings'). Complete and save the form.



ホスト名
メール サーバーのホスト名 (例: "localhost" または "192.168.1.15")。

ポート
メール サーバーのポート (指定していない場合、ポート 25 が使用されます)。

ユーザー名
リモート ホストへの接続に使用するユーザー名。

パスワード
メール サーバーへの接続に使用するパスワード。

プロトコル
メール サーバーに接続する際は SMTP または SMTPS を使用します。

SMTP を使用する際は、以下を指定できます。

  • メール サーバーでサポートされている場合は SSL / TLS が使用され、それ以外の場合はメールはプレーンテキストで送信される。
  • メールは、メール サーバーが SSL / TLS をサポートしている場合にのみ送信される。

以下の「安全なメール通知」を参照してください。

利用可能な場合は SSL / TLS を使用
SMTP サーバーが STARTTLS 拡張機能をサポートしている場合、これが SSL / TLS でのメールの暗号化に使用されます。それ以外の場合はプレーンテキストが使用されます。SMTPS サーバーは、常に SSL / TLS をサポートします。

常に SSL/TLS を使用 
SMTP サーバーが STARTTLS 拡張機能をサポートしていない場合、メールは送信されません。SMTPS サーバーは、常に SSL / TLS をサポートします。

メールの送信元
通知メールの "From" ヘッダーを指定します (例: noreply@yourcompany.com)。

テスト メールを送信
メール サーバーが正しく設定されていることを確認するためにテスト メールを送信するメール アドレスを入力します。


匿名ユーザー

送信メール サーバーを匿名ユーザーとしてセットアップしたい場合は、ユーザー名とパスワード フィールドを空のまま残します。ただし、Chrome ではこれらのフィールドが自動生成され、エラーが発生する場合があります。回避策として、別のブラウザを使用してください。

メール通知の保護

Bitbucket 3.6 and later versions support the following protocols:

  • メールが暗号化されない SMTP。
  • STARTTLS 拡張機能を使用して SSL / TLS で暗号化された SMTP。プロトコル変換はメール サーバーで SSL / TLS がサポートされている場合にのみアップグレードされ、それ以外の場合はプレーンテキストのままとなります。
  • メール サーバーでの STARTTLS のサポートが必須である SMTP。それ以外の場合、メールは送信されません。 
  • SMTPS (プロトコルのやり取り全体で SSL / TLS を使用)。

Note that if you use either SMTP with STARTTLS, or SMTPS, and connect to a self-signed mail server, you may need to import the server's cert ificate and set up a custom cacerts file for Bitbucket (just as you do for any outbound SSL/TLS connection to a self-signed server). See this Bitbucket knowledge base article for information about how to do that.

Gmail を使用するようメール サーバーを設定する

If you wish to connect to a Gmail account for email notifications in Bitbucket, refer to the Configuring the Mail Server to Use Gmail guide.

In particular, note that Gmail won't show images in the email because of the way that Google loads images on their servers. For Google Apps, a Bitbucket administrator can solve the problem by adding the Bitbucket domain name to a whitelist – see https://support.google.com/a/answer/3299041?hl=en for more information.

最終更新日: 2023 年 1 月 4 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.