Ok, everything up to this point is working as described in this excellent HOWTO. My problem comes in when I try to do a fetchmail from my ISP and place the received email directly into the imap mailbox using the lmtp unix socket. Here is my ~/.fetchmail:
poll pop.chartertn.net proto pop3 user "gds@xxxxxxxxxxxxx" password "xxxxxxxxxxxx", is "gene" here smtphost "/var/lib/imap/socket/lmtp"
Leaving out the last line above (smtphost ...) fixes the problem and mail now appears in imap inbox folder.
When I have a new message on the pop server and I run fetchmail -kv from ~ I get the error:
fetchmail: LMTP connect to /var/lib/imap/socket/lmtp failed