Peter Delevoryas <peter(_dot_)delevoryas(_at_)Central(_dot_)Sun(_dot_)COM>
writes:
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"
Yikes! This results in procmail running as daemon (that's probably the
default) instead of as the user.
...
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"
I would guess that Solaris 2.6 ships with sendmail using smrsh as the
prog mailer, in which case you need to put a symlink to procmail in
the sm.bin directory. To find out where this directory is located,
run the command:
strings `which smrsh` | grep sm.bin
That should print something like /etc/sm.bin or /usr/lib/sm.bin. Put
a symlink to procmail in that directory and then simply put
"| procmail"
in your .forward.
Philip Guenther