LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Auto Out-Of-Office-Reply using Sendmail (https://www.linuxquestions.org/questions/linux-software-2/auto-out-of-office-reply-using-sendmail-17139/)

rjohnson 03-27-2002 03:12 PM

Auto Out-Of-Office-Reply using Sendmail
 
How do you configure an "Auto Out-Of-Office-Reply" using sendmail.

acid_kewpie 03-27-2002 03:23 PM

it's probably best to do it using procmail, which sendmail will automatically execute. an example from teh procmailex manpage describes:
Code:

              :0 Whc: vacation.lock
              # Perform a quick check to see if the mail was addressed to us
              * $^To:.*\<$\LOGNAME\>
              # Don't reply to daemons and mailinglists
              * !^FROM_DAEMON
              # Mail loops are evil
              * !^X-Loop: your@own.mail.address
              | formail -rD 8192 vacation.cache

                :0 ehc        # if the name was not in the cache
                | (formail -rI"Precedence: junk" \
                    -A"X-Loop: your@own.mail.address" ; \
                  echo "I received your mail,"; \
                  echo "but I won't be back until Monday."; \
                  echo "-- "; cat $HOME/.signature \
                  ) | $SENDMAIL -oi -t

that gives the general idea, albeit a touch OTT maybe.

rjohnson 03-27-2002 04:02 PM

Thank you very much acid_kewpie! I'll give this a try and get back to you with the results.

Thanks again


All times are GMT -5. The time now is 07:40 AM.