For some time now I have been trying to get IMAP resources working on KMail. I have followed the docs from kde, but they tell how to configure cyrus IMAP, so I've had to learn as I went along. After a lot of help from the postfix list I now have a working sasl. The ability of the user 'groupware' to log in with PLAIN has been checked in a telnet session. Everything in KMail has been set up as in the documentation, but it doesn't work. Now I'm wondering if anything in my dovecot configuration needs changing. dovecot -n # /etc/dovecot.conf base_dir: /var/run/dovecot/ log_path: /var/log/mail/mail info_log_path: /var/log/mail/mail.info protocols: imap listen: *:143 login_dir: /var/run/dovecot/login login_executable: /usr/libexec/dovecot/imap-login mail_extra_groups: mail mail_location: maildir:~/Maildir/ maildir_copy_with_hardlinks: yes auth default: mechanisms: plain login debug: yes debug_passwords: yes passdb: driver: pam userdb: driver: passwd socket: type: listen client: path: /var/spool/postfix/private/dovecot-auth mode: 432 user: postfix group: postfix master: I'd be thankful for any help. Thanks Anne -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: <http://dovecot.org/pipermail/dovecot/attachments/20080322/0306bf17/attachment-0002.bin>
On Saturday 22 March 2008 14:53, Anne Wilson wrote:> For some time now I have been trying to get IMAP resources working on > KMail. I have followed the docs from kde, but they tell how to configure > cyrus IMAP, so I've had to learn as I went along. >Referring back to those docs, it seems that this is the part that I'm missing (cyrus instructions follow): <quote> Now add a user named groupware and set a password for it, using your usual system tools. It should be in an unprivileged group such as nobody and does not require a login shell or a home directory. Now I have to create the user and an IMAP in cyrus also: # cyramd --user cyrus localhost after entering the password for the admin user cyrus, you get the prompt localhost> localhost> cm user.groupware localhost> lm _lists the mailbox onlyjust created_ user.groupware (\HasNoChildren)) localhost> quit You can type help for a list of available commands. You can check what has happened with: ls -l /var/spool/cyrus/mail/g/user/groupware total 12 -rw------- 1 cyrus mail 4 Oct 29 20:55 cyrus.cache -rw------- 1 cyrus mail 155 Oct 29 20:55 cyrus.header -rw------- 1 cyrus mail 76 Oct 29 20:55 cyrus.index Now you should be able to connect with an IMAP client as the groupware user and see the INBOX. NOTE In the IMAP protocol, selecting the mailbox INBOX is a magic word, a sort of "alias" for the above directory structure. The client sees INBOX, and the IMAP server maps it in the /var/spool/cyrus/mail/... folder and file structure. </quote> How would I create a dovecot user instead of this cyrus one? My own attempt have totally failed. Anne
It is safe to assume that there are no clairvoyant's on this list, so you probably need to provide a bit more specific information about your difficulties to get useful suggestions. Unstated details that are relevant to narrowing down the problem include: 1. What OS are you running? 2. How exactly does KMail fail to work, i.e. is it just doing nothing or is it providing some sort of expression of Not Working? 3. What did dovecot write to its logs when KMail failed to work? At 2:53 PM +0000 3/22/08, Anne Wilson wrote:>For some time now I have been trying to get IMAP resources working on KMail. >I have followed the docs from kde, but they tell how to configure cyrus IMAP, >so I've had to learn as I went along. > >After a lot of help from the postfix list I now have a working sasl. The >ability of the user 'groupware' to log in with PLAIN has been checked in a >telnet session. Everything in KMail has been set up as in the documentation, >but it doesn't work. Now I'm wondering if anything in my dovecot >configuration needs changing. > >dovecot -n > ># /etc/dovecot.conf >base_dir: /var/run/dovecot/ >log_path: /var/log/mail/mail >info_log_path: /var/log/mail/mail.info >protocols: imap >listen: *:143 >login_dir: /var/run/dovecot/login >login_executable: /usr/libexec/dovecot/imap-login >mail_extra_groups: mail >mail_location: maildir:~/Maildir/ >maildir_copy_with_hardlinks: yes >auth default: > mechanisms: plain login > debug: yes > debug_passwords: yes > passdb: > driver: pam > userdb: > driver: passwd > socket: > type: listen > client: > path: /var/spool/postfix/private/dovecot-auth > mode: 432 > user: postfix > group: postfix > master: > >I'd be thankful for any help. Thanks > >Anne >-- Bill Cole bill at scconsult.com