Erinevus lehekülje "Cyrus kasutamine Gentooga" redaktsioonide vahel
43. rida: | 43. rida: | ||
saslpasswd2 -c cyrus | saslpasswd2 -c cyrus | ||
cyradm -user cyrus -host 127.0.0.1 | cyradm -user cyrus -host 127.0.0.1 | ||
+ | |||
+ | |||
+ | cyruse conf | ||
+ | |||
+ | |||
+ | /etc/cyrus.conf | ||
+ | |||
+ | # Standard standalone server configuration. | ||
+ | START { | ||
+ | recover cmd="ctl_cyrusdb -r" | ||
+ | } | ||
+ | |||
+ | # UNIX sockets start with a slash and are put into /var/imap/socket. | ||
+ | SERVICES { | ||
+ | # Add or remove based on preferences. | ||
+ | imap cmd="imapd" listen="imap2" prefork=5 | ||
+ | |||
+ | pop3 cmd="pop3d" listen="pop3" prefork=25 maxchild=-1 | ||
+ | pop3s cmd="pop3d -s" listen="pop3s" prefork=25 maxchild=-1 | ||
+ | |||
+ | imaps cmd="imapd -s -U 30" listen="imaps" prefork=0 maxchild=100 | ||
+ | |||
+ | sieve cmd="timsieved" listen="193.40.0.15:sieve" prefork=0 | ||
+ | sievelocal cmd="timsieved" listen="127.0.0.1:sieve" prefork=0 | ||
+ | lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0 | ||
+ | } | ||
+ | |||
+ | EVENTS { | ||
+ | checkpoint cmd="ctl_cyrusdb -c" period=30 | ||
+ | delprune cmd="ctl_deliver -E 3" period=1440 | ||
+ | tlsprune cmd="tls_prune" period=1440 | ||
+ | } | ||
+ | |||
Redaktsioon: 15. september 2007, kell 13:43
Cyrus IMAP is named after Cyrus the Great (559 - 530 BC), founder of the Persian kingdom, and King of the World. Cyrus the great is remembered for his tolerance of the various minorities and generally benevolant leadership.
cyrus kasutab üsna maildir laadset formaati kuid lisanud sellele andmebaasi muutes nii kõike tunduvalt kiiremaks. Seetõttu on cyrus üsna hea valik väga suurte emaili süsteemide tarbeks. Netis väidetakse ,et ka meie kodumaine hot.ee http://www.hot.ee (The Hotmail of Estonia) kasutab cyrust ning sellel hetkel 300,000 users.
installime vajaliku tarkvara
emerge pam_mysql emerge clamav emerge amavisd-new emerge cyrus-imap-admin emerge spamassassin
paigaldame php ja apache
emerge php emerge dev-php/PEAR-Log emerge dev-php/adodb
rc-update add clamd default rc-update add amavisd default rc-update add cyrus default rc-update add postfix default
installime openmailadmini
wget http://static.ossdl.de/openmailadmin/downloads/openmailadmin-0.10.1.tbz2 tar -xf openmailadmin-0.10.1.tbz2
muudame cyruse parooli ja testime selle toimimist
saslpasswd2 -c cyrus cyradm -user cyrus -host 127.0.0.1
cyruse conf
/etc/cyrus.conf
# Standard standalone server configuration. START { recover cmd="ctl_cyrusdb -r" } # UNIX sockets start with a slash and are put into /var/imap/socket. SERVICES { # Add or remove based on preferences. imap cmd="imapd" listen="imap2" prefork=5 pop3 cmd="pop3d" listen="pop3" prefork=25 maxchild=-1 pop3s cmd="pop3d -s" listen="pop3s" prefork=25 maxchild=-1 imaps cmd="imapd -s -U 30" listen="imaps" prefork=0 maxchild=100 sieve cmd="timsieved" listen="193.40.0.15:sieve" prefork=0 sievelocal cmd="timsieved" listen="127.0.0.1:sieve" prefork=0 lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0 } EVENTS { checkpoint cmd="ctl_cyrusdb -c" period=30 delprune cmd="ctl_deliver -E 3" period=1440 tlsprune cmd="tls_prune" period=1440 }
stardime teenused
/etc/init.d/saslauthd start /etc/init.d/cyrus start /etc/init.d/apache2 start /etc/init.d/clamd start /etc/init.d/amavisd start
teeme postfixi konfi
main.cf
myhostname = domeen.ee mailbox_transport = cyrus virtual_alias_domains = mysql:/etc/postfix/mydestination.mysql virtual_alias_maps = mysql:/etc/postfix/virtual.mysql sender_canonical_maps = mysql:/etc/postfix/canonical.mysql
mydestination.mysql
hosts = localhost user = database password = parool dbname = mailedu table = domains select_field = domain where_field = domain
virtual.mysql
hosts = localhost user = baas password = parool dbname = mailedu table = virtual select_field = dest where_field = address additional_conditions = and active = '1'
canonical.mysql
hosts = host user = baas password = parool dbname = mailedu table = user select_field = canonical where_field = mbox additional_conditions = and active = '1' limit 1
testime toimimist
emerge net-misc/netkit-telnetd telnet 127.0.0.1 143
teeme imap pam konfiguratsiooni
nano /etc/pam.d/imap
#auth required pam_nologin.so #auth include system-auth #account include system-auth #session include system-auth auth sufficient pam_mysql.so user=mailedu passwd=parool host=localhost db=baas table=user usercolumn=mbox passwdcolumn=password crypt=1 sqlLog=0 account required pam_mysql.so user=mailedu passwd=parool host=localhost db=baas table=user usercolumn=mbox passwdcolumn=password crypt=1 sqlLog=0
ln /etc/pam.d/imap /etc/pam.d/pop ln /etc/pam.d/imap /etc/pam.d/sieve ln /etc/pam.d/imap /etc/pam.d/smtp ln /etc/pam.d/imap /etc/pam.d/nntp
mkdir /var/lib/amavis
telnet 192.168.1.10 143 Trying 192.168.1.10... Connected to 192.168.1.10. Escape character is '^]'. * OK gentoo20070412 Cyrus IMAP4 v2.2.12-Gentoo server ready 1 LOGIN cyrus parool 1 OK User logged in