Mailing List Archive

[OT] .fetchmailrc syntax error
With getmail having been deprecated, I can't pull it in on my fresh
install, so I *HAVE TO* go with fetchmail. I tried following example at
https://www.linode.com/docs/email/clients/using-fetchmail-to-retrieve-email/
but it errors out at the first line...

[i3][waltdnes][~] fetchmail
fetchmail:/home/waltdnes/.fetchmailrc:1: syntax error at option

Anybody have this working? The following was pulled by getmail as
"SimpleSSLretriever" on port 995. Here's what I'm trying that's
failing...

poll mail.######.com protocol pop3 with option sslproto '':
username "############" password "########" is "########" here
mda "/usr/bin/procmail -m ~/.mailfilter/.procmailrc":

--
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications
Re: [OT] .fetchmailrc syntax error [ In reply to ]
On Wed, Oct 14, 2020 at 07:03:01PM -0400, Walter wrote in
<20201014230301.GA25884@waltdnes.org>:
> With getmail having been deprecated, I can't pull it in on my fresh
>install, so I *HAVE TO* go with fetchmail.

Hi Walter,

I don't have an answer to your fetchmail problem but would like to point out
that work is being done to get a python 3 compatible version of checkmail in
gentoo. See https://github.com/gentoo/gentoo/pull/17239 for this. It has not yet
been merged into gentoo official, but I use this package myself without issue.

Hopefully in the near future this package will become part of gentoo. Till then,
I can help you to install this package/ebuild on your system if needed.

Regards,

Remco
Re: [OT] .fetchmailrc syntax error [ In reply to ]
Hello,

On Wed, 14 Oct 2020, Walter Dnes wrote:
>[i3][waltdnes][~] fetchmail
>fetchmail:/home/waltdnes/.fetchmailrc:1: syntax error at option
>
> Anybody have this working? The following was pulled by getmail as
>"SimpleSSLretriever" on port 995. Here's what I'm trying that's
>failing...
>
>poll mail.######.com protocol pop3 with option sslproto '':
^^^^^^ that should be
'options'.

And you _should_ use TLS, IMHO! E.g.: sslproto 'TLS1.3+'

See 'man fetchmail', search for '\-\-sslproto'.

HTH,
-dnh

--
/* When we have more time, we can teach the penguin to say
* "By your command" or "Activating turbo boost, Michael".
*/
linux-2.2.16/arch/sparc/prom/sun4prom.c
Re: [OT] .fetchmailrc syntax error [ In reply to ]
On Thu, Oct 15, 2020 at 08:31:51AM +0200, David Haller wrote
>
> And you _should_ use TLS, IMHO! E.g.: sslproto 'TLS1.3+'
>
> See 'man fetchmail', search for '\-\-sslproto'.

It looks like I was being too specific and micro-managing things.
Like Captain Picard, simply say "Make it so", and let it figure things
out for itself. What finally worked, including handoff to procmail, was


poll ########### protocol pop3:
username "############" password "########" is "########" here
mda "/usr/bin/procmail -m ~/.mailfilter/.procmailrc":



According to the manpage, "fetchmail --version" gives "dry-run"
diagnostics. In my test case, it says...

Taking options from command line and /home/########/.fetchmailrc
Idfile is /home/########/.fetchids
Fetchmail will forward misaddressed multidrop messages to ########.
Options for retrieving from ########################:
True name of server is ###########.
Protocol is POP3.
All available authentication methods will be tried.
SSL server certificate checking enabled.
Server nonresponse timeout is 300 seconds (default).
Default mailbox selected.
Only new messages will be retrieved (--all off).
Fetched messages will not be kept on the server (--keep off).
Old messages will not be flushed before message retrieval (--flush off).
Oversized messages will not be flushed before message retrieval (--limitflush off).
Rewrite of server-local addresses is enabled (--norewrite off).
Carriage-return stripping is enabled (stripcr on).
Carriage-return forcing is disabled (forcecr off).
Interpretation of Content-Transfer-Encoding is enabled (pass8bits off).
MIME decoding is disabled (mimedecode off).
Idle after poll is disabled (idle off).
Nonempty Status lines will be kept (dropstatus off)
Delivered-To lines will be kept (dropdelivered off)
Fetch message size limit is 100 (--fetchsizelimit 100).
Do binary search of UIDs during 3 out of 4 polls (--fastuidl 4).
Messages will be delivered with "/usr/bin/procmail -m ~/.mailfilter/.procmailrc".
Single-drop mode: 1 local name recognized.
No UIDs saved from this host.

--
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications
Re: [OT] .fetchmailrc syntax error [ In reply to ]
On Thu, Oct 15, 2020 at 08:53:00AM -0400, Walter Dnes wrote

> It looks like I was being too specific and micro-managing things.
> Like Captain Picard, simply say "Make it so", and let it figure things
> out for itself. What finally worked, including handoff to procmail, was
>
>
> poll ########### protocol pop3:
> username "############" password "########" is "########" here
> mda "/usr/bin/procmail -m ~/.mailfilter/.procmailrc":


That worked for one provider, but not for gmail. I had to go with...

poll ########### protocol pop3:
username "############" password "<password>" is "########" here
ssl
fetchall
mda "/usr/bin/procmail -m ~/.mailfilter/.procmailrc":

poll pop.gmail.com protocol pop3:
username "##########" password "<password>" is "########" here
ssl
fetchall
mda "/usr/bin/procmail -m ~/.mailfilter/.procmailrc":

That works for both. I have a couple of other providers to set up.
Question... is there a way to declare "ssl" and "fetchall" as default
global settings that apply to all providers in ~/.fetchmailrc

--
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications