[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "Vacation" command for postfix
procmail is really powerful, though a bit difficult to read sometimes.
maildrop is another similar alternative, that's "supposed" to be more
readable. It essentially provides the same functionality, though I
think procmail is definitely the more popular one.
There's also anubis (http://www.gnu.org/software/anubis/) that I
stumbled upon, which I know nothing about, but love the name. :>
--
Samir
On Thu, Mar 26, 2009 at 10:26 AM, Herbie <technowombat@yahoo.com> wrote:
> We use procmail, and just include a procmail vacation filter, it gives a lot
> of flexibility, and we have a web front end for setting it up.
>
> herbie
>
>
> #################################################
> :0
> * DEBUG ?? yes
> { LOG="DEBUG: FILTER: filter.vacation
> "
> }
> #################################################
> # make sure we have a good shell for this to work, but set it back
> # to whatever it was once finished.
> OLDSHELL=${SHELL}
> SHELL=/bin/sh
>
> :0 BH #LOOP-CHECK
> * $ ! ^>? *X-Loop: ${LOGNAME}@uic.edu
> { }
>
> :0 AWhc: ${HOME}/.vacation.lock
> * !^FROM_DAEMON
> * !.*listmanager
> * !^Precedence: (Bulk|Junk)
> * !^Resent-(By|From|To|Sender):
> * !^List-[0-9a-z]*:
> * !^BestServHost:
> * !^X-ListName:
> * !^X-Listprocessor
> * !^X-Listserver:
> * !^X-Lyris-(To|MemberID|MessageID):
> * !^Received:.*majordom
> * !^From.*noreply@uic.edu
> * !^From.*nowhere@uic.edu
> * !^From.*spamreport@uic.edu
> * !^From.*consult@uic.edu
> * !^From.*eclerk@helpdesk.admin.uillinois.edu
> * !^UICClass: UICClass Spam
> | formail -rD 8192 ${HOME}/.vacation.cache
> :0 ehc
> | (formail -rA"Precedence: junk" \
> -I"From: ${LOGNAME}@uic.edu" \
> -A"X-Loop: ${LOGNAME}@uic.edu" ; \
> cat ${HOME}/.vacation.msg ;\
> ) | $SENDMAIL -oi -t
>
> #######################
> # call the attachment stripper to reject attachments over a certain size.
> ATTACHMENT_SIZE_LIMIT=${VACATION__ATTACHMENT_REJECT_SIZE}
> :0 f
> * VACATION__REJECT_BY_SIZE ?? yes
> | /usr/local/mailfilters/filter.attachment_strip.pl
>
>
> #######################
> SHELL=${OLDSHELL}
>
> ################################################
>
>
> On Thu, 26 Mar 2009, Erich Schroeder wrote:
>
>> A while ago I switched from sendmail to postfix (running Fedora). I'm not
>> convinced that it was worth it as I was pretty conversant with sendmail, but
>> I do agree that postfix is easier to become conversant with...
>>
>> But. I've got people who want the "out of office" thing, and I don't know
>> how to do it. The vacation command was part of the sendmail rpm, I believe.
>> And anyway, I really want the email people to have non-shell accounts, and
>> vacation required me to give those accounts shell access.
>>
>> What are some options for for this?
>>
>> Erich
>>
>> -
>> To unsubscribe, send email to majordomo@luci.org with
>> "unsubscribe luci-discuss" in the body.
>>
>
> -
> To unsubscribe, send email to majordomo@luci.org with
> "unsubscribe luci-discuss" in the body.
>
--
--
Samir Faci
*insert title*
`fortune`
-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.