LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-27-2002, 03:12 PM   #1
rjohnson
LQ Newbie
 
Registered: Jan 2002
Location: San Diego, CA
Distribution: RH 7.2
Posts: 2

Rep: Reputation: 0
Auto Out-Of-Office-Reply using Sendmail


How do you configure an "Auto Out-Of-Office-Reply" using sendmail.
 
Old 03-27-2002, 03:23 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
Old 03-27-2002, 04:02 PM   #3
rjohnson
LQ Newbie
 
Registered: Jan 2002
Location: San Diego, CA
Distribution: RH 7.2
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you very much acid_kewpie! I'll give this a try and get back to you with the results.

Thanks again
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i use an auto reply in kmail / kontact? glenn69 Linux - Newbie 0 11-23-2005 08:32 PM
vacation auto-reply .forward file summer669 Linux - Newbie 9 11-17-2004 02:51 PM
Need "out of office" auto email reply Finlay Linux - Software 13 09-02-2004 07:19 PM
Vacation Auto reply elainepearl Linux - Software 0 07-17-2003 03:26 AM
Auto reply jayakrishnan Linux - General 1 03-28-2002 04:39 AM


All times are GMT -5. The time now is 10:38 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration