On 12/07/2016 22:39, jens w wrote:
Am Tue, 12 Jul 2016 16:17:42 +0200
schrieb wabe <waben...@gmail.com>:

jens w <j...@lxsbbs.eu> wrote:

.procmailrc
:0 c
* !^X-Loop: n...@example.com
| 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?

Is script.sh readable and executable for the procmail user?

Does script.sh contain a definition for a command interpreter
(something like #!/bin/sh)?

yes and yes.
it works for default user. it does not work for nologin user.
as workaround I forward the mail to a helper-user, and process it there




does that nologin user have a mailbox? A real one, actually on the disk?

Alan

Reply via email to