Re: [Exim] Error while trying to open a db-file

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Ken Bailey
Ημερομηνία:  
Προς: Randy Bush
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] Error while trying to open a db-file
Randy Bush wrote ...
>
>how does this prevent responding to the person who sends email to a
>mailing list to which you subscribe? i believe using $return_path as
>opposed to $sender_address will help. but i think one really wants
>to prevent response when the $return_path has 'owner' as a substring
>and other cruft.
>
>i am still watching for a very conservative vacation recipe.


http://www.exim.org/FAQ.html FAQ Q0431 and Q9813 and
http://www.exim.org/config.samples/C019 have some pointers.

Maybe there ought to be something more explicit in the FAQ/examples?

Anyway, here's our current one - and, (having incurred the frank
opinion of no less than the exim list manager once already on this
score for getting it wrong myself), I am very open to suggestions for
improvement :)

######################################################################
## autoreply/vacation transport
uservacation:
  driver =  autoreply
  user = ${local_part}
  once = ${home}/vacation-once
  file = ${home}/vacation.txt
  log  = ${home}/vacation.log
  return_message = true
  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:} {I am on vacation}}"
##


######################################################################
## This director handles the automatic return of a vacation message
## vacation director....##

uservacation:
  driver = localuser
  transport = uservacation
  require_files = ${home}/vacation.txt
  # do not reply to errors or lists
  senders = "! ^.*-request@.*:\
              ! ^owner-.*@.*:\
              ! ^postmaster@.*:\
              ! ^listmaster@.*:\
              ! ^mailer-daemon@.*"
  # do not reply to errors and bounces or lists
  condition = "${if or {{match {$h_precedence:} {(?i)junk|bulk|list}} \
                        {eq {$sender_address} {}}} {no} {yes}}"
  # carry on checking regardless of the outcome of this  director...
  unseen
  no_expn
  no_verify
  user = ${local_part}
######################################################################


HTH

Ken
-- 
# Ken Bailey, Computer Section,   #    Email: K.Bailey@??? #
# The Royal Botanic Gardens, Kew, #      Tel: +44 (0)208 332 5729    #
# Richmond, Surrey, TW9 3AE, UK   #      Fax: +44 (0)208 332 5736    #




-- 
# Ken Bailey, Computer Section,   #    Email: K.Bailey@??? #
# The Royal Botanic Gardens, Kew, #      Tel: +44 (0)208 332 5729    #
# Richmond, Surrey, TW9 3AE, UK   #      Fax: +44 (0)208 332 5736    #