Re: [Exim] Creating Auto/vacation reply for Exim v.3.12

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Willie Viljoen
Ημερομηνία:  
Προς: exim-users
Υ/ο: manie esterhuizen, exim-users
Αντικείμενο: Re: [Exim] Creating Auto/vacation reply for Exim v.3.12
On Tuesday 09 March 2004 16:22, someone, possibly manie esterhuizen, wrote:
> Hi every one
>
> I have been asked to create an autoreply facillity on exim
> for my users to use when they are not going to be in the
> office. (Out of office reply)


You needn't really do this, it's already been taken care of by the vacation(1)
utility that should be included in your UNIX. Just edit the user's
forwardfile (~/.forward) and set it up to forward the mail to vacation, for
example:

\user, "|/usr/bin/vacation -a user"

This will deliver the mail to the user's local mailbox as usual, and forward a
copy to the vacation(1) program, which will then respond to the mail with a
vacation message read from ~/.vacation.msg

You could do this directly with transport filters in Exim, but that's not
Exim's job, and vacation(1) works just fine for me.

If you want to automate it for Harry Homeuser to use, just write a PHP script
to modify the ~/.forward and ~/.vacation.msg files for the user. Be sure to
make your script secure.

Will

--
Willie Viljoen
Freelance IT Consultant

214 Paul Kruger Avenue
Universitas
9321
South Africa

+27 (51) 522 15 60
+27 (82) 404 03 27

will@???