???????????? ??????? -- FreeBSD 4 ??? 5
Pre-
??? ????????? sendmail ????? ????????? ?? www.sendmail.org ??? sendmail.by.ru
????????? ????? Cyrus-IMAP HOWTO, ?? ? ???????? ??????? ????? ??? ????? ???????????, ???????? ?? ?? ??? ????????? ???????.
???????? ???????? ??????? Cyrus
?????????
??? ??? ?????? ?????? :)
???? ?????????? ?? ?????? sendmail-sasl ? cyrus-imapd:
# cd /usr/ports/mail/sendmail-sasl
# make && make install && make clean
??? ???? ??????????? ??? ? cyrus-sasl2 -- ????? ??? ?????????? ??????????????. ? ??????? ?????? ? ????? ?????????? ???????? ??????? ??????, sasldb.
# cd /usr/ports/mail/cyrus-imapd2
# make && make install && make clean
????????? sendmail
? sendmail.mc ???? ???????? ????? ??????:
FEATURE(mailertable, `hash -o /etc/mail/mailertable.db')
MAILER(cyrus)dnl
define(`confLOCAL_MAILER',`cyrus')dnl
LOCAL_RULE_0
R$=N $: $#local $: $1
R$=N < @ $=w . > $: $#local $: $1
???????? ????????, ???? ????? ????????? ???????????, ? ?? ????????? (????????, ????? R$=N ? $: $#local $: $1 ??? ??????? ?????????).
???????????? sendmail.cf:
# cd /etc/mail
# m4 /usr/local/share/sendmail/cf/m4/cf.m4 sendmail.mc > sendmail.cf
? /etc/mailertable ????????? ??????:
yourdomain.com cyrus:%1
? ???????????? mailertable.db
# makemap hash mailertable.db < mailertable
??? ???? ????????? yourdomain.com ? /etc/local-host-names ?? ????!
? /etc/mail/mailer.conf ???? ????????? ???? ? sendmail ?? /usr/local/sbin/sendmail, ????????????? /etc/rc.sendmail ???, ????? ?? ?? ?????????? ? ? /usr/local/etc/rc.d ?????? sendmail.sh.sample ????????????? (??? ???????????) ? sendmail.sh, ?????????? ? saslauthd.sh.sample.
????????? cyrus-imapd2
????????? ? /etc/syslogd.conf ??????
local6.debug /var/log/imapd.log
auth.debug /var/log/auth_debug.log
? ????????????? syslogd
# killall -HUP syslogd
????? ????????? /usr/local/etc/imapd.conf ?? ??????? ????????? ?????:
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus root
srvtab: /var/imap/srvtab
sasl_pwcheck_method: saslauthd
?????? ??????? ??????????? ????? ? ??????????:
# touch /var/log/imapd.log /var/log/auth_debug.log
# mkdir /var/imap /var/spool/imap /var/imap/srvtab
# chown cyrus /var/imap /var/spool/imap /var/imap/srvtab
# chgrp mail /var/imap /var/spool/imap /var/imap/srvtab
# chmod 750 /var/imap /var/spool/imap /var/imap/srvtab
????? ????????? /usr/local/cyrus/bin/mkimap
????????? ? /etc/inetd.conf ??? ?????? (????????????? ??? ???? ?????? pop3 ? imap4 ???????, ???? ??? ???? ????????):
imap4 stream tcp nowait cyrus /usr/local/cyrus/bin/imapd imapd
pop3 stream tcp nowait cyrus /usr/local/cyrus/bin/pop3d pop3d
sieve stream tcp nowait cyrus /usr/local/cyrus/bin/timsieved sieve
??????????, ????? ? /etc/services ?????????????? ??? ???????:
pop3 110/tcp
imap 143/tcp
imsp 406/tcp
kpop 1109/tcp
sieve 2000/tcp
?????? ??????? ? /usr/local:
# ln -s /usr/local/cyrus /usr
???????, ??? ?? ??????? ??????????? ????????, ???? ??? ??????? ??? ????? ???????? -- ?????????? ???, ??? :)
??????
??????? ?????? sendmail:
# killall sendmail
????????????? inetd:
# killall -HUP inetd
????????? saslauthd ? sendmail:
# /usr/local/etc/rc.d/saslauthd.sh start
# /usr/local/etc/rc.d/sendmail.sh start
??????? ???????????? cyrus:
saslpasswd2 cyrus
????? ????????? ??????:
imtest -m login -p imap localhost
???? ?? ?????? ???-?? ????? ?????:
S: * OK mydomain Cyrus IMAP4 v2.1.11 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID
NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES
IDLE AUTH=KERBEROS_V4 AUTH=OTP AUTH=DIGEST-MD5 AUTH=CRAM-MD5
S: C01 OK Completed
Please enter your password:
?? ??? ??????, ????????? ?? ??????:
# cyradm --user cyrus --auth login localhost
? ??????? ?????????.
????? ??????? ???????????? pupkin, ???? ??????? ???????? user.pupkin!
? ??????? cyradm:
cm user.pupkin
quit
|