[bglug] Postfix e autoresponder
k|b|s
kbs@bglug.it
Lun 29 Mar 2004 17:02:33 CEST
Manuel al scrîf:
> mi piacerebbe sapere se esiste un sw di autoresponder per postfix (con
> utenti virtuali).
A postfix hai associato procmail? Se si eccoti uno script:
--8<-- CUT HERE --8<--
Here is one way to set up a simple autoresponder using procmail. A simplified
.procmailrc would have...
-------------------------------- .procmailrc ---------------------------------
SHELL=/bin/sh
PATH=/usr/local/bin:/usr/bin:/bin:/usr/lib # ymmv
VERBOSE=no # set to "yes" for debugging
MAILDIR=$HOME/Mail # `elm` = "Mail",`pine` = "mail"
# Directory for storing procmail log, rc and kill files
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/.log
## capture the address that caused delivery (possiblyndmail installation
supports passing the "envelope to" informat the email.
###
###
### The recipes guard against replies to info sent, bounces, and mail loops.
###
### It is assumed that this rc file is included by the user's .procmailrc
### file.
###
### It is also assumed that the user has initialized the variable ENVELOPE_TO
### in their .procmailrc file.
###
### NOTE: "you@yourdomain.com" should be replaced with your email address in
### the two places it is referenced below - AND - "info@yourdomain.com"
### should be changed to reference your domain.
###
:0c # leave a copy in the default mailbox
* ENVELOPE_TO ?? ^info@yourdomain.com$
* ^Subject: send file [0-9a-z]
* !^X-Loop: you@yourdomain.com
* !^Subject:.*Re:
* !^FROM_DAEMON
* !^Subject: send file .*[/.]\.
{
MAILDIR=$HOME/fileserver # chdir to the fileserver directory
:0 fhw
--8<-- CUT HERE --8<--
HTH, ciao
--
BOFH Excuse #239:
CPU needs bearings repacked
k|b|s ~> mailto `echo ti.gulgb@sbk|'rev'`
Maggiori informazioni sulla lista
bglug