PICCORO McKAY Lenz writes:
ok i setup and no access file and got this:imapd[5022]: /etc/courier/imapaccess.dat: No such file or directory
If you have no access file, you should not specify the -access parameter to couriertcpd.
Let's look at the imapd.rc startup script in the (either) courier package: if test ! -f "${IMAPACCESSFILE}.dat" then if test -e "${IMAPACCESSFILE}" then $sbindir/makeimapaccess else echo "IMAPACCESSFILE is missing." >&2 exit 1 fi fiIf there's no imapaccessfile.dat, but there is imapaccess, it should automatically run makeimapaccess and create it. My default package simply requires an imapaccess file or directory (remember that it can be either), even an empty one. The remaining script always passes the -access parameter to couriertcpd.
Now, let's take a look at the Makefile.am in the courier-imap package: install-exec-hook: chmod 444 $(DESTDIR)$(sysconfdir)/quotawarnmsg.example mkdir -p $(DESTDIR)$(sysconfdir)/shared chmod 755 $(DESTDIR)$(sysconfdir)/shared mkdir -p $(DESTDIR)$(sysconfdir)/shared.tmp chmod 755 $(DESTDIR)$(sysconfdir)/shared.tmp mkdir -p $(DESTDIR)$(sysconfdir)/imapaccess chmod 755 $(DESTDIR)$(sysconfdir)/imapaccess"make install" in the courier-imap package creates an empty imapaccess directory.
And in the "courier" package, it's in courier/Makefile.am: install-data-hook: -$(mkinstalldirs) $(DESTDIR)$(sysconfdir)/aliases -$(mkinstalldirs) $(DESTDIR)$(sysconfdir)/smtpaccess -$(mkinstalldirs) $(DESTDIR)$(sysconfdir)/imapaccess To summarize:1) make install from the either the vanilla courier or courier-imap creates an empty imapaccess directory.
2) the imapd startup script: A) automatically creates imapaccess.dat if it does not exist, and B) always specifies the -access parameter to couriertcpd.
If you would like to use a custom startup script that does not use imapaccess at all, you can do that but you need to do the correct thing: if there is no imapaccess.dat, then, of course, do not pass the -access parameter to couriertcpd.
pgpmg2tZaZvQa.pgp
Description: PGP signature
_______________________________________________ Courier-imap mailing list Courier-imap@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap