If the below replies to *all* messages, it is broken. I don't understand the code, but I don't see any attempt to detect any of the numerous situations where a vacation message shoul NOT be sent (like dovecot list messages, for just one example).
Richard Gliebe wrote:
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
--
Best regards,
Charles