# Rakuten mail server registration

> Common settings

> **注意: Required if you handle Rakuten Ichiba orders**
>
> Rakuten buyers' email addresses are passed on as masked addresses of the Rakuten Anshin Mail Address Service (`＠〜.fw.rakuten.ne.jp`). Only emails sent through the store's mail server are forwarded from a masked address to the buyer, so if you operate without registering the mail server, **notification emails from Recustomer will not reach buyers**.

## 1. Open the mail server settings

Open [Settings > External service integrations > Data integration settings](https://rcmr.io/settings/integrations/integration/target) and select the **Mail server** tab.

![The Mail server tab opened in the data integration settings of the admin.](images/02i_mail-server-tab.png)

**Email delivery** is set to **Recustomer email** by default. Change it to **Rakuten Anshin Mail Address Service** to show the input fields.

## 2. Check the Rakuten mail server details

Sign in to [R-Login](https://glogin.gl.rakuten.co.jp/?sp_id=0) and open **あんしんメルアドサービスメニュー** (Anshin Mail Address Service menu).

![The Anshin Mail Address Service menu under Other management in R-Login.](images/02i_mail-server-rlogin-menu.png)

In the menu, note down the following four items. You will enter them in Recustomer in step 4.

- SMTPサーバー (SMTP server)

- ポート番号 (Port number)

- SMTP AUTH ID

- SMTP AUTH パスワード (SMTP AUTH password)

## 3. Check the store contact email address

You can only register an email address in Recustomer if it is **registered in both the R-Login user management and the Rakuten RMS store / company details**. Open the following two places and check that the same address is registered in both.

**R-Login user management**

Open **利用者管理** (User management) in R-Login and check the registered users.

![Checking the registered users in R-Login user management.](images/02i_mail-server-rlogin-users.png)

**Rakuten RMS store / company details**

In Rakuten RMS, open **店舗設定** (Store settings) → **6 基本情報設定** (6 Basic information settings).

![Selecting 6 Basic information settings under Store settings in the RMS menu.](images/02i_mail-server-rms-menu.png)

Open **店舗・企業詳細情報** (Store / company details) under **その他設定** (Other settings).

![Store / company details under Other settings in Basic information settings.](images/02i_mail-server-rms-basic-info.png)

Note down the value registered as **店舗連絡先メールアドレス** (Store contact email address) under **メールアドレス** (Email address). **This is the email address you will enter in step 4.**

![The email address section of Store / company details. Check the registered store contact email address.](images/02i_mail-server-rms-store-detail.png)

※If the address is registered in only one of the two places, register it in the other one before going to step 4.

## 4. Enter the details in Recustomer

Enter what you noted down in steps 2 and 3 on the screen from step 1, then click **Save** at the top right.

| Field | What to enter |
| --- | --- |
| Store contact email address | The store contact email address you noted down in step 3 |
| SMTP server | The SMTP server you noted down in step 2 |
| Port number | The port number you noted down in step 2 |
| SMTP AUTH ID | The ID you noted down in step 2 |
| SMTP AUTH password | The password you noted down in step 2 |

![The store contact email address field.](images/02i_mail-server-store-email-field.png)

![The SMTP server, port number, SMTP AUTH ID, and SMTP AUTH password fields.](images/02i_mail-server-smtp-fields.png)

※If even one of the five fields is empty, notification emails cannot be sent.
