[英]How to save and redirect mail with exim 4
I have working redirecting configuration for exim4 on my server with the help of tutorial. 借助教程,我可以在服务器上为exim4进行重定向配置。 It works with virtual hosts, I followed the following tutorial - the last part
它适用于虚拟主机,我遵循以下教程 -最后一部分
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
What I need is to not only redirect the mails to the ones specified but also save them first locally. 我需要的不仅是将邮件重定向到指定的邮件,还要先将其保存在本地。
Is there a way to do it? 有办法吗? Thanks.
谢谢。
You have to use verb unseen
in the routers. 您必须在路由器中使用动词
unseen
。 Usually first matched router process message and then routing is complete. 通常,首先匹配路由器处理消息,然后完成路由。 But when matching router have
unseen
processing continues like message wasn't been matched before. 但是当匹配的路由器
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
. . . . . . . .
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.