1 |
Le 25 juin à 08:18:20 Robert Persson <ireneshusband@××××××××.uk> écrit notamment: |
2 |
|
3 |
| Jean Magnan de Bornier wrote: |
4 |
| > Le 21 juin à 00:42:33 Robert Persson <ireneshusband@××××××××.uk> écrit notamment: |
5 |
| > |
6 |
| > | I want to run fetchmail as a service and I am confused about how |
7 |
| > this works. I | simply want to have something that will quietly |
8 |
| > fetch and deliver mail to | maildirs to users' home directories, but |
9 |
| > that can also be disabled easily | when I need that bit of extra |
10 |
| > performance for something. |
11 |
| > |
12 |
| > To enable fetchmail as demon: |
13 |
| > # /etc/init.d/fetchmail start |
14 |
| > |
15 |
| > To have fetchmail start automatically at boot: |
16 |
| > # rc-update add fetchmail default |
17 |
| > |
18 |
| > To suspend fetchmail: |
19 |
| > # /etc/init.d/fetchmail stop |
20 |
| > | I assume that fetchmail will first look at |
21 |
| > /etc/fetchmailrc. Will it then look | at each user's |
22 |
| > $HOME/.fetchmailrc? |
23 |
| > |
24 |
| > Yes |
25 |
| > |
26 |
| > |
27 |
| > |
28 |
| > | If so, can I assume that it will deal with each user's .procmailrc suid |
29 |
| > | that user? |
30 |
| > |
31 |
| > |
32 |
| > |
33 |
| > Yes; have a look at the fetchmail manual (-mda command) |
34 |
| > |
35 |
| > regards |
36 |
| > |
37 |
| > |
38 |
| When I tried it, this didn't seem to work for me. I tried using an |
39 |
| empty /etc/fetchmailrc because I wanted fetchmail to go straight to |
40 |
| the ~/.fetchmailrc's, but it complained that no server was specified. |
41 |
|
42 |
There is this option in /etc/init.d/fetchmail which says that the config |
43 |
file is /etc/fetchmailrc: -f /etc/fetchmailrc (it is in the middle of the |
44 |
file); but if you remove it I think only /root/.fetchmailrc would be |
45 |
searched, and I guess you don't have it and it's not your problem. |
46 |
|
47 |
> |
48 |
| I'm not panicked about this any more because I have decided to use |
49 |
| the relatively painless webmin to configure the ~/.fetchmailrc's |
50 |
| and |
51 |
| schedule cron jobs. even though it isn't exactly what I wanted. |
52 |
|
53 |
That's a good solution, I don't think running fetchmail as a daemon is |
54 |
superior, it's just more straightforward for a system where a centralized |
55 |
fetchmailrc is possible. |
56 |
|
57 |
| That said, if anyone knows what I should have done to get the fetchmail |
58 |
| service to use the ~/.fetchmailrc's rather than /etc/fetchmailrc I would |
59 |
| appreciate it. |
60 |
|
61 |
Well, you could imagine a cron job to copy the content of all ~/.fetchmailrc |
62 |
in /etc/fetchmailrc (cat would do that), say every two hours, and run |
63 |
fetchmail as daemon... but is worth it? |
64 |
|
65 |
regards |
66 |
-- |
67 |
Jean Magnan de Bornier | Cours Victor Hugo |
68 |
e-mots: jean at bornier.net | 13980 Alleins France |
69 |
T 08 70 39 34 03 | P 06 09 17 35 87 |
70 |
|
71 |
-- |
72 |
gentoo-user@g.o mailing list |