POP3/IMAP�T�[�o(Courier-IMAP)�̍\�z(CentOS��)
CentOS�ł́APOP3/IMAP�T�[�o�Ƃ���Dovecot���p�ӂ���Ă���A��ʓI�ɂ͂قƂ�ǐݒ肷�邱�ƂȂ����p�\�ł��B�������ADovecot��mobileimap�Ƃ̑���������mobileimap���N���ł��Ȃ��̂ŁACentOS�ł��]���ǂ���Courier-IMAP�������Ƃɂ��܂����B
�Ȃ��Asquirrelmail�ł͓��ɖ�肪�������Ȃ��̂ŁAmobileimap���g�p���Ȃ��Ȃ�Ǘ����l�����
Dovecot���g�p�����ق����ǂ��ƍl���܂��B
��Courier-IMAP�̃_�E�����[�h��RPM�̍쐬
Courier-IMAP��
����������_�E�����[�h���܂����A4.0�n����F���C�u����(Courier authentication library)���ʂɂȂ����̂ŁA������� rpm���ɍ쐬���ăC���X�g�[�����Ă���łȂ��ƁACourier-IMAP�� rpm���쐬�ł��Ȃ����ƂƁArpm�̍쐬�܂ł͈�ʃ��[�U�ōs��Ȃ��ƃG���[���ł�̂Œ��ӂ��K�v�ł��B��ƃf�B���N�g���̃p�[�~�b�V�����ɂ����ӂ��K�v�ł��B���₶�́A��ƃ��[�U��home�f�B���N�g���Ƀ_�E�����[�h���č�Ƃ��܂����B
�܂��ACentoOS��Fedora Core3�ł�fam�̑ւ���gamin���̗p����Ă���̂ŁAspec�t�@�C���������ύX���Ȃ���rpm���쐬�ł��܂���B
- ������ƂƂ��āA��ƃ��[�U�� home�f�B���N�g���� rpm�̍쐬�����쐬����B
$ cd ~
$ mkdir -p $HOME/rpm/{SOURCES,SPECS,BUILD,SRPMS,RPMS/i386}
$ echo "%_topdir $HOME/rpm" >> $HOME/.rpmmacros |
- �쐬���� rpm�쐬���� SOURCES�f�B���N�g���Ɉړ����āAcourier authentication
library ���_�E�����[�h���āArpm���쐬����B
$ cd ~/rpm/SOURCES
$ wget http://jaist.dl.sourceforge.net/sourceforge/courier/courier-authlib-0.55.tar.bz2
$ rpmbuild -ta courier-authlib-0.55.tar.bz2 |
- root�ɂȂ�A�쐬���ꂽ rpm�t�@�C�����m�F���K�v�Ȃ��̂��C���X�g�[������B���₶��login�F�����Ȃ̂ŁAcourier-authlib-0.55-1.i386.rpm�Ɓ@courier-authlib-devel-0.55-1.i386.rpm�݂̂��C���X�g�[�������B�Ȃ��ASRPMS�t�H���_�ɂ�srpm���ł��Ă���B
$ su -
password:xxxxx
# cd ../RPMS/i386
# ls
courier-authlib-0.55-1.i386.rpm
courier-authlib-devel-0.55-1.i386.rpm
courier-authlib-userdb-0.55-1.i386.rpm
courier-authlib-ldap-0.55-1.i386.rpm
courier-authlib-mysql-0.55-1.i386.rpm
courier-authlib-pgsql-0.55-1.i386.rpm
courier-authlib-debuginfo-0.55-1.i386.rpm
# rpm -Uvh courier-authlib-0.55-1.i386.rpm courier-authlib-devel-0.55-1.i386.rpm |
- ������ courier-imap��rpm���쐬���邽�ߍēx��ƃ��[�U�ɖ߂�A�쐬���� rpm�쐬����
SOURCES�f�B���N�g���Ɉړ����āAcourier-imap���_�E�����[�h���ĉ𓀂���B
$ cd ~/rpm/SOURCES
$ wget http://jaist.dl.sourceforge.net/sourceforge/courier/courier-imap-4.0.2.tar.bz2
$ tar -jxf courier-imap-4.0.2.tar.bz2 |
- �𓀂���courier-imap�̃t�H���_���ɂ���spec�t�@�C����ҏW���A~/rpm/SPECS�t�H���_�ɒu���B�ύX�����̂́Afam����gamin�ւ̕ύX�Ɠ��{�ꌟ���@�\�̂��߂�
unicode�ւ� iso-2022-jp�̒lj��ł���B
$ sed -e "s/fam/gamin/g" \
-e "s/iso-8859-1/iso-2022-jp,iso-8859-1/g"
\
./courier-imap-4.0.2/courier-imap.spec >
../SPECS/courier-imap.spec |
- SPECS�f�B���N�g���Ɉړ�����rpm���쐬����B�ˑ��W�Ōx�����o����AYum�ŃC���X�g�[������B
$ cd ../SPECS
$ rpmbuild -ba courier-imap.spec |
- root�ɂȂ�A�쐬���ꂽ rpm�t�@�C�����m�F���C���X�g�[������B�Ȃ��ASRPMS�t�H���_�ɂ�srpm���ł��Ă���B
$ su -
password:xxxxx
# cd ../RPMS/i386
# ls
courier-imap-4.0.2-1.i386.rpm
# rpm -Uvh courier-imap-4.0.2-1.i386.rpm |
�Ȃ��A���₶���쐬����CentOS4.0�p��rpm��
�������ɒu���Ă����܂��B
��Courier-IMAP�̐ݒ�
Corier-IMAP��rpm����C���X�g�[������ƁA�f�t�H���g��POP3/POP3 over SSL/IMAP/IMAP
over SSL��4�̃��[�h���N������܂��B���₶�́A�S�ċN�����ă��[�^��t�@�C���E�H�[���ŃA�N�Z�X���䂵�Ă��܂����A�s�K�v�Ȃ��͎̂~�߂Ă������ق����ǂ��ł��傤�B�ݒ�t�@�C����
/usr/lib/courier-imap/etc �ɍ쐬����܂��̂ŁA���̓��e���C�����Ă����܂��B�ȉ��ɁA�C�����e�������܂��B�i���͍폜�A�Ԏ��͒lj��A�Ύ��͕ύX�������̂ł��B�j
��pop3d�t�@�C���̕ҏW(POP3���g�p��)
- pop3d�̋N����~
POP3DSTART=YES
�@�@�@�@�@�@���ύX
POP3DSTART=NO
��pop3d-ssl�t�@�C���̕ҏW
- pop3d-ssl�̋N����~(POP3 over SSL���g�p��)
POP3DSSLSTART=YES
�@�@�@�@�@�@���ύX
POP3DSSLSTART=NO
- pem�t�@�C���̎w��
TLS_CERTFILE=/usr/lib/courier-imap/share/imapd.pem
�@�@�@�@�@�@���ύX
TLS_CERTFILE=/usr/local/certs/mail.pem
��imapd�t�@�C���̕ҏW(IMAP���g�p��)
- imapd-ssl�̋N���ݒ�
IMAPDSTART=YES
�@�@�@�@�@�@���ύX
IMAPDSTART=NO
��imapd-ssl�t�@�C���̕ҏW
- imapd-ssl�̋N���ݒ�(IMAP over SSL���g�p��)
IMAPDSSLSTART=YES
�@�@�@�@�@�@���ύX
IMAPDSSLSTART=NO
- pem�t�@�C���̎w��
TLS_CERTFILE=/usr/lib/courier-imap/share/imapd.pem
�@�@�@�@�@�@���ύX
TLS_CERTFILE=/usr/local/certs/mail.pem
�����[��Box�̍쐬��Postfix�̐ݒ�
Corier-IMAP�̃��[��Box��Maildir�`���Ȃ̂ŁA�e���[�U�̃z�[���f�B���N�g����Maildir���쐬����ƂƂ��ɁAPostfix��Maildir�`���Ή��ɂ��܂��B
�����[��Box�̍쐬
���[��Box���쐬����ɂ́A�e���[�U�̃z�[���f�B���N�g���ʼn��L�̂悤�ɃR�}���h����͂��܂��B
$ cd ~
$ /usr/lib/courier-imap/bin/maildirmake Maildir |
�@�V�K���[�U�쐬���ɁA�����I�Ƀ��[�U�z�[���f�B���N�g����Maildir�������悤�ɂ���ɂ́Aroot
�Łu/etc/skel�v�ɂ��쐬���Ă����܂��B
# /usr/lib/courier-imap/bin/maildirmake /etc/skel/Maildir |
��Postfix�̐ݒ�
Postfix��Maildir�`���Ή��ɂ���ɂ́A/etc/postfix/main.cf ��ҏW����home_mailbox�ł�Maildir�̎w��ƁAmail_spool_directory�ł̃X�v�[���f�B���N�g���̎w����s���܂��B�i
���͍폜�A
�Ԏ��͒lj��A
�Ύ��͕ύX�������̂ł��B�j
�@���L�ȊO�́A
Postfix�̃y�[�W���Q�l�ɂ��Ă��������B
- ���[��Box�̎w��
#home_mailbox = Mailbox
#home_mailbox = Maildir/
�@�@�@�@�@���폜
#home_mailbox = Mailbox
home_mailbox = Maildir/
- �X�v�[���f�B���N�g���̎w��
#mail_spool_directory = /var/mail
mail_spool_directory = /var/spool/mail
�@�@�@�@�@���lj�
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail
��Courier-IMAP�̎����N���̐ݒ�
rpm����C���X�g�[������ƁAcourier-authlib�� courier-imap�̎����N���X�N���v�g���C���X�g�[������A�������x��2�A3�A4�A5�ŋN���A��~���\�ƂȂ��Ă��܂��̂ŁA���ɐݒ�͕K�v�͂���܂���B
�A���Acourier-imap�̃X�N���v�g(/etc/rc.d/init.d/courier-imap)�ł́A����N�����Ɏ����I�Ƀ_�~�[��SSL�ؖ������쐬����悤�ɂȂ��Ă���̂ŁA�������R�����g�A�E�g�i�Ԏ��j���ė��p���܂��BIMAP�p��POP3�p��2�ӏ�����܂��B�g�p���Ȃ�����������Ȃ̂ŁA�ύX���Ȃ��Ă����ɖ��͂���܂���B
# vi /etc/rc.d/init.d/courier-imap
�@�@�@�@�@�@�F
�@�@�@�@�@(snip)
�@�@�@�@�@�@�F
�@�@�@�@if test -x $COURIERTLS
�@�@�@�@then
�@�@�@�@# First time we start this, generate a dummy SSL certificate.
#�@�@�@�@�@ if test ! -f ${prefix}/share/imapd.pem
#�@�@�@�@�@ then
#�@�@�@�@�@ echo -n " generating-SSL-certificate..."
#�@�@�@�@�@ ${prefix}/share/mkimapdcert >/dev/null 2>&1
#�@�@�@�@�@ fi
�@�@�@�@�@�@�@/usr/lib/courier-imap/libexec/imapd-ssl.rc start
�@�@�@�@�@�@�@echo -n " imap-ssl"
�@�@�@�@fi
�@�@�@�@�@�@�F
�@�@�@�@�@(snip)
�@�@�@�@�@�@�F
�@�@�@�@ # First time we start this, generate a dummy SSL certificate.
#�@�@�@�@�@ if test ! -f ${prefix}/share/pop3d.pem
#�@�@�@�@�@ then
#�@�@�@�@�@ echo -n " generating-SSL-certificate..."
#�@�@�@�@�@ ${prefix}/share/mkpop3dcert >/dev/null 2>&1
#�@�@�@�@�@ fi
�@�@�@�@�@�@�@/usr/lib/courier-imap/libexec/pop3d-ssl.rc start
�@�@�@�@�@�@�@echo -n " pop3-ssl"
�@�@�@�@fi
[Esc],[�F],[w],[q]�ŕۑ�
|
Top Page��