Hello,
I've been trying to set up procmail on Solaris 2.6
To cut to the chase, the only way I can get it to work is to
create an entry in /etc/aliases:
user: "| /usr/local/bin/procmail"
but even then, I have to specify the $HOME in /etc/procmailrc, it doesn't find
the user's
procmailrc ( since it's not working from the .forward, it all runs as root )
Excerpt from a truss shows $HOME is / ( since I guess sendmail is running as
root ):
2972 11831: stat("//.procmailrc", 0xEFFFFD80) Err#2 ENOENT
I have tried about 8 different ways of concocting the .forward, but
none work:
"|exec /usr/local/bin/procmail #pdel"
"|exec /usr/local/bin/procmail USER=pdel"
"|IFS=' ';exec /usr/local/bin/procmail #pdel"
"|IFS=' ';exec /usr/local/bin/procmail USER=pdel"
"|/usr/local/bin/procmail #pdel"
"| IFS=' ' && exec /usr/local/bin/procmail -f- || exit 75 #pdel"
"|IFS=' ' && p=/usr/local/bin/procmail && test -f $p && exec $p -Yf- || exit
75 #pdel"
"| IFS=' ' && exec /usr/local/bin/procmail -f- || exit 75 #pdel"
The vacation program in the forward file works fine.
When I 'echo' a mail message and | /usr/local/bin/procmail, it works fine.
Any help appreciated
thx.