大网数据广告活动
服务器运维问答

Configure EXIM to keep copy of incoming emails and relay to same domain on remote server

· 52CE 我爱测

I am trying to figure out how configure EXIM to achieve the following. Incoming emails to be saved on the users' mailboxes and be relayed on remote server that has the same accounts. There are two mail servers, 1.2.3.4 on which M…

问题原文

原帖链接 · KostasTrip · CC BY-SA 3.0

I am trying to figure out how configure EXIM to achieve the following.

Incoming emails to be saved on the users' mailboxes and be relayed on remote server that has the same accounts.

There are two mail servers, 1.2.3.4 on which MX records of example.com point to, and 5.6.7.8 which has the same domain.

I have inserted the following on exim conf of 1.2.3.4

redir:
  driver = manualroute
  domains = example.com
  transport = remote_smtp
  route_list = * 5.6.7.8

but this just relays the emails to the account [email omitted] on server 5.6.7.8 without keeping a copy on the existing local mailbox [email omitted].

Any ideas on how to make exim keep a copy on the first mail box?

已采纳解答

原帖链接 · Kondybas · CC BY-SA 3.0

That router should be placed before all other routers. It should be ended with the unseen verb:

redir:
  driver = manualroute
  domains = example.com
  transport = remote_smtp
  route_list = * 5.6.7.8
  unseen

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-11-08)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。