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?

Does the procmail log give any clues?


-- 
Neil Bothwick

I don't know if I can assimilate one more Borg Tagline!

Attachment: pgprkqh1qGCpA.pgp
Description: OpenPGP digital signature

Reply via email to