#!/usr/bin/procmail -t #LOGFILE=$HOME/.var/procmail/log #LOGABSTRACT=no #VERBOSE=yes PMDIR=$HOME/.etc/mailfilter/procmail INCLUDERC=$PMDIR/defer FROM_ALBATROSS=! :0 * ^X-Been-There: madduck@albatross { M=$MATCH :0 * M ?? ^\+.+\+\/[^@]+ { # we have two +, so it's a virtual domain L=$MATCH :0 * M ?? ^\+\/[^+]+ { D=$MATCH } OT="$L@$D" L D } :0 E * M ?? ^\/\+?[^@]* { OT="madduck$MATCH@madduck.net" } M :0 fw |formail -I "X-Original-To: $OT" -A'X-From-Albatross: yes' OT FROM_ALBATROSS LOG="log: *** received $MSGID from albatross$NL" } INCLUDERC=$PMDIR/defines INCLUDERC=$PMDIR/ignore INCLUDERC=$PMDIR/smsmail #VERBOSE=yes INCLUDERC=$PMDIR/logging INCLUDERC=$PMDIR/dejavu INCLUDERC=$PMDIR/eqdomains INCLUDERC=$PMDIR/duplicates INCLUDERC=$PMDIR/to-gmail INCLUDERC=$PMDIR/justme INCLUDERC=$PMDIR/spamtraps INCLUDERC=$PMDIR/spammers INCLUDERC=$PMDIR/spamfilter INCLUDERC=$PMDIR/handlespam #INCLUDERC=$PMDIR/autoreplies INCLUDERC=$PMDIR/addheaders INCLUDERC=$PMDIR/lurker INCLUDERC=$PMRULES/all