#-------------------------------------------------------------------- # Set logging verbosity VERBOSE=off # Set LOGFILE to /dev/null for no logging LOGFILE=$HOME/.procmaillog COMSAT=no MAILDIR=$HOME # Potential security weakness, see also $4.3 PGPPASS="pgp_secret_password" #### debugging: decrypt and send back to testuser #### :0 H * ^From.*testuser.* { :0 c subject=| /usr/local/bin/formail -x "Subject: " :0 H * ! ^FROM_DAEMON | ( cat ;\ ) |/usr/local/bin/pgp -m +batchmode|/usr/ucb/mail -s "$subject" testuser } ##### decrypt and forward mail from enduser #### :0 H * { :0 c subject=| /usr/local/bin/formail -x "Subject: " :0 H * ! ^FROM_DAEMON * ! ^.*enduser.* | ( cat ;\ ) |/usr/local/bin/pgp -m +batchmode|/usr/ucb/mail -s "$subject" enduser } #### else save to $HOME/mbox #### :0: * mbox #--------------------------------------------------------------------4.3 Add the decryptuser's PGP password to .procmailrc.