Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Mar 2003 10:42:34 -0700
From:      "Anthony C. Chavez" <acc@anthonychavez.org>
To:        freebsd-questions@freebsd.org
Subject:   mail/postfix + mail/cyrus-imapd2 woes
Message-ID:  <20030317174234.GA95108@athena.anthonychavez.org>

next in thread | raw e-mail | index | archive | help

--u3/rZRmxL6MmkK24
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Friends:

I just installed Postfix and the Cyrus IMAPD server (from ports, of
course) on 4-STABLE and am having a very difficult time getting them to
play together.

I have gone through the necessary hoops to convert my mboxes to Maildir
format, and Mutt seems to work just fine when I access ~/Maildir
directly.

I have tested saslauthd (from the security/cyrus-sasl2 port) according
to the documention's recommendation: I built testsaslauthd, executed it,
and got "OK" when I entered my correct password and "NO" when I didn't.

I have tested authenticating to the IMAP server, both with my MUAs and
with imtest.  I have tested various mechanisms: LOGIN, STARTTLS,
CRAM-MD5 and DIGEST-MD5.  All work just fine.

Now, when I try to get my mail folders from IMAP, I get "Folder does not
exist" errors with my MUAs.  Packet analysis reveals that the IMAP
server itself also gives the same error.

This leads me to believe that the problem lies somewhere in my
configuration.  I have included relevant diffs below.

One thing I should note is that my DNS has an A record for
athena.anthonychavez.org and a CNAME record for mail.anthonychavez.org,
hence the myhostname entry.

I would appreciate any help that anyone could offer in getting this to
work.  I find the features that Cyrus has to offer very appealing, and
would very much like to use it.  Thanks!

--- /usr/local/etc/postfix/sample-main.cf	Sun Mar 16 22:48:04 2003
+++ /usr/local/etc/postfix/main.cf	Mon Mar 17 09:35:09 2003
@@ -66,6 +66,7 @@
 #
 #myhostname =3D host.domain.tld
 #myhostname =3D virtual.domain.tld
+myhostname =3D mail.anthonychavez.org
=20
 # The mydomain parameter specifies the local internet domain name.
 # The default is to use $myhostname minus the first component.
@@ -88,7 +89,7 @@
 # to recipient addresses that have no @domain part.
 #
 #myorigin =3D $myhostname
-#myorigin =3D $mydomain
+myorigin =3D $mydomain
=20
 # RECEIVING MAIL
=20
@@ -150,7 +151,7 @@
 # See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".
 #
 #mydestination =3D $myhostname, localhost.$mydomain
-#mydestination =3D $myhostname, localhost.$mydomain $mydomain
+mydestination =3D $myhostname, localhost.$mydomain $mydomain
 #mydestination =3D $myhostname, localhost.$mydomain, $mydomain,
 #	mail.$mydomain, www.$mydomain, ftp.$mydomain
=20
@@ -407,7 +408,7 @@
 # "Maildir/" for qmail-style delivery (the / is required).
 #
 #home_mailbox =3D Mailbox
-#home_mailbox =3D Maildir/
+home_mailbox =3D Maildir/
 =20
 # The mail_spool_directory parameter specifies the directory where
 # UNIX-style mailboxes are kept. The default setting depends on the
@@ -631,3 +632,7 @@
 # readme_directory: The location of the Postfix README files.
 #
 readme_directory =3D no
+
+smtpd_client_restrictions =3D permit_mynetworks, hash:/usr/local/etc/postf=
ix/access, reject_maps_rbl, permit
+smtpd_sender_restrictions =3D permit_mynetworks, reject_unknown_sender_dom=
ain, hash:/usr/local/etc/postfix/access, reject_maps_rbl, permit
+smtpd_recipient_restrictions =3D permit_mynetworks, check_relay_domains

--- /usr/local/etc/imapd.conf.dist	Mon Mar 17 00:14:18 2003
+++ /usr/local/etc/imapd.conf	Mon Mar 17 01:34:47 2003
@@ -46,7 +46,7 @@
 # IMAP and LMTP daemons. If it is unset, then the result returned from
 # gethostname(2) is used.
 #
-#servername: <result returned by gethostname(2)>
+servername: mail.anthonychavez.org
=20
 # Whether to allow anonymous logins
 #
@@ -284,12 +284,12 @@
 # File containing the global certificate used for ALL services (imap,
 # pop3, lmtp).
 #
-#tls_cert_file: <none>
+tls_cert_file: /var/imap/server.pem
=20
 # File containing the private key belonging to the global server
 # certificate.
 #
-#tls_key_file: <none>
+tls_key_file: /var/imap/server.pem
=20
 # File containing the certificate used for imap ONLY.  If not
 # specified, the global certificate is used.  A value of "disabled"

--=20
Anthony Chavez                             http://www.anthonychavez.org/
mailto:acc@anthonychavez.org         jabber:acc@jabber.anthonychavez.org

--u3/rZRmxL6MmkK24
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+dgkKbZTbIaRBRXERAuczAJ9uRpgv5BarFN/WofBnzU7Q49VfhACdFsFu
nSflXzoktyfxELYOnBARwrA=
=M4fm
-----END PGP SIGNATURE-----

--u3/rZRmxL6MmkK24--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030317174234.GA95108>