Koozali.org: home of the SME Server

Fetchmail problems with PHP 5.2.9

Offline cyrulution

  • ***
  • 58
  • +0/-0
    • http://cyrulution.eu
Fetchmail problems with PHP 5.2.9
« on: December 03, 2010, 09:59:39 PM »
My external email moved to a new server running PHP 5.2.9. Now it is not possible any more to retrieve email with fetchmail any more.
Here is a maillog with fetching from an old server (mail.42day.net) and then from the new server (mail.pennie.name). First succeeds, last not:
Quote
Dec  3 20:55:07 sme fetchmail[17810]: 6.3.6 querying mail.42day.net (protocol POP3) at Fri 03 Dec 2010 08:55:07 PM CET: poll started
Dec  3 20:55:07 sme fetchmail[17810]: Trying to connect to 70.84.178.138/110...connected.
Dec  3 20:55:07 sme fetchmail[17810]: POP3< +OK POP3 echo11.echoechoplus.com 2004.89 server ready
Dec  3 20:55:07 sme fetchmail[17810]: POP3> CAPA
Dec  3 20:55:07 sme fetchmail[17810]: POP3< +OK Capability list follows:
Dec  3 20:55:07 sme fetchmail[17810]: POP3< TOP
Dec  3 20:55:07 sme fetchmail[17810]: POP3< LOGIN-DELAY 180
Dec  3 20:55:07 sme fetchmail[17810]: POP3< UIDL
Dec  3 20:55:07 sme fetchmail[17810]: POP3< STLS
Dec  3 20:55:07 sme fetchmail[17810]: POP3< USER
Dec  3 20:55:07 sme fetchmail[17810]: POP3< SASL LOGIN
Dec  3 20:55:07 sme fetchmail[17810]: POP3< .
Dec  3 20:55:07 sme fetchmail[17810]: POP3> STLS
Dec  3 20:55:07 sme fetchmail[17810]: POP3< +OK STLS completed
Dec  3 20:55:07 sme fetchmail[17810]: Issuer Organization: SomeOrganization
Dec  3 20:55:07 sme fetchmail[17810]: Issuer CommonName: localhost.localdomain
Dec  3 20:55:07 sme fetchmail[17810]: Server CommonName: localhost.localdomain
Dec  3 20:55:07 sme fetchmail[17810]: Server CommonName mismatch: localhost.localdomain != mail.42day.net
Dec  3 20:55:07 sme fetchmail[17810]: mail.42day.net key fingerprint: 46:AB:FC:21:6D:00:CA:45:9A:20:43:E7:9D:C5:75:8D
Dec  3 20:55:07 sme fetchmail[17810]: Server certificate verification error: self signed certificate
Dec  3 20:55:07 sme fetchmail[17810]: Server certificate verification error: certificate has expired
Dec  3 20:55:07 sme fetchmail[17810]: POP3> CAPA
Dec  3 20:55:08 sme fetchmail[17810]: POP3< +OK Capability list follows:
Dec  3 20:55:08 sme fetchmail[17810]: POP3< TOP
Dec  3 20:55:08 sme fetchmail[17810]: POP3< LOGIN-DELAY 180
Dec  3 20:55:08 sme fetchmail[17810]: POP3< UIDL
Dec  3 20:55:08 sme fetchmail[17810]: POP3< USER
Dec  3 20:55:08 sme fetchmail[17810]: POP3< SASL PLAIN LOGIN
Dec  3 20:55:08 sme fetchmail[17810]: POP3< .
Dec  3 20:55:08 sme fetchmail[17810]: mail.42day.net: upgrade to TLS succeeded.
Dec  3 20:55:08 sme fetchmail[17810]: POP3> USER sh****@42day.net
Dec  3 20:55:08 sme fetchmail[17810]: POP3< +OK User name accepted, password please
Dec  3 20:55:08 sme fetchmail[17810]: POP3> PASS *
Dec  3 20:55:08 sme fetchmail[17810]: POP3< +OK Mailbox open, 60 messages
Dec  3 20:55:08 sme fetchmail[17810]: POP3> STAT
Dec  3 20:55:08 sme fetchmail[17810]: POP3< +OK 60 1155413
Dec  3 20:55:08 sme fetchmail[17810]: POP3> UIDL
Dec  3 20:55:08 sme fetchmail[17810]: POP3< +OK Unique-ID listing follows
Dec  3 20:55:08 sme fetchmail[17810]: POP3< 1 48e3deff00000662
.
.
Dec  3 20:55:08 sme fetchmail[17810]: POP3< 59 48e3deff0000069c
Dec  3 20:55:08 sme fetchmail[17810]: POP3< 60 48e3deff0000069d
Dec  3 20:55:08 sme fetchmail[17810]: POP3< .
Dec  3 20:55:08 sme fetchmail[17810]: 60 messages (60 seen) for sh***@42day.net at mail.42day.net (1155413 octets).
Dec  3 20:55:08 sme fetchmail[17810]: skipping message sh***@42day.net@mail.42day.net:1 not flushed
Dec  3 20:55:08 sme fetchmail[17810]: skipping message sh***@42day.net@mail.42day.net:2 not flushed
.
.
Dec  3 20:55:08 sme fetchmail[17810]: skipping message sh***@42day.net@mail.42day.net:59 not flushed
Dec  3 20:55:08 sme fetchmail[17810]: skipping message sh***@42day.net@mail.42day.net:60 not flushed
Dec  3 20:55:08 sme fetchmail[17810]: POP3> QUIT
Dec  3 20:55:08 sme fetchmail[17810]: POP3< +OK Sayonara
Dec  3 20:55:08 sme fetchmail[17810]: 6.3.6 querying mail.42day.net (protocol POP3) at Fri 03 Dec 2010 08:55:08 PM CET: poll completed
Dec  3 20:55:08 sme fetchmail[17810]: normal termination, status 1
Dec  3 20:55:08 sme fetchmail[17811]: 6.3.6 querying mail.pennie.name (protocol POP3) at Fri 03 Dec 2010 08:55:08 PM CET: poll started
Dec  3 20:55:09 sme fetchmail[17811]: Trying to connect to 174.132.236.83/110...connected.
Dec  3 20:55:09 sme fetchmail[17811]: POP3< +OK Hello there.
Dec  3 20:55:09 sme fetchmail[17811]: POP3> CAPA
Dec  3 20:55:09 sme fetchmail[17811]: POP3< +OK Here's what I can do:
Dec  3 20:55:09 sme fetchmail[17811]: POP3< STLS
Dec  3 20:55:09 sme fetchmail[17811]: POP3< TOP
Dec  3 20:55:09 sme fetchmail[17811]: POP3< USER
Dec  3 20:55:09 sme fetchmail[17811]: POP3< LOGIN-DELAY 10
Dec  3 20:55:09 sme fetchmail[17811]: POP3< PIPELINING
Dec  3 20:55:09 sme fetchmail[17811]: POP3< UIDL
Dec  3 20:55:09 sme fetchmail[17811]: POP3< IMPLEMENTATION Courier Mail Server
Dec  3 20:55:09 sme fetchmail[17811]: POP3< .
Dec  3 20:55:09 sme fetchmail[17811]: POP3> STLS
Dec  3 20:55:09 sme fetchmail[17811]: POP3< +OK Begin SSL/TLS negotiation now.
Dec  3 20:55:10 sme fetchmail[17811]: mail.pennie.name: opportunistic upgrade to TLS failed, trying to continue.
Dec  3 20:55:10 sme fetchmail[17811]: POP3> USER sh***+pennie.name
Dec  3 20:55:10 sme fetchmail[17811]: POP3< STARTTLS failed: couriertls: /usr/local/cpanel/etc/cpanel.pem: error:02001002:system library:fopen:No such file or directory
Dec  3 20:55:10 sme fetchmail[17811]: Unknown login or authentication error on sh***+pennie.name@mail.pennie.name
Dec  3 20:55:10 sme fetchmail[17811]: POP3> QUIT
Dec  3 20:55:10 sme fetchmail[17811]: POP3< -ERR Invalid command.
Dec  3 20:55:10 sme fetchmail[17811]: Invalid command.
Dec  3 20:55:10 sme fetchmail[17811]: client/server protocol error while fetching from shona+pennie.name@mail.pennie.name
Dec  3 20:55:10 sme fetchmail[17811]: 6.3.6 querying mail.pennie.name (protocol POP3) at Fri 03 Dec 2010 08:55:10 PM CET: poll completed
Dec  3 20:55:10 sme fetchmail[17811]: Query status=4 (PROTOCOL)
Dec  3 20:55:10 sme fetchmail[17811]: normal termination, status 4

What's wrong?
Is there anything I can change?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Fetchmail problems with PHP 5.2.9
« Reply #1 on: December 03, 2010, 10:08:40 PM »
fetchmail has nothing to do with php, so you should serarch in another direction..

Offline cyrulution

  • ***
  • 58
  • +0/-0
    • http://cyrulution.eu
Re: Fetchmail problems with PHP 5.2.9
« Reply #2 on: December 03, 2010, 10:25:57 PM »
The longer I study the log, the more I think:
there is a certificate - even a self made and expired does - needed at the new server.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Fetchmail problems with PHP 5.2.9
« Reply #3 on: December 03, 2010, 10:38:24 PM »
What's wrong?

This:
Code: [Select]
Dec  3 20:55:09 sme fetchmail[17811]: POP3> STLS
Dec  3 20:55:09 sme fetchmail[17811]: POP3< +OK Begin SSL/TLS negotiation now.
Dec  3 20:55:10 sme fetchmail[17811]: mail.pennie.name: opportunistic upgrade to TLS failed, trying to continue.
Dec  3 20:55:10 sme fetchmail[17811]: POP3> USER sh***+pennie.name
Dec  3 20:55:10 sme fetchmail[17811]: POP3< STARTTLS failed: couriertls: /usr/local/cpanel/etc/cpanel.pem: error:02001002:system library:fopen:No such file or directory
Dec  3 20:55:10 sme fetchmail[17811]: Unknown login or authentication error on sh***+pennie.name@mail.pennie.name
Dec  3 20:55:10 sme fetchmail[17811]: POP3> QUIT
There seems to be an error when authenticating to the external server.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)