1 |
jens w <jw@××××××.eu> wrote: |
2 |
|
3 |
> Am Tue, 12 Jul 2016 22:59:16 +0200 |
4 |
> schrieb Alan McKinnon <alan.mckinnon@×××××.com>: |
5 |
> |
6 |
> > On 12/07/2016 22:39, jens w wrote: |
7 |
> > > Am Tue, 12 Jul 2016 16:17:42 +0200 |
8 |
> > > schrieb wabe <wabenbau@×××××.com>: |
9 |
> > > |
10 |
> > >> jens w <jw@××××××.eu> wrote: |
11 |
> > >> |
12 |
> > >>> .procmailrc |
13 |
> > >>> :0 c |
14 |
> > >>> * !^X-Loop: name@×××××××.com |
15 |
> > >>> | formail -X "From:" | $HOME/bin/script.sh |
16 |
> > >>> |
17 |
> > >>> procmail.log |
18 |
> > >>> procmail: Executing " formail -X "From:" | $HOME/bin/script.sh |
19 |
> > >>> |
20 |
> > >>> for incoming mail, a script is executed. logfile has the same |
21 |
> > >>> entry as it is in other users. but the script do nothing. |
22 |
> > >>> |
23 |
> > >>> How executing a command as a nologin user? |
24 |
> > >> |
25 |
> > >> Is script.sh readable and executable for the procmail user? |
26 |
> > >> |
27 |
> > >> Does script.sh contain a definition for a command interpreter |
28 |
> > >> (something like #!/bin/sh)? |
29 |
> > > |
30 |
> > > yes and yes. |
31 |
> > > it works for default user. it does not work for nologin user. |
32 |
> > > as workaround I forward the mail to a helper-user, and process it |
33 |
> > > there |
34 |
> > > |
35 |
> > > |
36 |
> > |
37 |
> > |
38 |
> > does that nologin user have a mailbox? A real one, actually on the |
39 |
> > disk? |
40 |
> |
41 |
> real user, real unix useraccount. we will exchange confidential news, |
42 |
> but the user can't use pgp. so he has a local mailaccount, so we |
43 |
> change news via ssl over my mailserver. |
44 |
> when a message arrives for the user, I will send a alert to his |
45 |
> aol-account. |
46 |
> |
47 |
> I test the script before, but it works not on nologin-user. |
48 |
|
49 |
Are you sure that the HOME envar is defined for the "nologin-user"? |
50 |
|
51 |
Is there a existing home directory defined in /etc/passwd for this |
52 |
user? |
53 |
|
54 |
-- |
55 |
Regards |
56 |
wabe |