Re: getting getmailrc right

Charles Cazabon <[email protected]> Wed, 26 May 2021 10:37:07 -0600
Newsgroups gmane.mail.getmail.user
Message-ID <[email protected]>
reader <[email protected]> wrote:
> I've numbered the line for easy reference and MUNGED a few things.

Please don't obfuscate anything but passwords when posting diagnostic info to
mailing lists.  It can make debugging your problem impossible - see the other
topic posted to the getmail list today as an example.

> What I'm shooting for is to have getmail pull down my pop3 mail from
> this server, delete the on server copy, and get all mail even if
> already read.

Ok.  You'll need to set one of the delete options.  Getting all messages is
the default.

> Then I want getmail to pass the incoming mail off to procmail for
> sorting.
> 
> finally I'd like all log messages to go to the file indicated.

procmail is ugly as sin, but if you're used to it...  The message_log option
will handle the latter.

> When I use the getmailrc below it connects to my server but just hangs
> there for eternity.  The only bit of log looks like:

When you say "eternity", how long have you waited?  Some networking timeouts
take a long time to resolve.  It could be that your server simply isn't
listening on the port you're trying to connect to, and it's firewalled off so
you don't get the ICMP reject to trigger an immediate failure.

Check to make sure which protocol (POP/POPS) and port your provider is
expecting you to connect to.

>  7    [destination]
>  8    type = MDA_external
>  9    path = /usr/bin/procmail
> 10
> 11    arguments = ("-f", "%(sender)", "-m", "/home/MUNGED/.procmailrc")

I don't use procmail, but that looks fine.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon
GPL'ed software available at:               http://pyropus.ca/software/
-----------------------------------------------------------------------