On 12/07/2016 03:47, jens w wrote:
.procmailrc
:0 c
* !^X-Loop: [email protected]
| formail -X "From:" | $HOME/bin/script.sh
procmail.log
procmail: Executing " formail -X "From:" | $HOME/bin/script.sh
for incoming mail, a script is executed. logfile has the same entry as
it is in other users. but the script do nothing.
How executing a command as a nologin user?
You can't, not the way you are doing it.
You want to launch a shell script for the user, but the user's shell is
/sbin/nologin. This exits immediately without launching the script.
Give the user a real shell.
Alan