Am Tue, 12 Jul 2016 21:54:46 +0100
schrieb Neil Bothwick <n...@digimed.co.uk>:

> On Tue, 12 Jul 2016 22:39:59 +0200, jens w 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  
> 
> So you have copies of the same script in each user's $HOME/bin? Why
> not call them from a single location? Are you sure the scripts are
> identical?

is one user, i will send an alert.

> 
> Does the procmail log give any clues?
> 
> 

same entry default / nologin user. see above.

Reply via email to