我正在使用自动回复路由器,基于网络上流传的常见配方:
路由器:
uservacation:
driver = redirect
allow_filter
domains = domain.com
hide_child_in_errmsg
debug_print = "R: autoreply for $user"
reply_transport = vacation_reply
no_verify
require_files = /home/share/autoreply.txt
file = /home/share/autoreply.txt
user = Debian-exim
group = Debian-exim
unseen
运输:
vacation_reply:
debug_print = "T: vacation reply for $local_part@domain"
driver = autoreply
file = /home/share/autoreply.txt
file_expand
from = [email protected]
to = $sender_address
subject = "Re: $h_subject"
text = "Automatic reply\n\n"
自动回复:
# Exim filter
if ($h_subject: does not contain "SPAM?" and personal) then
mail
expand file /home/share/autoreply.txt.txt
to $reply_address
from $local_part\@$domain
subject "Autoreply...[Re: $h_subject:]"
endif
这对于大多数用户来说都很有效,但是有一个用户在 /etc/aliases 中有一个别名,该别名system_aliases
在自动回复之前由路由器进行处理。
如果电子邮件发送到别名,则不会触发自动回复。我不明白为什么,因为上面的路由器似乎并不关心 local_part 是否与系统用户名匹配。
有什么想法吗?(顺便说一句,我意识到我尝试了不同的方法,因此我将其中的一些元素加倍了)。