RE: [exim] Two level auto-reply

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Clive McDowell
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: RE: [exim] Two level auto-reply
> Sorry, I'm afraid I have now completely lost the context for
> this issue.
> You can use pass_router only if the router "passes". This can
> only occur from "self = pass" or from a queryprogram router
> (but I think that's all).


Philip,

sorry for the confusion - the context is that we need autoreply for local users ^c208 not to be subject to once-only rules. All
others should have an autoreply generated once every 5 days for the same sending address. To that end I have tried defining two
routers and two transports as below. It appears that the 5 day once-only transport is always in effect with that configuration.

Clive

Routers -

vacation_always:
driver = accept
check_local_user
local_part = ^c208
transport = vacation_always
require_files = ${home}/vacation.txt
# carry on checking regardless of the outcome of this router...
unseen
no_expn

uservacation:
driver = accept
check_local_user
transport = uservacation
require_files = ${home}/vacation.txt
# carry on checking regardless of the outcome of this router...
unseen
no_expn

Transports -

vacation_always:
  driver = autoreply
  user = ${local_part}
  once = ${home}/vacation-once
  once_repeat = 0s
  file = ${home}/vacation.txt
  log  = ${home}/vacation.log
  return_message = false
  text = "\
 ------                                                           ------\n\n\
 This message was automatically generated by email software\n\  The delivery of your message has not been affected.\n\n\
 ------                                                           ------\n\n"
  to = ${sender_address}
  subject =  ${if def:h_Subject: {Autoreply: $h_Subject:} {Auto-response}}


uservacation:
  driver = autoreply
  user = ${local_part}
  once = ${home}/vacation-once
  once_repeat = 5d
  file = ${home}/vacation.txt
  log  = ${home}/vacation.log
  return_message = false
  text = "\
 ------                                                           ------\n\n\
 This message was automatically generated by email software\n\  The delivery of your message has not been affected.\n\n\
 ------                                                           ------\n\n"
  to = ${sender_address}
  subject =  ${if def:h_Subject: {Autoreply: $h_Subject:} {Auto-response}}