Professional Documents
Culture Documents
http://www.imap.org/.
GI:I THI;<
Trn Huy Cng
http://www.rfc-editor.org/in-notes/rfc1939.txt.
http://squirrelmail.org
info_log_path = /var/log/dovecot-info.log
disable_plaintext_auth = no
ssl = no
mail_location = maildir:~/Maildir
pop3_uidl_format = %08Xu%08Xv
auth_verbose = yes
CQ< HRCH iETCi@?VEC?Ti@?VEC?TLC?CS
Trn Huy Cng
passdb {
driver = passwd-file
args = /etc/dovecot/passwd
}
userdb {
driver = static
args = uid=5000 gid=5000 home=/home/vmail/%u
}
CQ< HRCH iETCi@?VEC?Ti@?VEC?TLC?CS
Trn Huy Cng
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,reject_unauth_destination
dovecot_destination_recipient_limit = 1
virtual_transport = dovecot
CQ< HRCH iETCi)?STSITiMAICLCS
Trn Huy Cng
/etc/dovecot/dovecot.conf
service auth {
unix_listener /var/spool/postfix/private/auth {
mode = 0660
user = postfix
group = postfix
}
}
CQ< HRCH VIRT<AL H?ST
Trn Huy Cng
protocol lda {
postmaster_address = root@newstar.local
hostname = mail.newstar.local
auth_socket_path = /var/run/dovecot/auth-master
mail_plugin_dir = /usr/lib/dovecot
}
CQ< HRCH VIRT<AL H?ST
Trn Huy Cng
Cu hnh /etc/postfix/main.cf
smtpd6use6tls 7 yes
smtpd6tls6aut$6only 7 yes
smtpd6tls6)ey68ile 7 9etc9post8ix9ssl9ca!)ey
smtpd6tls6cert68ile 7 9etc9post8ix9ssl9ca!crt
smtpd6tls6:;8ile 7 9etc9post8ix9ssl9ca!crt
smtpd6tls6loglevel 7 .
smtpd6tls6received6$eader 7 yes
smtpd6tls6session6cac$e6timeout 7 45//s
tls6random6source 7 dev<9dev9urandom
CQ< HRCH SSL SMT)
Trn Huy Cng
Cu hnh /etc/dovecot/dovecot.conf
ssl7yes
ssl6cert 7 =9etc9post8ix9ssl9ca!crt
ssl6)ey 7 =9etc9post8ix9ssl9ca!)ey
CQ< HRCH SSL )?)K IMA)
WebMail
Gii !hi"u Mail#er$er
Ci %&! ' C(u hnh )*#!+i,
S-a. A##a##in ' An!i$iru#
Vir!ual H*#!ing ' SSL
Trn Huy Cng
M file /etc/postfix/master.cf
smtp inet n - n - - smtpd 12
-o content_filter=spamassassin (11)
spamassassin unix - n n - -
pipe user=mail argv=/usr/bin/spamc -e
/usr/sbin/sendmail -oi -f ${sender} ${recipient}
S)AMASSASSIC
Trn Huy Cng
Ci t ci gi clamav
clamav-db: database virus
clamav: chuong trnh dit virus
clamd: bin clamav thnh djch vu trn linux
clamsmtp: tch hop clamav v postfix qut
virus trn cc email
Cp nht csld virus mi bng lnh freshclam
ACTIVIR<S WITH CLAMAV
Trn Huy Cng
Cu hnh /etc/postfix/main.cf
content_filter = scan:127.0.0.1:10025
receive_override_options = no_address_mappings
ACTIVIR<S WITH CLAMAV
Trn Huy Cng
Cu hnh /etc/postfix/master.cf
scan unix - - n - 16 smtp
-o smtp_send_xforward_command=yes
-o smtp_enforce_tls=no
127.0.0.1:10026 inet n - n - 16 smtpd
-o content_filter=
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
ACTIVIR<S WITH CLAMAV
Trn Huy Cng
Cu hnh /etc/clamsmtpd.conf
ClamAddress: /var/run/clamav/clamd.sock (25)
User: clam
TempDirectory: /tmp
chkconfig postfix on
chkconfig dovecot on
chkconfig spamassassin on
chkconfig clamsmtpd on
ACTIVIR<S WITH CLAMAV
Y<ESTI?C
'
THACj F?< S?R
F?<R ATTECTI?C