Centos 上安裝 courier-imap

For some reason there are no Courier packages (courier-imap, courier-authlib, maildrop) available on RedHat-based distributions

yum groupinstall 'Development Tools'

yum install rpm-build gcc mysql-devel openssl-devel cyrus-sasl-devel pkgconfig zlib-devel pcre-devel openldap-devel postgresql-devel expect libtool-ltdl-devel openldap-servers libtool gdbm-devel pam-devel gamin-devel libidn-devel

useradd -m -s /bin/bash falko
passwd falko

visudo 後加入

falko   ALL=(ALL)       ALL

su falko

mkdir $HOME/rpm
mkdir $HOME/rpm/SOURCES
mkdir $HOME/rpm/SPECS
mkdir $HOME/rpm/BUILD
mkdir $HOME/rpm/BUILDROOT
mkdir $HOME/rpm/SRPMS
mkdir $HOME/rpm/RPMS
mkdir $HOME/rpm/RPMS/i386
mkdir $HOME/rpm/RPMS/x86_64

mkdir $HOME/downloads
cd $HOME/downloads

下載今次的主角:

下載 courier-authlib-0.63.0.tar.bz2, maildrop-2.5.5.tar.bz2, courier-imap-4.9.3.tar.bz2
wget --no-check-certificate https://sourceforge.net/projects/courier/files/authlib/0.63.0/courier-au...
wget --no-check-certificate https://sourceforge.net/projects/courier/files/imap/4.9.3/courier-imap-4...
wget --no-check-certificate https://sourceforge.net/projects/courier/files/maildrop/2.5.5/maildrop-2...

rpmbuild -ta *

-t<STAGE>
--target PLATFORM    <--arch-vendor-os

rpmbuild --showrc

 

 


Disable imap 的 STARTTLS

 

# 以下設定不是用來  Disable STARTTLS

IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN"

# ACL 不是用 IMAP_CAPABILITY 去 disable 的 !!

IMAP_ACL=0

# TLS 後的 CAPABILITY

IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN"

# Disable STARTTLS

IMAPDSTARTTLS=YES