Re: getting getmailrc right

"Gary R. Schmidt" <[email protected]> Thu, 27 May 2021 09:58:50 +1000
Newsgroups gmane.mail.getmail.user
Message-ID <[email protected]>
On 27/05/2021 02:37, Charles Cazabon wrote:
> 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.
> 
[destination]
type = MDA_external
path = /opt/local/bin/procmail
arguments = ("-f", "%(sender)")

Is what I have in my getmail rc files, it's worked for a decade or more 
now (i.e. since I started using getmail).

I've been using procmail for much longer.  (And yes, I know procmail is 
old, but it works, and there is no replacement for it which is so much 
better that converting all my recipes is worth the time and effort.)

	Cheers,
		Gary	B-)