Closed TopicStart new topicStart Poll

> Dovecot (imap) Integration, Dovecot auth against Xmail via pam_pop3
Posted: Jan 31 2005, 11:24 PM
Quote Post


Group: Members
Posts: 1
Member No.: 1491
Joined: 31-January 05

The topic about Dovecot and XMail was nice but it introduce additional step before Dovecot can see changes in XMail user database - administrator must run xmail2dovecot.php to update 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 unpack and run make. Copy resulted 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 - XMail No Root and A small how-to for running chrooted XMail (no need to chroot).

3. Additional configuration
Dovecot config:

first_valid_uid = 10
auth = default
auth_mechanisms = plain
auth_passdb = pam
auth_userdb = static uid=108 gid=108 home=/var/spool/xmail/domains/%d/%n/Maildir
auth_user = root
login = imap
protocols = imap
default_mail_env = maildir:/var/spool/xmail/domains/%d/%n/Maildir

uid=108 is UID Dovecot and XMails runs under.

Put into /etc/pam.d/dovecot:

auth    required hostname=localhost
account required

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=.
PMEmail Poster
Posted: Feb 1 2005, 07:38 AM
Quote Post

No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02

Thanks for this nice howto!


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Documentation and Knowledge Base | Next Newest »

Closed TopicStart new topicStart Poll