Line 1: |
Line 1: |
| '''Cyrus-Imap''' | | '''Cyrus-Imap''' |
− | =How to install and use cyrus-imap on sme7= | + | |
| + | This is a rather complicated modification of SME7 to maintain. But it works fine. |
| + | Recently, Zarafa became opensource and should be evaluated first. |
| + | |
| + | It adds cyrus-imap and a server-manager panel to SME-Server |
| + | |
| + | This howto works also for SME8. |
| + | |
| + | =How to install and use cyrus-imap on sme7 and sme8= |
| Cyrus-imap enables folder sharing of mail items. Coupled with the Toltec connector, it can replace many functions of the Exchange Server with mail client Outlook. | | Cyrus-imap enables folder sharing of mail items. Coupled with the Toltec connector, it can replace many functions of the Exchange Server with mail client Outlook. |
| + | |
| + | By Sophie Romano (SopRom) http://www.logiciel-libre.org |
| + | I am not a developper and this HowTo is mainly for the records! |
| | | |
| This howto presents installation and usage of the cyrus-imap server on a Sme-Server system. | | This howto presents installation and usage of the cyrus-imap server on a Sme-Server system. |
| | | |
− | The cyrus-imap web site is at [http://cyrusimap.web.cmu.edu/] | + | The cyrus-imap web site and other links: |
| + | * http://cyrusimap.web.cmu.edu. |
| + | * http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/cyrus-config.html |
| + | * http://artisan.karma-lab.net/node/1149 |
| | | |
| ==Beware !== | | ==Beware !== |
| | | |
| ===Replacing mail server=== | | ===Replacing mail server=== |
− | You'll be modifying the SME7 and some actions will required from time to time when updates are reacting with this modification. If you are new to SME7 and linux, it might be advisable to try this on a test machine. | + | You'll be modifying the SME7 and some actions will be required from time to time, when updates are applied. For example, the file preline has its permissions resetted after some updates. '''Always test send/receive after a "yum update"'''. |
| + | |
| + | If you are new to SME7 and linux, it might be advisable to try this on a test machine. |
| + | |
| ===Scripts=== | | ===Scripts=== |
| I am not a programmer. I assembled these scripts from the works of others (Lionel and Jon) and adapted them to SME7. There is no translation since the implementation of the new language engine. | | I am not a programmer. I assembled these scripts from the works of others (Lionel and Jon) and adapted them to SME7. There is no translation since the implementation of the new language engine. |
− |
| |
| | | |
| == Credits == | | == Credits == |
Line 35: |
Line 51: |
| Some services (imap, imaps, pop, pops) are disabled and replaced. After the installation of needed RPMS, templates are created and expanded, and newly replaced services are enabled. Finally, a panel is added to the server-manager menu. | | Some services (imap, imaps, pop, pops) are disabled and replaced. After the installation of needed RPMS, templates are created and expanded, and newly replaced services are enabled. Finally, a panel is added to the server-manager menu. |
| | | |
− | Note that POP and IMAP are rendered inaccessible from the Internet with these changes. It better to leave that so since vulnerabilities with this cyrus-imap implementation are not managed and investigated by the dev-team.
| + | The script will install these packages: |
| | | |
| + | * cyrus-imapd |
| + | * cyrus-imapd |
| + | * cyrus-imapd-devel |
| + | * cyrus-imapd-murder |
| + | * cyrus-imapd-nntp |
| + | * cyrus-imapd-utils |
| + | * cyrus-sasl-devel |
| + | * cyrus-sasl-gssapi |
| + | * cyrus-sasl-ntlm |
| + | * cyrus-sasl-plain |
| + | * perl-Cyrus |
| + | * cyrus-sasl |
| + | * cyrus-sasl-md5 |
| + | |
| + | Note that POP and IMAP are rendered inaccessible from the Internet with these changes because the services are disabled in the configuration. |
| + | |
| + | ==Install== |
| mkdir -p /root/cyrus/uninstall | | mkdir -p /root/cyrus/uninstall |
| cd /root/cyrus | | cd /root/cyrus |
Line 44: |
Line 77: |
| cd smeserver-cyrus | | cd smeserver-cyrus |
| wget http://www.logiciel-libre.org/downloads/cyrus-imap-sme-howto/install-cyrus.sh | | wget http://www.logiciel-libre.org/downloads/cyrus-imap-sme-howto/install-cyrus.sh |
| + | wget http://www.logiciel-libre.org/downloads/cyrus-imap-sme-howto/restore_db.sh |
| chmod u+x install-cyrus.sh | | chmod u+x install-cyrus.sh |
| cd uninstall | | cd uninstall |
Line 51: |
Line 85: |
| ./install-cyrus.sh | | ./install-cyrus.sh |
| | | |
− | ==Problem with yum update== | + | ==Updates== |
− | When updating (yum update) there is a problem from time to time with php-common. The workaround is: | + | When updating (yum update) there is a problem from time to time with php-common. |
| + | |
| + | The workaround is to remove php-common and reinstall it after the update: |
| rpm -e php-common | | rpm -e php-common |
| yum -y update | | yum -y update |
Line 73: |
Line 109: |
| | | |
| == Managing Accounts == | | == Managing Accounts == |
− | [[Image:Cyrus-imap-sme-account.jpg]]
| |
| | | |
| The standard SME folder structure for mail is in | | The standard SME folder structure for mail is in |
Line 108: |
Line 143: |
| | | |
| ==Toltec's Outlook Connector== | | ==Toltec's Outlook Connector== |
| + | |
| + | Although folder sharing works fine with EGroupware, Thunderbird, etc., it also provides the base for Exchange functionnalities. So with a connector (non-free) we can have Outlook clients share calendars, contacts, notes... Toltec makes one of these connectors. It's not expensive, it works. |
| + | |
| [[Image:tolec.perm.jpg]] | | [[Image:tolec.perm.jpg]] |
| The connector is available from here and the manual from here (toltec.co.za). It has been tested with the Kolab server. | | The connector is available from here and the manual from here (toltec.co.za). It has been tested with the Kolab server. |
Line 118: |
Line 156: |
| | | |
| ==Cyradm== | | ==Cyradm== |
| + | '''Critical data are stored in /var/spool/imap''' |
| | | |
| CLI can be used to manage some options. See the man pages here. | | CLI can be used to manage some options. See the man pages here. |
Line 160: |
Line 199: |
| cd /root/cyrus | | cd /root/cyrus |
| chmod u+x uninstall-cyrus.sh | | chmod u+x uninstall-cyrus.sh |
− | signal-event post-upgrade && signal-event reboot | + | ./uninstall-cyrus.sh |
| + | signal-event post-upgrade && signal-event; reboot |
| + | |
| + | ---- |
| + | [[Category:Howto]] |
| + | [[Category:Mail]] |