Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Simple replacement for "getmail"?
Date: Thu, 23 Jul 2020 06:32:47
Message-Id: 20200723063226.GB2974@waltdnes.org
In Reply to: Re: [gentoo-user] Simple replacement for "getmail"? by Matthias Hanft
1 On Wed, Jul 22, 2020 at 12:01:02PM +0200, Matthias Hanft wrote
2 > Walter Dnes wrote:
3 > >
4 > > Would "fetchmail" work as a drop-in replacement for getmail here? Are
5 > > there any better, simpler solutions?
6 >
7 > I don't know "getmail", but "fetchmail" runs here since 10 years
8 > without any problems. Just put a line like
9 >
10 > poll securepop.t-online.de proto pop3
11 > user "mail@there", with password "pass@there", is "mail@here" here, ssl;
12 >
13 > into /etc/fetchmailrc, adjust polling_period="300" in
14 > /etc/conf.d/fetchmail, and that's it. (Of course, the usual
15 > stuff like "/etc/init.d/fetchmail start" and "rc-update
16 > add fetchmail default".)
17
18 I'd prefer to launch manually as required. According to weboage
19 https://calomel.org/fetchmailrc.html I can set up $HOME/.fetchmailrc
20 I want to pull email from my local ISP and from 3 other (remote) servers.
21
22 Notes:
23 1) I want to run in "single-drop mode".
24 2) I do *NOT* want bouncing under any circumstances.
25 3) My procmail script (built up over the years) decides which local
26 inbox an individual email goes to.
27
28 Here's a first attempt at a ~/.fetchmailrc. I'll have to insert correct
29 names later...
30
31 ========================================================================
32
33 set logfile fetchmail.log
34 poll inmail.myisp.com proto POP3
35 user "remote_username" pass "PASSWORD=" is "local_username" preconnect "date >> fetchmail.log"
36 #ssl
37 fetchall
38 no keep
39 no rewrite
40 mda "/usr/bin/procmail -f %F";
41
42 set logfile fetchmail.log
43 poll inmail.server2.com proto POP3
44 user "remote_username" pass "PASSWORD=" is "local_username" preconnect "date >> fetchmail.log"
45 ssl
46 fetchall
47 no keep
48 no rewrite
49 mda "/usr/bin/procmail -f %F";
50
51 set logfile fetchmail.log
52 poll inmail.server3.com proto POP3
53 user "remote_username" pass "PASSWORD=" is "local_username" preconnect "date >> fetchmail.log"
54 ssl
55 fetchall
56 no keep
57 no rewrite
58 mda "/usr/bin/procmail -f %F";
59
60 set logfile fetchmail.log
61 poll inmail.server4.com proto POP3
62 user "remote_username" pass "PASSWORD=" is "local_username" preconnect "date >> fetchmail.log"
63 ssl
64 fetchall
65 no keep
66 no rewrite
67 mda "/usr/bin/procmail -f %F";
68
69 ========================================================================
70
71 --
72 Walter Dnes <waltdnes@××××××××.org>
73 I don't run "desktop environments"; I run useful applications