Next
Previous
Contents
If you used the debian packages, you shouldn't be reading this unless something
went really wrong.
You can specify the database to use with the environment variable LOGINDB.
- For courier authentication
modules, you need to set this parameter both in /etc/courier/imapd (or wherever your configuration files
for courier are) and /etc/courier/pop3d and to modify /etc/init.d/courier-pop as indicated above.
- For the cron job, modify /etc/cron.d/courier-authpostfix.cron (the
number indicates how old, in minutes, can at most the entries be, while cron regulates how often
the database should be cleaned up) and set the name of the database.
- For postfix, add the following lines to /etc/postfix/main.cf:
smtpd_recipient_restrictions =
permit_mynetworks
check_client_access type:nameofdb
check_relay_domains
where type:nameofdb is the name of the database. These lines instruct instruct postfix
to allow relaying only from ``mynetworks'' and to those host listed in the database.
Ok, now you should have something like ``LOGINDB=type:nameofdb'' both in /etc/courier/{pop3d,imapd},
you should have a cron job in /etc/cron.d that looks like ``authcleanup 10 type:nameofdb'' and you
should have modified /etc/init.d/courier-pop (or pop3d) as indicated above. Now, you only need
to tell courier to load authpostfix as the last authentication module. You should check
the documentation provided with courier or with your distribution in order to correctly do this.
Usually you should add authpostfix as the last option of the AUTHMODULES parameter
in the configuration files of imap and pop3. Note that authpostfix must be the last authentication
module to load, otherwise it won't work.
Next
Previous
Contents