RE: [Exim] Regarding vacation messages

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Eqbal, Fahad
Datum:  
To: 'John (TJ) Penton'
CC: 'exim-users@exim.org'
Betreff: RE: [Exim] Regarding vacation messages
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--
[ Picked text/plain from multipart/alternative ]
Hi John

Many thanks for your help :)

I will give this go and let you know how I get on !!

Thanks again.

Kindest Regards

Fahad

-----Original Message-----
From: John (TJ) Penton [mailto:john@the-forest.org.uk]
Sent: 07 March 2003 00:11
To: Eqbal, Fahad
Cc: 'exim-users@???'
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.
--