1 |
On 15 Feb 2008, at 18:21, Michael Higgins wrote: |
2 |
> ... |
3 |
> Anyway, I puzzled a bit and decided 'fetchmail' sounds pretty good, |
4 |
> pretty much what I want to do here. But, it needs sendmail...?? I |
5 |
> don't |
6 |
> want a MTA on this box. So, I see 'procmail' is an alternative target. |
7 |
> Hmm. |
8 |
|
9 |
I use maildrop here, instead of procmail, and am very happy with it. |
10 |
|
11 |
In a multiuser system I might use this minimal configuration in each |
12 |
user's ~/.mailfilter: |
13 |
|
14 |
MAILBOX="$HOME/.maildir" |
15 |
to "${MAILBOX}" |
16 |
|
17 |
I'm not sure if it's possible to reduce this, set a default global |
18 |
variable so that it will default to ~/.maildir for all users, or run |
19 |
without ~/.mailfilter files - I tend to just stick the above in /etc/ |
20 |
skel. |
21 |
|
22 |
... |
23 |
> I got the mail off the server, but now it's in my 'own' .maildir |
24 |
> folder. |
25 |
> As I will need to set up a dump folder for a bunch of different |
26 |
> accounts, this won't do. |
27 |
|
28 |
`man fetchmail` is long, perhaps a little difficult to read, but |
29 |
comprehensive, IME: |
30 |
|
31 |
Here's what a simple retrieval configuration for a multi- |
32 |
drop mailbox |
33 |
looks like: |
34 |
|
35 |
poll pop.provider.net: |
36 |
user maildrop with pass secret1 to golux |
37 |
'hurkle'='happy' snark here |
38 |
|
39 |
This says that the mailbox of account `maildrop' on the |
40 |
server is a |
41 |
multi-drop box, and that messages in it should be parsed for |
42 |
the server |
43 |
user names `golux', `hurkle', and `snark'. It further |
44 |
specifies that |
45 |
`golux' and `snark' have the same name on the client as on |
46 |
the server, |
47 |
but mail for server user `hurkle' should be delivered to |
48 |
client user |
49 |
`happy'. |
50 |
|
51 |
It's usual to use the global /etc/fetchmail file for the user / |
52 |
password declarations, in this case. This is read when you run |
53 |
fetchmail using the /etc/init.d/fetchmail script. |
54 |
|
55 |
Stroller. |
56 |
-- |
57 |
gentoo-user@l.g.o mailing list |