[PROCMAIL] Anonymized E-Mail

Feedback is always important, especially if its about working with other people.

For our little (now over 10 year lasting) monthly meeting we wanted an Mailaccount to which people could send ideas and other stuff - but before the Mail would be forwared to the "heads" accounts, we wanted an function to strip off the senders email address - as we wanted to give them the freedom of sending anonymous feedback with their current Mailaccounts (yeah, we won't be able to answer because of that - but its ok!).

So I came up with that little .procmailrc File. It will copy the mail, strip off the sender and replace it with its own and send it to the mail@domain.com Account.

I used ( http://www.uibk.ac.at/zid/systeme/mail/procmail/extend_procmail.html#Weiterleiten3 ) to get to that point. Thanks guys for writing down that infos!

 

LOGFILE=$HOME/.procmailrc.log
VERBOSE=no
:0 cw
* ^Subject:.*
| formail -k \
-I "To: mail@domain.com" -X "To:" \
-X "Subject:" \
| $SENDMAIL $SENDMAILFLAGS -t