Procmail Mailinglist (Variante 1)
.procmailrc
Für das Postfach in dem eingehende Mails an die Mailinglist(s) terminieren
.procmailrc
SHELL=/bin/bash
VERBOSE=no
#LOGFILE=/tmp/procmail-vt.log
#LOGABSTRACT=all
MAILLIST=/home/.mailinglists/user1/list1
MAILLIST2=/home/.mailinglists/user1/list2
FROM=`formail -xFrom: | sed -e 's/ *(.*)//; s/>.*//; s/.*[:<] *//'`
###########################################################
# Tag [ML1]
:0 fw
* ^To:.*ml1@
| /bin/sed -e "s/Subject: /Subject: \x5BML1\x5D /g"
:0
* ^To:.*ml1@
* !^From: MAILER-DAEMON
* ? fgrep -qxis $FROM $MAILLIST
!`cat $MAILLIST`
###########################################################
# Tag [ML2]
:0 fw
* ^To:.*ml2@
| /bin/sed -e "s/Subject: /Subject: \x5BML2\x5D /g"
:0
* ^To:.*ml2@
* !^From: MAILER-DAEMON
* ? fgrep -qxis $FROM $MAILLIST2
!`cat $MAILLIST2`
###########################################################
:0
| /dev/null/home/.mailinglists/user1/list1
Auflistung der Empfänger, eine E-Mail Adresse pro Zeile
/home/.mailinglists/user1/list1
mail1@domain
mail2@domain
mail3@domain/home/.mailinglists/user1/list2
Auflistung der Empfänger, eine E-Mail Adresse pro Zeile
/home/.mailinglists/user1/list2
mail3@domain
mail4@domain
mail5@domainZuletzt aktualisiert am