[Dovecot] Vacation - out of office - SOLUTION
Richard Gliebe
richard.gliebe at fhv.at
Wed Aug 11 13:22:57 EEST 2010
On 8/11/10 10:43 AM Jerrale G wrote:
> Yes, you can use procmail and maildrop. It isn't integrated; so, the
> configuration will be extensive. It would be better, in this case, to
> only use dovecot for sasl and have procmail or maildrop an executable of
> your SMTP (postfix or w/e)
~/.procmail is the solution without any other tools/scripts and so on.
Best quick'n dirty solution for me ;-)
# cat .procmailrc
SHELL=/bin/sh
Sent_To = `formail -xTo: | expand | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'`
:0 Whc: vacation.lock
* !^FROM_DAEMON
* !^X-Loop: ${Sent_To}
| formail -rD 8192 vacation.cache
# Only run this rule if the last rule didn't match, meaning it will only
mail each
# user once.
:0 ehc # if the name was not in the cache
| (formail -rA"Precedence: junk" \
-A"X-Loop: ${Sent_To}" ; \
cat $HOME/.vacation.message; \
echo ""; \
echo "-- "; cat $HOME/.signature \
) | $SENDMAIL -oi -t -f "${Sent_To}"
thanks
Richard
More information about the dovecot
mailing list