???????? ??? ????????? ????????? ??????? ???????????
?????????? ??? ???????????, ??????? ??? ?? ????? ?????. ???????????
??????? ????? ???????????, ??? ?? ?? ?? ??????? - ??? ? ???? ??????
??????? ???????????.
??????????? ???????????? ??? /var reiserfs, ?? ??? ?????? ?????? ????????????.
emerge -pv cyrus-sasl
[ebuild N ] dev-libs/cyrus-sasl-2.1.20 -authdaemond +berkdb -debug +gdbm +java -kerberos -ldap +mysql +pam -postgres +ssl -static 0 kB
?? ?????? ?????? ????????? ????? - ??? ??
emerge cyrus-sasl
???? ????? ?????????, ???? ??????
emerge -pv postfix
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild N ] mail-mta/postfix-2.1.5-r1 +ipv6 -ldap -mailwrapper -mbox +mysql +pam -postgres -sasl*(-selinux) +ssl -vda 0 kB
????? ??? ????? ??????????? ???? sasl, ???? ? ???? ?????? ???? ???
????? ?????????????? ?? smtp, ???????? ? ?????????? ????? ????? ???????
??????????? ????? cyrus-sasl ?? smtp - ??????? ??????????? ????? ??
????? ???? ??? ????
USE="sasl" emerge postfix
???????? ????????
emerge -pv cyrus-imapd
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild N ] net-mail/cyrus-imapd-2.2.10 -afs -drac -idled -kerberos +pam -snmp +ssl +tcpd 0 kB
????? ???????? ? ????????? ?????? ??? ?????? ???????????? openssl ? imap-??????
emerge cyrus-imapd
????????? ??? ????????????????? ?????????? ??????
emerge cyrus-imap-admin
????? ???? ??? ??? ?????? ??? ?????? ??????????, ????? ?????????? ? ?????????
??????? cyrus-sasl
passwd cyrus
pwconv
chown -R cyrus:mail /etc/sasl2 - ?????? cyrus ? ???? /etc/sasl2/sasldb2
saslpasswd2 cyrus - ??????? ? sasldb2
sasldblistusers2 - ??? ????????
??????????? ? postfix
C????????? /etc/postfix/main.cf, ???? ????????? ?????????
???????????? ????????? ??????? ????????????? ???????? ? ????? (?? ?????
relayhost), ??????????? ??? ????? ?????? ?????? ???? MX-?????? ? ???.
???????????, ??? ????????? ??????? ?????? ????????? ? main.cf, ????? ??
????????? ????????.
???????? ??? ????????? ?????????????? ????????????? postfix.
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
myhostname = mail.domain.tld
mydomain = mail.domain.tld
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
local_recipient_maps =
unknown_local_recipient_reject_code = 550
mynetworks_style = subnet
mynetworks = 192.168.1.0/24, 127.0.0.0/8
relay_domains = $mydestination
?? ??? ??????? ???????? ????????!!!
mailbox_transport = lmtp:unix:/var/imap/socket/lmtp
???? ???? ?????????? procmail ?? ?????? ??? ?????
mailbox_transport = procmail
????? ???????? ???, ??? ????? ? main.cf, ???? ? /etc/postfix/master.cf
???? ????? ??????
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus unix - n n - - pipe
user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
? ???????? ???? ??
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus unix - n n - - pipe
user=cyrus argv=/cyrus/deliver -e -r ${sender} -m ${extension} ${user}
??? ????????????? procmail, ?????????
procmail unix - n n - - pipe
flags=R user=cyrus argv=/usr/bin/procmail -p /etc/procmailrc USER=${user}
??? ???? /etc/procmailrc :
DELIVERMAIL=/usr/lib/cyrus/deliver
LOGFILE=/var/log/procmaillog
IMAP="$DELIVERMAIL -e -a $USER -m user.$USER"
(???? ???? ?????????? spamassassin)
:0fw : spamassassin.lock
* < 90000
| /usr/bin/spamassassin
? ????? ???????????
:0
| $IMAP
:0w
{
EXITCODE=$?
HOST
}
???, ?????????? ???????????, ?????? cyrus-imapd
??????????? /etc/cyrus.conf
# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/files/cyrus.conf,v 1.4 2004/07/18 04:02:23 dragonheart Exp $
# Standard standalone server configuration.
START {
# Do not delete this entry!
recover cmd="ctl_cyrusdb -r"
# This is only necessary if using idled for IMAP IDLE.
#idled cmd="idled"
}
# 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=0
pop3 cmd="pop3d" listen="pop-3" prefork=0
# Don't forget to generate the needed keys for SSL or TLS
# (see doc/html/install-configure.html).
imaps cmd="imapd -s" listen="imaps" prefork=0
pop3s cmd="pop3d -s" listen="pop3s" prefork=0
sieve cmd="timsieved" listen="sieve" prefork=0
# at least one LMTP is required for delivery
#lmtp cmd="lmtpd" listen="lmtp" prefork=0
##???????? ???????? ?? ??? ??????
lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0
# this is only necessary if using notifications
#notify cmd="notifyd" listen="/var/imap/socket/notify" proto="udp" prefork=1
}
EVENTS {
# This is required.
checkpoint cmd="ctl_cyrusdb -c" period=30
# This is only necessary if using duplicate delivery suppression.
delprune cmd="ctl_deliver -E 3" period=1440
# This is only necessary if caching TLS sessions.
tlsprune cmd="tls_prune" period=1440
}
????? ??????????? /etc/imapd.conf
configdirectory: /var/imap
partition-default: /var/spool/imap
auto_transition: yes
tls_ca_path: /etc/ssl/certs
tls_cert_file: /etc/ssl/cyrus/server.crt
tls_key_file: /etc/ssl/cyrus/server.key
admins: cyrus
hashimapspool: yes
allowanonymouslogin: no
allowplaintext: yes
sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: sasldb
sasldb_path: /etc/sasl2/sasldb2
sasl_mech_list: LOGIN PLAIN
??????????? ????? ???? sasldb, ????????? ??????????? LOGIN,PLAIN
????? ?? ? ?????????? cyrus ?????????
?????? ???????? ????????? ??????? ??????, ??? ????? ?????????? ????????? cyradm
/etc/init.d/cyrus start
cyradm -user cyrus -server localhost
localhost> cm user.testuser
localhost> help - ??????? ??? ??????? ??? ??????? ????????? ???????
localhost> exit
?? ???????? ?????? ? sasldb2 ?????? ?????:
sasldbpasswd2 testuser ( ????? ?????????? saslpasswd2 testuser ? )
????????? ???????
/etc/init.d/postfix start
/etc/init.d/cyrus start
??????????? ????????? ??????? (????????? ? thunderbird 1.0 ? ? KMail 1.7.1, ? Outlook Express ???? ?????? ???? ???????).
??????? ????????? ?????? , ???? ???-?? ?? ???????? - ???????
????, ?????? ????? ????????? ????? ?? ?????? ? /var/imap/socket/lmtp
??? ????????????? postfix ? cyrus, ???? ????? ???????? ??????? ?????? ?
????. ????? ????????? ????? ?? ?????? ? /etc/sasl2/sasldb2 ???
???????????? cyrus, ??????? ?????? ???? ? ?????? mail.
?????????? ????????? ????????? ???????? cmalav ?????????? ???
????? ?????? clamav + clamsmtp ???? ???????? ? ?????? ???????? ????????
amavisd-new.
????????? ????????? ??????? ????? http://www.nixp.ru/articles/clamav_postfix>, ?????????? ????????????????? ??,??????????? ? ?????????? ??? ?????? Gentoo
emerge clamav
ACCEPT_KEYWORDS="~x86" emerge clamsmtp (???? ???????????? ? ?????????)
????? ? ????? /etc/conf.d/clamd START_CLAMD = yes (??? ?????? ??????
0.85 ??? ?? ????????? - ??? ????????? ?????? ? clamd.conf ?
clamsmtpd.conf)
??????????? ????? /etc/clamd.conf ? /etc/clamsmtpd.conf ?
???????????? ? ?????????????? ???????????? ???? ?? ??????
???????? ???????? ?? ????????? LocalSocket: /var/run/clamav/clamd.sock
? /etc/clamav.conf ? ClamAddress: /var/run/clamav/clamd.sock ?
/etc/clamsmtpd.conf - ???? ? ??? ????? ?????? ?????????? ??? ?????
????????
? ???? main.cf ?????????? ???????? ??? ???????:
content_filter = scan:127.0.0.1:10025
receive_override_options = no_address_mappings
?????? ??????? postfix'? ? ???, ??? ?????????? ?????????? ??? ?????
????? ?????? (??????) 'scan' ?? 10025-?? ????, ???????, ??? ???, ??????
clamsmtpd.
?????? ??????? ??????? ? ???, ????? postfix ?? ????? ???????
??????????? ? ???????? ?? ????, ??? ??? ?????? ?? content_filter. ???
??? ??????????, ??? ?????? ???????? ? ????????? ????????? ????????, ?
?? ? ???????????? ???????? ? ??????????? ??????????, ????????????? ?
?.?.
? ???? master.cf ?????????? ???????? ????????? ??????:
# AV scan filter (used by content_filter)
scan unix - - n - 16 smtp
-o smtp_send_xforward_command=yes
# For injecting mail back into postfix from the filter
127.0.0.1:10026 inet n - n - 16 smtpd
-o content_filter=
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks_style=host
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
??????????: ?????? ????? '=' ??????? ?? ???????.
???????? 127.0.0.1:10026 ????????? 10026-???? ??? ??????????? ????? ??????? ?? clamsmtpd.
rc-update add clamd default
rc-update add clamsmtpd default
/etc/init.d/postfix reload
??? - ????????? ?????? ????????? ??? ????? ?????????? ????? ??? ????????
P.S. ??? ????????????? ??????????? ?? ???? ??????? ?????? ? ??
??????? ????????? ???????.
????? (??? ??????) ?? ????? ??????????????? ?? ???????????? ?
???????????? ?????????? ??????? ???????????. ???? ???????????? ? ?????
????? ? ? ??????! ?????? ???????? ?? ?????????? ?? ?????? ? ???????????
? ?? ???????? ??????????? ????????? ????????? ????????????.
????? ??????? ??????????????? ????????????? ????????????? ?????????????
???????? ?? ?????????? ?????????? ? ??????? ????????????. ???????????
??? ?????????????? ??????????? ?? ???????????? ? ????? ???????, ? ?????
????????? ????? ???????? ?? ?????????? ??????, ?????????? ? ?????? -
??????? ??????? ?? ??? ?? ???????.
ru.gentoo-wiki.com