Koozali.org: home of the SME Server

smeserver-fetchmail : newb having problems

cjohnson_uk

smeserver-fetchmail : newb having problems
« on: April 04, 2007, 02:31:17 AM »
I've installed 7.0 and patched to 7.3.  I've installed smeserver-fetchmail
I've added a test user to my remote mail server and to the local server.  The remote test user is accessible via IMAP and have mail and folders ready to retrieve.  I've set it up to read emails but leave them on the remove server.

My intention is to eventually drag 4GB of email for 10 users with folders (created in horde on the ISP) from the ISP to my SME box and maintain all the same structure and emails.

To keep the folders I think I need to use IMAP.

I've added an IMAP fetchmail entry to the settings and waited 5 minutes for the fetchmail cron to run but all I get is:

Code: [Select]

Apr  4 00:45:01 server fetchmail[5744]: Server CommonName mismatch: server.mydomain.co.uk != mail.mydomain.co.uk
Apr  4 00:45:01 server fetchmail[5744]: Server CommonName mismatch: server.mydomain.co.uk != mail.mydomain.co.uk
Apr  4 00:45:02 server fetchmail[5744]: Authorization failure on chris@mail.mydomain.co.uk
Apr  4 00:45:02 server fetchmail[5744]: Query status=3 (AUTHFAIL)
Apr  4 01:00:01 server fetchmail[6107]: 6.2.5 querying mail.mydomain.co.uk (protocol IMAP) at Wed 04 Apr 2007 01:00:01 AM BST: pol
l started
Apr  4 01:00:01 server fetchmail[6107]: IMAP< * OK imapfront ready. + stunnel
Apr  4 01:00:01 server fetchmail[6107]: IMAP> A0001 CAPABILITY
Apr  4 01:00:01 server fetchmail[6107]: IMAP< * CAPABILITY IMAP4rev1 AUTH=LOGIN SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDL
E CHILDREN LISTEXT LIST-SUBSCRIBED STARTTLS
Apr  4 01:00:01 server fetchmail[6107]: IMAP< A0001 OK CAPABILITY completed
Apr  4 01:00:01 server fetchmail[6107]: IMAP> A0002 STARTTLS
Apr  4 01:00:01 server fetchmail[6107]: IMAP< A0002 OK Begin TLS negotiation now
Apr  4 01:00:01 server fetchmail[6107]: Issuer Organization: Re:play Magazine
Apr  4 01:00:01 server fetchmail[6107]: Issuer CommonName: server.mydomain.co.uk
Apr  4 01:00:01 server fetchmail[6107]: Server CommonName: server.mydomain.co.uk
Apr  4 01:00:01 server fetchmail[6107]: Server CommonName mismatch: server.mydomain.co.uk != mail.mydomain.co.uk
Apr  4 01:00:01 server fetchmail[6107]: mail.mydomain.co.uk key fingerprint: 18:CA:F8:0E:5E:90:4F:D8:2A:77:DF:5F:32:FE:4D:26
Apr  4 01:00:01 server fetchmail[6107]: Warning: server certificate verification: self signed certificate
Apr  4 01:00:01 server fetchmail[6107]: Issuer Organization: Re:play Magazine
Apr  4 01:00:01 server fetchmail[6107]: Issuer CommonName: server.mydomain.co.uk
Apr  4 01:00:01 server fetchmail[6107]: Server CommonName: server.mydomain.co.uk
Apr  4 01:00:01 server fetchmail[6107]: Server CommonName mismatch: server.mydomain.co.uk != mail.mydomain.co.uk
Apr  4 01:00:01 server fetchmail[6107]: Warning: server certificate verification: self signed certificate
Apr  4 01:00:01 server fetchmail[6107]: IMAP> A0003 CAPABILITY
Apr  4 01:00:01 server fetchmail[6107]: IMAP< * CAPABILITY IMAP4rev1 AUTH=LOGIN SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDL
E CHILDREN LISTEXT LIST-SUBSCRIBED
Apr  4 01:00:01 server fetchmail[6107]: IMAP< A0003 OK CAPABILITY completed
Apr  4 01:00:01 server fetchmail[6107]: mail.mydomain.co.uk: upgrade to TLS succeeded.
Apr  4 01:00:01 server fetchmail[6107]: IMAP> A0004 LOGIN "chris" *
Apr  4 01:00:01 server fetchmail[6107]: IMAP< A0004 NO LOGIN failed
Apr  4 01:00:01 server fetchmail[6107]: IMAP> A0005 *
Apr  4 01:00:01 server fetchmail[6107]: Authorization failure on chris@mail.mydomain.co.uk
Apr  4 01:00:01 server fetchmail[6107]: IMAP> A0006 LOGOUT
Apr  4 01:00:01 server fetchmail[6107]: IMAP< A0005 BAD Unimplemented command
Apr  4 01:00:01 server fetchmail[6107]: IMAP< * Logging out
Apr  4 01:00:01 server fetchmail[6107]: IMAP< A0006 OK LOGOUT completed
Apr  4 01:00:01 server fetchmail[6107]: 6.2.5 querying mail.mydomain.co.uk (protocol IMAP) at Wed 04 Apr 2007 01:00:01 AM BST: pol
l completed
Apr  4 01:00:01 server fetchmail[6107]: Query status=3 (AUTHFAIL)
Apr  4 01:00:01 server fetchmail[6107]: normal termination, status 3



Any ideas?  Does it matter that the server names are not equal?

ChrisJ

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: smeserver-fetchmail : newb having problems
« Reply #1 on: April 04, 2007, 10:54:48 AM »
Quote from: "cjohnson_uk"
I've installed 7.0 and patched to 7.3.  
I think you mean SME 7.1. Update 3, which is essentially SME 7.1.3

Do you have access to log files of the remote mail server? To me it seems that something goes wrong after a the certificate is accepted and TLS is activated and the user is logged in again:
Quote from: "cjohnson_uk"
Apr  4 01:00:01 server fetchmail[6107]: Authorization failure on chris@mail.mydomain.co.uk
Apr  4 01:00:01 server fetchmail[6107]: IMAP> A0006 LOGOUT
Apr  4 01:00:01 server fetchmail[6107]: IMAP< A0005 BAD Unimplemented command
Apr  4 01:00:01 server fetchmail[6107]: IMAP< * Logging out
Apr  4 01:00:01 server fetchmail[6107]: IMAP< A0006 OK LOGOUT completed
Apr  4 01:00:01 server fetchmail[6107]: 6.2.5 querying mail.mydomain.co.uk (protocol IMAP) at Wed 04 Apr 2007 01:00:01 AM BST: pol
l completed
Apr  4 01:00:01 server fetchmail[6107]: Query status=3 (AUTHFAIL)
Apr  4 01:00:01 server fetchmail[6107]: normal termination, status 3[/code]


What external mail server are you using? Is this an SME Server as well?
Quote from: "cjohnson_uk"
Any ideas?  Does it matter that the server names are not equal?
It might be that the server name is causing the problem, why do you use server.mydomain.co.uk and not mail.mydomain.co.uk?
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)

cjohnson_uk

smeserver-fetchmail : newb having problems
« Reply #2 on: April 04, 2007, 11:32:17 AM »
It is 7.1.3, it was 1am!

I'll check if I can see the remote logs.  I've posted a question to the ISP.

Its called server and not mail because the external mail server (at the ISP) is called mail.  I want to pull mail from there to the local server where access will be quicker.  BUT I don't want mail sending direct to the SME server as the internet connection is not reliable.  Should the SME server not be available I still want access to email and a server "online" that will queue incoming mails.  If the sme box is on the internet I want it to be visible externally so it needs to not be mail.
Remeber though this is my first "all singing" linux server so I might not be doign this the best way.

The external server is not SME, its at the ISP running on BSD IIRC.  They use horde as a front end.

I'll post more when I have it.

CJ

Offline mmccarn

  • *
  • 2,651
  • +10/-0
smeserver-fetchmail : newb having problems
« Reply #3 on: May 27, 2007, 04:16:20 PM »
Have you seen or tried 'imapcopy'? It will do exactly what you originally requested - copy the entire imap folder tree from any imap server to any other imap server: http://www.sonoracomm.com/index.php?option=com_content&task=view&id=60&Itemid=32

(Note: I tried to download imapcopy yesterday and got 'server too busy' errors for several hours -- but today it's letting me in again...)