Hướng dẫn sử dụng SMTP Relay trên EXIM DirectAdmin - My Life | Chia sẻ kinh nghiệm sống

Hướng dẫn sử dụng SMTP Relay trên EXIM DirectAdmin

 

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 = *
...

2) Tạo authenticators trong /etc/exim.conf :

...
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
...

4) Restart exim . Mở file log để theo dõi email :

tail -f /var/log/exim/mainlog

Không có nhận xét nào:

Đăng nhận xét

<3 @@ ^_^ ^^ :) :( hihi :-) :D =D :-d ;( ;-( @-) :P :o -_- (o) (p) :-s (m) 8-) :-t :-b b-( :-# (y) x-) (k) (h) cheer (li) :v :3 (c) (s) (pl) (f)