Hướng dẫn sử dụng SMTP Relay trên EXIM DirectAdmin
1) Mở file /etc/exim.conf , tạo gateway cho smtp relay.
Tìm đến dòng và thêm nội dung sau:
...
begin transports
smarthost_smtp:
driver = smtp
port = 25
#hosts_try_auth = smarthost_login
hosts_require_auth = *
...
begin transports
smarthost_smtp:
driver = smtp
port = 25
#hosts_try_auth = smarthost_login
hosts_require_auth = *
...
2) Tạo authenticators trong /etc/exim.conf :
...
begin authenticators
smarthost_login:
driver = plaintext
public_name = LOGIN
hide client_send = : myaccount : mypassword
....
begin authenticators
smarthost_login:
driver = plaintext
public_name = LOGIN
hide client_send = : myaccount : mypassword
....
3) Định hướng mail gửi ra đi qua Relay SMTP trong /etc/exim.conf...
begin routers
spamgateway_smarthost_router:
driver = manualroute
domains = ! +local_domains
ignore_target_hosts = 127.0.0.0/8
condition = "${perl{check_limits}}"
transport = smarthost_smtp
self = send
route_list = $domain (điền IP SMTP Relay Server)::25
no_more
...
spamgateway_smarthost_router:
driver = manualroute
domains = ! +local_domains
ignore_target_hosts = 127.0.0.0/8
condition = "${perl{check_limits}}"
transport = smarthost_smtp
self = send
route_list = $domain (điền IP SMTP Relay Server)::25
no_more
...
4) Restart exim . Mở file log để theo dõi email :
tail -f /var/log/exim/mainlog
Bình luận
Gửi