Thank you for the help - following your advise everything now works.
I had forgotten to put the pipe at the beginning of the line in aliases.
In your /etc/aliases you need a pipe at the beginning, that’s why
is trying to write to a file instead of ‘prog’…
Example, here is an entry in mine:
abuse : "|/usr/rt2/bin/rt-mailgate --queue abuse --action correspond"
abuse-comment: “|/usr/rt2/bin/rt-mailgate --queue abuse --action
Also, make sure you have an entry in /etc/smrsh:
[greg@support greg]$ ls -l /etc/smrsh
lrwxrwxrwx 1 root root 24 Oct 23 19:07 rt-mailgate ->
WA State Resident