---
title: Hướng dẫn cấu hình Email Relay cho Mailcow
description: "Bài viết này sẽ hướng dẫn các cách cấu hình Email Relay trên Mailcow. Table of Contents [Toggle](#) - [Cấu hình Routing](#Cau_hinh_Routing) - [Trỏ record SPF](#Tro_record_SPF) - [Test kết nối đến relay](#Test_ket_noi_den_relay) - [Cấu hình lại domain](#Cau_hinh_lai_domain) ### Cấu hình…"
url: "https://vhost.vn/tai-lieu/email_relay/huong-dan-cau-hinh-email-relay-cho-mailcow/"
updated: "2025-08-12"
category: Email / Email Relay
---

# Hướng dẫn cấu hình Email Relay cho Mailcow

Bài viết này sẽ hướng dẫn các cách cấu hình Email Relay trên Mailcow.

Table of Contents

 [Toggle](#)

- [Cấu hình Routing](#Cau_hinh_Routing)
- [Trỏ record SPF](#Tro_record_SPF)
- [Test kết nối đến relay](#Test_ket_noi_den_relay)
- [Cấu hình lại domain](#Cau_hinh_lai_domain)

### Cấu hình Routing

Chọn **Configuration** > **Routing**

[![](https://vhost.vn/wp-content/uploads/2024/05/image-276-1024x349.png)](https://vhost.vn/wp-content/uploads/2024/05/image-276.png)

Điền thông tin phía dưới **Add sender-dependent**transport, sau đó nhấn **Add**

- **Host:** ns6.vhost.vn:25
- **Username:**Thông tin user mà nhà cung cấp dịch vụ (Provider) gửi đến cho Quý Khách
- **Password:** Mật khẩu đi kèm với username

[![](https://vhost.vn/wp-content/uploads/2024/05/image-277.png)](https://vhost.vn/wp-content/uploads/2024/05/image-277.png)

### Trỏ record SPF

Quý Khách thực hiện trỏ record SPF qua vHost theo bài hướng dẫn tại [đây](https://vhost.vn/huong-dan-cau-hinh-dns-cho-dich-vu-email-relay/).

| **Domain** | **Type** | **Value** |
| --- | --- | --- |
| domain.com | TXT | v=spf1 include:_spf.vhost.vn ~all |

### Test kết nối đến relay

Tại ô routing vừa mới tạo, chọn **Test**

[![](https://vhost.vn/wp-content/uploads/2024/05/image-278-1024x245.png)](https://vhost.vn/wp-content/uploads/2024/05/image-278.png)

Điền email gửi và email nhận, sau đó nhấn **Run test**

[![](https://vhost.vn/wp-content/uploads/2024/05/image-279-1024x258.png)](https://vhost.vn/wp-content/uploads/2024/05/image-279.png)

Nếu test thành công sẽ có thông báo là **250 OK**

[![](https://vhost.vn/wp-content/uploads/2024/05/image-280.png)](https://vhost.vn/wp-content/uploads/2024/05/image-280.png)

### Cấu hình lại domain

Chọn **Email** > **Configuration** > Edit domain mà Quý Khách muốn cấu hình relay

Tại dòng **Sender-dependent transports**, chọn hộp thư Chuyển tiếp vừa được cấu hình trong menu thả xuống.

[![](https://vhost.vn/wp-content/uploads/2024/05/image-282-1024x457.png)](https://vhost.vn/wp-content/uploads/2024/05/image-282.png)
