在教程的帮助下,我可以在我的服务器上为 exim4 进行重定向配置。它适用于虚拟主机,我遵循以下 tutorial - 最后一部分
vdom_aliases:
driver = redirect
allow_defer
allow_fail
domains = dsearch;/etc/exim4/virtual
data = ${expand:${lookup{$local_part}lsearch*@{/etc/exim4/virtual/$domain}}}
retry_use_local_part
pipe_transport = address_pipe
file_transport = address_file
no_more
我需要的是不仅要将邮件重定向到指定的邮件,还要先将它们保存在本地。
有办法吗? 谢谢。
最佳答案
你必须在路由器中使用动词unseen
。通常先匹配路由器进程消息,然后路由完成。但是,当匹配的路由器看不见
时,处理继续进行,就像之前没有匹配过消息一样。
vdom_aliases: # redirect message
driver = redirect
domains = dsearch;/etc/exim4/virtual
data = ${expand:${lookup{$local_part}lsearch*@{/etc/exim4/virtual/$domain}}}
unseen # keep routing
localdeliver: # do everything else
driver = accept
. . . . . . . .
关于linux - 如何使用 exim 4 保存和重定向邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25405990/