OT: auto responder (OOO) question

Steve Campbell campbell at cnpapers.com
Fri May 13 14:23:13 IST 2011


I added the following little snippet to the top of vacationon and 
vacationoff:

if [ "$#" -ne 1 ]
then
         echo "Incorrect number of arguments";
         echo "Usage: vacationon username";
         exit 1;
fi

Changed the vacationon to vacationoff in vacationoff of course.

Thanks all

steve

On 5/13/2011 8:56 AM, Steve Campbell wrote:
> Rob and Scott,
>
> Thanks for the responses. I tried Rob's stuff and it seemed to work. I 
> did restart Sendmail (MS) after adding the symlink to procmail in 
> /etc/smrsh, so I don't know if that had anything to do with it working 
> or not, but it works great. I may add the checking as I've already 
> forgot the parm once.
>
> Thanks
>
> steve
>
> On 5/13/2011 12:05 AM, Rob Poe wrote:
>> Quoting Rob Poe<rob at poeweb.com>:
>>
>>> On 5/12/2011 3:46 PM, Scott Silva wrote:
>>>> on 5/12/2011 1:09 PM Steve Campbell spake the following:
>>>>> On 5/12/2011 3:28 PM, Scott Silva wrote:
>>>>>> on 5/12/2011 11:20 AM Steve Campbell spake the following:
>>>>>>> As much as I hate to set one of these up, a fellow employee has
>>> persuaded me
>>>>>>> to set up an out-of-office deal for her. I'm running Centos 3 and
>>> sendmail.
>>>>>>> I've played around with a .procmailrc file, but it doesn't seem
>>>>>>> to do anything. I've also created the symlink in /etc/smrsh to
>>>>>>> procmail with
>>> no
>>>>>>> avail.
>>>>>>>
>>>>>>> Does anyone know if I have to restart sendmail after creating the
>> link?
>>>>>>> Does Mailscanner have any bearing on using procmail?
>>>>>>>
>>> I setup a simple bash script for it -- no checking (honestly, didn't
>>> care too much about checking).  They've used it forever .. use, don't
>>> use, modify, whatever.  Enjoy!
>>>
>>> -- 
>> Rob,
>>
>> I saw this very same script and think I tried it. Didn't use the 
>> surrounding
>> scripts to turn on/off, but a good idea.
>>
>> BTW, what checking are you referring to?
>>
>> Thanks,
>> steve
>>
>> Checking to see if they gave it an argument or spitting an error message
>> telling them to use it as vacationon username instead ofjust 
>> vacationon..
>>
>



More information about the MailScanner mailing list