From owner-freebsd-questions@FreeBSD.ORG Thu Oct 20 13:56:08 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF38F16A43C for ; Thu, 20 Oct 2005 13:56:08 +0000 (GMT) (envelope-from pgiessel@mac.com) Received: from sendmail.leela.ws (209-193-28-35-cdsl-rb1.jnu.acsalaska.net [209.193.28.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 133B043D62 for ; Thu, 20 Oct 2005 13:56:07 +0000 (GMT) (envelope-from pgiessel@mac.com) Received: from [192.168.0.18] ([192.168.0.18]) by sendmail.leela.ws (8.12.7/8.12.2) with ESMTP id j9KDtNEf012501; Thu, 20 Oct 2005 05:55:24 -0800 (AKDT) Message-ID: <4357A1F4.20608@mac.com> Date: Thu, 20 Oct 2005 05:56:04 -0800 From: "Peter A. Giessel" User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051006) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave References: <000301c5d50a$519bc740$0900a8c0@satellite> <4356EB0D.7090001@dot.state.ak.us> <000901c5d521$7abc3940$0900a8c0@satellite> In-Reply-To: <000901c5d521$7abc3940$0900a8c0@satellite> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: dovecot can not find mailbox X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2005 13:56:09 -0000 As Greg Lehey always writes: [Format recovered--see http://www.lemis.com/email/email-format.html] Also, please CC the list, I'm not an expert by any means, so others may be able to help when I can't and others may benefit from the discussion. Dave wrote: > ----- Original Message ----- From: "Peter A. Giessel" > > To: "Dave" > Cc: "freeBSD" > > >> On 10/19/2005 16:07, Dave seems to have typed: >> >>> i edited my dovecot.conf file and changed the mail_env option, >>> uncommented it and made it %h/%u/Maildir >>> and no good. Any suggestions? >> > > Thanks, yes i am running 1.0. I uninstalled 0.99 and reinstalled > 1.0so i don't believe i'm having an upgrade issue. If you've got a > working dovecot.conf file that uses maildir can i see it? Something in > mine is clearly not right. I checked the page you referenced it didn't > tell me anything beyound what i already knew. I'd recheck the variables that you are using because I believe the correct variable isn't "mail_env", its "default_mail_env" >From the version 1.0.x config file: *** QUOTE *** # See doc/variables.txt for full list. Some examples: # # default_mail_env = maildir:/var/mail/%1u/%u/Maildir # default_mail_env = mbox:~/mail/:INBOX=/var/mail/%u # default_mail_env = mbox:/var/mail/%d/%n/:INDEX=/var/indexes/%d/%n *** END QUOTE *** I *STRONGLY* recommend that you start by recopying from the .conf.sample. Here is my working dovecot.conf file: *** QUOTE *** [/usr/local/etc]> more dovecot.conf | grep -v "#" base_dir = /var/run/dovecot/ protocols = imaps imap pop3s ssl_disable = no ssl_cert_file = /etc/certs/ssl.crt ssl_key_file = /etc/certs/ssl.key ssl_parameters_file = /var/run/dovecot/ssl-parameters.dat ssl_parameters_regenerate = 0 disable_plaintext_auth = yes log_path = /var/log/dovecot info_log_path = /var/log/dovecot_info login_dir = /var/run/dovecot/login login_user = dovecot login_process_per_connection = yes login_processes_count = 3 login_max_processes_count = 64 login_max_logging_users = 128 login_greeting = Dovecot ready. verbose_proctitle = no first_valid_uid = 500 last_valid_uid = 0 first_valid_gid = 1 last_valid_gid = 0 mail_extra_groups = mail valid_chroot_dirs = /var/mail default_mail_env = maildir:/usr/mail/%n maildir_copy_with_hardlinks = yes protocol imap { mail_executable = /usr/local/libexec/dovecot/imap imap_client_workarounds = delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep } protocol pop3 { mail_executable = /usr/local/libexec/dovecot/pop3 pop3_uidl_format = %08Xu%08Xv pop3_client_workarounds = outlook-no-nuls oe-ns-eoh } auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@ auth default { mechanisms = plain passdb sql { args = /usr/local/etc/dovecot-mysql.conf } userdb sql { args = /usr/local/etc/dovecot-mysql.conf } user = root } *** END QUOTE *** [Blank lines removed.] My goal was to create completely database powered SSL authenticated system, and it pretty much worked. I needed an unsecured imap server running so that Sendmail could use it for authentication for sending mail (username and password are required for relaying, which are transmitted to the server via SSL, but the query from Sendmail to dovecot to check credentials - localhost:143 isn't encrypted. Anyway, mail users don't have a home (login) directory, just a mail directory which is why my maildir is a bit odd. Hope that helps.