---- Original message ----
>Date: Tue, 5 Dec 2006 17:34:59 +0100
>From: Marc Balmer <[EMAIL PROTECTED]>  
>Subject: Re: autoresponder for postfix  
>To: Jacob Yocom-Piatt <[EMAIL PROTECTED]>
>Cc: [email protected]
>
...
>
>if you have your user database in ldap, you might give ldapvacation a
>try (mail/ldapvacation).

there aren't enough users for the mailserver to justify using LDAP for the user
database, otherwise i would try this out.

i ended up modifying the autoresponder config shown here

http://workaround.org/moin/PostfixTutorialContributions

where /usr/local/bin/autoreply was modified to allow for separate autoreplies
like so:

#!/bin/ksh

AUTO_SUFFIX='[EMAIL PROTECTED]'

if [ $2 = "user1$AUTO_SUFFIX" ]; then
        mail -s "Out of Office" $1 < /etc/postfix/user1.autoreply.txt
elif [ $2 = "user2$AUTO_SUFFIX" ]; then
        mail -s "Out of Office" $1 < /etc/postfix/user2.autoreply.txt
fi

this obviously does not scale well but is extremely simple, YMMV.

cheers,
jake

Reply via email to