[Linux-bruxelles] Renseignement sur l'utilisation de procmail
LA POSTE SEB
girondins.64 at laposte.net
Lun 16 Aou 14:13:50 CEST 2004
ok
donc je vais te resumer ce que j'ai fait.
dans la main.cf j'ai mailbox_command=/usr/bin/procmail -Y -a $DOMAIN
ensuite dans mon repertoire de boite au lettre /home/seb/Maildir/.procmail/
j'ai trois fichier .procmailrc, rc.vacation et vacation.msg
le premier contient cela
# Comment: Set VERBOSE=on in next line when debugging.
VERBOSE=off
# Replace "mail" with the name of your mail directory.
# If you use Pine, your mail directory is called mail.
# This directory must exist before you start using procmail.
MAILDIR=/home/seb/Maildir/
# Directory for storing procmail log and rc files
PMDIR=/home/seb/Maildir/.procmail
LOGFILE=$PMDIR/log
# To send vacation message, remove # from next INCLUDERC line.
# In most cases, next line should be last in this file.
INCLUDERC=$PMDIR/rc.vacation
rc.vacation contient cela
:0 Whc: vacation.lock
# The three (ANDed) conditions address the following:
# Reply if mail is addressed to me.
# Don't reply to daemons or mailing lists (! = not).
# Avoid mail loops (don't reply to mail I might send myself).
* $^To:.*\<$\LOGNAME\>
* !^FROM_DAEMON
* !^X-Loop: seb at toto
# Store sender's address in vacation.cache if not there already.
| formail -rD 8192 vacation.cache
# If sender's address not in cache (e=previous recipe failed), send
# mail containing vacation message. Note: Trailing backslashes (\)
# required to denote continuation of single action line.
:0 ehc
| (formail -rA"Precedence: junk" \
-A"X-Loop: seb at toto" ; \
cat $PMDIR/vacation.msg \
) | $SENDMAIL -oi -t
voila pour la configuration total
----------------------------------------------------------------------------
----
--
Linux-bruxelles mailing list
Linux-bruxelles at lists.bxlug.be
http://lists.bxlug.be/mailman/listinfo/linux-bruxelles
Plus d'informations sur la liste de diffusion Linux-bruxelles