Naar inhoud springen

IMAPD installations palternative

Uit VanderSchaft
Versie door Dschaft (overleg | bijdragen) op 21 mrt 2026 om 17:09 (Nieuwe pagina aangemaakt met 'Installing Cyrus IMAPd on FreeBSD involves installing the package, configuring /usr/local/etc/imapd.conf and /usr/local/etc/cyrus.conf, initializing the mail spool, and enabling the service in /etc/rc.conf. Common versions include cyrus-imapd312 or cyrus-imapd25, with saslauthd required for authentication. freebsd.org freebsd.org +2 1. Installation Install Cyrus IMAP via package: bash pkg install cyrus-imapd312 Note: You may also need to install cyrus-sasl f…')
(wijz) ← Oudere versie | Huidige versie (wijz) | Nieuwere versie → (wijz)

Installing Cyrus IMAPd on FreeBSD involves installing the package, configuring /usr/local/etc/imapd.conf and /usr/local/etc/cyrus.conf, initializing the mail spool, and enabling the service in /etc/rc.conf. Common versions include cyrus-imapd312 or cyrus-imapd25, with saslauthd required for authentication. freebsd.org freebsd.org

+2

1. Installation Install Cyrus IMAP via package: bash pkg install cyrus-imapd312 Note: You may also need to install cyrus-sasl for authentication. freebsd.org freebsd.org 2. Configuration Create/Edit Configs: Copy sample configurations from /usr/local/etc/cyrus.conf.sample and /usr/local/etc/imapd.conf.sample to /usr/local/etc/. Set Mail Spool: Modify /usr/local/etc/imapd.conf to set configdirectory, partition-default, and other necessary parameters. Create Spool: Run the following to prepare the spool directories: bash /usr/local/cyrus/sbin/mkimap Fix Permissions: Ensure the cyrus user owns the directories: bash chown -R cyrus:cyrus /var/imap chown -R cyrus:cyrus /var/spool/imap

FreshPorts FreshPorts

+3

3. Setup Authentication (saslauthd) To use system users (PAM/passwd) for mail authentication: Add saslauthd_enable="YES" to /etc/rc.conf. Start saslauthd: service saslauthd start. Ensure pwcheck_method: saslauthd is set in /usr/local/etc/imapd.conf. freebsd.org freebsd.org

+1

4. Start Cyrus IMAPd Add the following to /etc/rc.conf to enable the service: FreshPorts FreshPorts bash sysrc cyrus_imapd_enable="YES" service cyrus-imapd start 5. Create Administrator Create a user with mailbox admin rights: bash saslpasswd2 -c cyrus Key Considerations Upgrading: When upgrading, use cyr_info conf-lint to check for deprecated configuration options. BDB Backend: If using BerkeleyDB (BDB), build the port with BDB support enabled, though switching to alternatives is recommended. Virtual Users: For non-system users, configure saslauthd to use LDAP or a separate SQL database. freebsd.org freebsd.org

+2