Hi
I have a probably simple question.
I wanto to set vacation auto-reponse. I'm using squirrelmail and I used
one plugin to create vacation.txt in the user directory.
But I don't know how can I use maidroprc or .mailfilter files 9 i'm bit
confused with these ones ).
Where can I put it ?
I have a script that should react:
# test for vacation file, if it exists, send autoresponse
#
`test -f vacation.txt`
if ($RETURNCODE==0)
{
# test for vacation message subject, use it if found
#
`test -f vacation_subject.txt`
if ($RETURNCODE==0)
{
SUBJECT=`cat vacation_subject.txt`
cc "| mailbot -t vacation.txt -A 'From: $LOGNAME' -A 'Subject:
$SUBJECT' /usr/sbin/sendmail -f ''"
# otherwise, regular "Re:" syntax for subject is automatic
#
}
else
{
cc "| mailbot -t vacation.txt -A 'From: $LOGNAME'
/usr/sbin/sendmail -f ''"
}
# test for any cc addresses, forward to those addresses if present
#
`test -f vacation_cc_addresses.txt`
if ($RETURNCODE==0)
{
# grab cc addresses
#
CCADDRESSES=`cat vacation_cc_addresses.txt`
# do we need to keep a copy of messages in this account or not?
#
`test -f vacation_keep_messages.txt`
if ($RETURNCODE==0)
{
cc "! -f \"$FROM\" $CCADDRESSES"
}
else
{
to "! -f \"$FROM\" $CCADDRESSES"
}
}
}
But i don't know where i can put this script. I already installed
mailbot.
My postfix setting is:
maildrop unix - n n - - pipe
flags=R user=vmail argv=/usr/local/bin/maildrop -w 90 -d ${recipient}
I'm using virtual amilboxes
Thanks in advance
pet