At present I get email directly on my laptop in /var/spool/mail/* through uucp. I'd like to get the email in the same directory on my desktop (alfred), and then run a mail server on the destop and collect the email on my laptop (william) (or on other computers on my two little home LANs, ethernet and WiFi). I was advised that dovecot was a good imap server for this purpose (I tried cyrus-imapd, but decided it was too complicated), so I'm running dovecot on alfred (my desktop), with the following /etc/dovecot.conf (minus comments): ===========================================imap_listen = * pop3_listen = * login_dir = /var/run/dovecot-login login = imap login = pop3 default_mail_env = mbox:~/mail/:INBOX=/var/spool/mail/%u mbox_locks = fcntl auth = default auth_mechanisms = plain auth_userdb = passwd auth_passdb = pam auth_user = root auth_verbose = yes =========================================== I am able to access my desktop with telnet from my laptop: ===========================================[tim at william ~]$ telnet alfred 143 Trying 192.168.1.1... Connected to alfred. Escape character is '^]'. * OK dovecot ready. x login tim <password> x OK Logged in. ^] telnet> quit Connection closed. =========================================== Unfortunately, neither fetchmail not KMail on my laptop seem able to retrieve mail from my desktop. With fetchmail I get the error message: ===========================================[tim at william ~]$ fetchmail alfred fetchmail: Server CommonName mismatch: localhost.localdomain != alfred fetchmail: Server CommonName mismatch: localhost.localdomain != alfred 10 messages for tim at alfred. reading message tim at alfred.murphy.ie:1 of 10 (765 header octets) fetchmail: fetchmail: getaddrinfo(localhost.smtp) fetchmail: SMTP connect to localhost failed fetchmail: SMTP transaction error while fetching from alfred fetchmail: Query status=10 (SMTP) =========================================== My .fetchmailrc on william reads ===========================================poll alfred ????????proto?IMAP ????????user?"tim"?password?"whatever" =========================================== I have no better luck trying to retrieve mail with KMail on the laptop, after adding the following entry to KMail=>Settings=>Configure KMail=>Network=>Receiving =============================================Name: dovecot Login: tim Password: <password> Host: alfred Port: 143 Prefix to folders: /var/spool/mail/ =============================================(I also tried with "Prefix to folders:" empty.) When I start KMail on william I get the message "Checking account dovecot for new mail", but no mail comes over, and I see no error in the log files on either machine (although I may have missed something there). I should say that I am running Fedora-3 with all programs up-to-date. Apologies for the long message; any suggestions of advice gratefully received. -- Timothy Murphy e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
Timothy Murphy wrote:>At present I get email directly on my laptop >in /var/spool/mail/* through uucp. >I'd like to get the email in the same directory >on my desktop (alfred), and then run a mail server on the destop >and collect the email on my laptop (william) >(or on other computers on my two little home LANs, ethernet and WiFi). > >I was advised that dovecot was a good imap server for this purpose >(I tried cyrus-imapd, but decided it was too complicated), >so I'm running dovecot on alfred (my desktop), > > >If I understand, the mail arrives on Laptop (William) (through uucp) so the mail boxes are on William so You must install dovecot on William. Netherless If you want dovecot running on Desktop (Alfred), you need setup up the arrival of mail on Alfred. You cannot have mailboxes on alfred and dovecot on William (and vice versa) except if you use NFS or some network sharing. the imap server reside on the same side of the smtpd server that's my advice.
On Tuesday 07 December 2004 15:28, David Sheryn wrote:> > With fetchmail I get the error message: > > ===========================================> > [tim at william ~]$ fetchmail alfred > > fetchmail: Server CommonName mismatch: localhost.localdomain != alfred > > fetchmail: Server CommonName mismatch: localhost.localdomain != alfred > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > This would appear to be you problem. You have an identity crisis > somewhere. Either your laptop or you dektop (or both) are confused as to > their (LAN, i.e. IP) network identity (note that this has nothing to do > with UUCP -- unless, of course, you are attempting to run UUCP over IP > which would be ill-advised.) > > It's not at all obvious where the misconfig lies, but I'd start with host > files / interface configs.I'm sure you are right that this is where the problem lies. Unfortunately I don't know what the solution is. There is no "identity crisis" normally, as I ssh from one machine to the other with no problem, and eg keep a yum repository on the desktop which I use to update Fedora-3 on the small number of machines on my two little LANs (Ethernet and WiFi). I googled for this error "Server CommonName mismatch" and found dozens fo hits, but none of them seemed to suggest a concrete solution. What slightly puzzles me is that dozens of people must be using dovecot for more or less the purpose I envisage - otherwise what are they using it for - so my little problem must have arisen many times before. -- Timothy Murphy e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
Timothy Murphy wrote: > Unfortunately, neither fetchmail not KMail on my laptop> seem able to retrieve mail from my desktop. > > With fetchmail I get the error message: > ===========================================> [tim at william ~]$ fetchmail alfred > fetchmail: Server CommonName mismatch: localhost.localdomain != alfred > fetchmail: Server CommonName mismatch: localhost.localdomain != alfred > 10 messages for tim at alfred. > reading message tim at alfred.murphy.ie:1 of 10 (765 header octets) fetchmail: > fetchmail: getaddrinfo(localhost.smtp) > fetchmail: SMTP connect to localhost failed > fetchmail: SMTP transaction error while fetching from alfred > fetchmail: Query status=10 (SMTP) > ===========================================>OK. First there's the name problems, which fetchmail seems to be warning (not erroring) about. But it does seem to fetch the e-mail. Then, however, it can't connect to the local mail server on william. From my memory of fetchmail, it requires you to run a MTA on the local machine for it to deliver to. Have you remembered to install and start something like postfix, exim, or even sendmail?> My .fetchmailrc on william reads > ===========================================> poll alfred > proto IMAP > user "tim" password "whatever" > ===========================================> > I have no better luck trying to retrieve mail with KMail on the laptop, > after adding the following entry to > KMail=>Settings=>Configure KMail=>Network=>Receiving > =============================================> Name: dovecot > Login: tim > Password: <password> > Host: alfred > Port: 143 > Prefix to folders: /var/spool/mail/ > =============================================> (I also tried with "Prefix to folders:" empty.) > > When I start KMail on william I get the message > "Checking account dovecot for new mail", > but no mail comes over, > and I see no error in the log files on either machine > (although I may have missed something there). >So long as you have alfred in your /etc/resolv.conf, I can't see any specific reason why this wouldn't work. I have used K-Mail with dovecot quite happily (though I've now moved to using Thunderbird). Have you subscribed to all of the folders? Though it ought to at least spot the inbox, it's worth double checking.> I should say that I am running Fedora-3 > with all programs up-to-date. > > Apologies for the long message;Better to have more information and not need it, than... Hope I've helped some.. -- Curtis Maloney