2019-09-20 - hschneider, Admin
Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.
Printable Version of Topic
Click here to view this topic in its original format |
XMail Forum > Documentation and Knowledge Base > Dovecot (imap) Integration |
Posted by: arkadi Jan 31 2005, 11:24 PM | ||||
The topic about http://xmailforum.homelinux.net/index.php?showtopic=2159 was nice but it introduce additional step before Dovecot can see changes in XMail user database - administrator must run xmail2dovecot.php to update dovecotusers.tab which could be a problem if users are managed via PHPXMail, for example. Another solution is to use pam_pop3 module to authenticate users against XMail directly. 1. Install pam_pop3 Download source from ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/pam_pop3-1.0.tar.gz unpack and run make. Copy resulted pam_pop3.so to /lib/security directory. In case make fails with many syntax errors - you need PAM development headers to be installed. Install them from your distribution package, something like pam-devel...rpm (RedHat/etc.) or libpam0g-dev (Debian). If you are on *BSD then use security/pam_pop3 port. 2. Dovecot and XMail non-root UID setup Perform necessary steps to run XMail and Dovecot under single non-root UID as described in above mentioned topic. These non-root UID guides are ok too - http://sandbox.rulemaker.net/ngps/132 and http://www.spectr.org/sergey/HowTo-Chrooted-XMail.html (no need to chroot). 3. Additional configuration Dovecot config:
uid=108 is UID Dovecot and XMails runs under. Put into /etc/pam.d/dovecot:
hostname=localhost is where XMail is running. There is also port= parameter to change POP3 port - you could skip XMail pop3 20110 port mapping with Iptables, enable Dovecot POP3 service and run your mail server frontend services entirely by Dovecot, in that case you need port=. |
Posted by: hschneider Feb 1 2005, 07:38 AM |
Thanks for this nice howto! |