Hi Folks,
I am having a bit of hassle configuring procmail.
I have created a test user called tux and have confirmed I can send mail to him.
I have then created a /home/tux/.procmailrc file containing:
[tux@alice tux]$ cat .procmailrc VERBOSE=on MAILDIR=$HOME/mail PMDIR=$HOME/.procmail LOGFILE=$PMDIR/log INCLUDERC=$PMDIR/rc.testing
I have also created a /home/tux/.procmail directory and created a rc.testing file in it containing:
[tux@alice tux]$ cat ~/.procmail/rc.testing :0: * ^Subject:.*HOT SPAM.HOT
I then created a /home/tux/.forward file (which I copied from a book and don't understand) containing:
[tux@alice tux]$ cat ~/.forward "|IFS=' ' && exec /usr/bin/procmail -f || exec 75 tux"
If however I try to send tux an email I get an error email back containing the following:
----- The following addresses had permanent fatal errors ----- "|IFS=' ' && exec /usr/bin/procmail -f || exec 75 tux" (expanded from: tux)
----- Transcript of session follows ----- sh: cannot use & in command 554 "|IFS=' ' && exec /usr/bin/procmail -f || exec 75 tux"... Service unavailable
Do any ALUGers have any experience of configuring procmail and can help me suss out a correct ~/.forward file to invoke it?
Ta muchly!
Ian.