On Wed, Jul 22, 2020 at 12:01:02PM +0200, Matthias Hanft wrote
> Walter Dnes wrote:
> > 
> >   Would "fetchmail" work as a drop-in replacement for getmail here?  Are
> > there any better, simpler solutions?
> 
> I don't know "getmail", but "fetchmail" runs here since 10 years
> without any problems.  Just put a line like
> 
> poll securepop.t-online.de proto pop3
>         user "mail@there", with password "pass@there", is "mail@here" here, 
> ssl;
> 
> into /etc/fetchmailrc, adjust polling_period="300" in
> /etc/conf.d/fetchmail, and that's it. (Of course, the usual
> stuff like "/etc/init.d/fetchmail start" and "rc-update
> add fetchmail default".)

  I'd prefer to launch  manually as required.  According to weboage
https://calomel.org/fetchmailrc.html I can set up $HOME/.fetchmailrc
I want to pull email from my local ISP and from 3 other (remote) servers.

Notes:
1) I want to run in "single-drop mode".
2) I do *NOT* want bouncing under any circumstances.
3) My procmail script (built up over the years) decides which local
inbox an individual email goes to.

Here's a first attempt at a ~/.fetchmailrc. I'll have to insert correct
names later...

========================================================================

set logfile fetchmail.log
poll inmail.myisp.com proto POP3
user "remote_username" pass "PASSWORD=" is "local_username" preconnect "date >> 
fetchmail.log"
#ssl
fetchall
no keep
no rewrite
mda "/usr/bin/procmail -f %F";

set logfile fetchmail.log
poll inmail.server2.com proto POP3
user "remote_username" pass "PASSWORD=" is "local_username" preconnect "date >> 
fetchmail.log"
ssl
fetchall
no keep
no rewrite
mda "/usr/bin/procmail -f %F";

set logfile fetchmail.log
poll inmail.server3.com proto POP3
user "remote_username" pass "PASSWORD=" is "local_username" preconnect "date >> 
fetchmail.log"
ssl
fetchall
no keep
no rewrite
mda "/usr/bin/procmail -f %F";

set logfile fetchmail.log
poll inmail.server4.com proto POP3
user "remote_username" pass "PASSWORD=" is "local_username" preconnect "date >> 
fetchmail.log"
ssl
fetchall
no keep
no rewrite
mda "/usr/bin/procmail -f %F";

========================================================================

-- 
Walter Dnes <[email protected]>
I don't run "desktop environments"; I run useful applications

Reply via email to