Re: [Exim] Regarding vacation messages

Top Page
Delete this message
Reply to this message
Author: John (TJ) Penton
Date:  
To: Eqbal, Fahad
CC: 'exim-users@exim.org'
Subject: Re: [Exim] Regarding vacation messages
On Wed, 5 Mar 2003, Eqbal, Fahad wrote:

> I require a way to send out vacation autoreply for specific listed users
> email addresses, using notifications that they configure themselves (we are
> developing an Intranet site for users to configure their own outgoing
> notifications).
>
> Unfortunately, these users do not have a local mailbox on the EXIM mail
> server, as looking at the documentation local mailboxes would have made this
> easy to configure.
>
> I have tried using the autoreply transport, with limited success. I say
> limited in the sense that it did send out an auto response for the recipient
> but it also tried to look for a senders vacation message too :(
>
> I have also tried to using a user email address specific filter with
> unfortunately no success either.
>
> I am a newbie to EXIM so your help would be greatly appreciated.


You want a router that looks something like this:

userforward:
  driver = redirect
  condition = ${lookup {$local_part} lsearch \
             {/etc/exim.vacation}{yes}{no}}
  domains = +local_domains
  data = #Exim filter\n\
         if personal then vacation \
           subject = "In reply to your mail Re: $h_subject" \
           file = ${if exists{/var/vacation/$local_part} \
                     {/var/vacation/$local_part}{/var/vacation/default}}
  check_ancestor
  allow_filter
  reply_transport = address_reply


The above is based on the default user forwardfile router. I have removed
check_local_user (since they are not local users), and instead added a
condition that looks to see if the user is listed in a file. Then the
data for the redirect router is some Exim filter commands that do a
vacation message.

I haven't tested it, so there may be errors.

HTH

John

--
"Supposing a tree fell down, Pooh, when we were underneath it?"
"Supposing it didn't?" said Pooh, after careful thought.