LAB
*Logging to a centralized loghost
%server1的log複寫一份到server118
(1) server1
#vi /etc/syslog.conf
加入 user,* @server118
(Read More...)
This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.
LAB
*Logging to a centralized loghost
%server1的log複寫一份到server118
(1) server1
#vi /etc/syslog.conf
加入 user,* @server118
(Read More...)
Syslogd and Klogd Configuration
configuration: /etc/syslog.conf
Syntax:
facility.priority log_location
Ex:
mail.info /dev/tty8
(Read More...)
System Performance and Security
*即時監看log
#tail -f /var/log/[logfile]
*查看網路狀態
#netstat -tupln
-n : do not resolve IP address to host name
-t : list TCP connections
-u : list UDP connections
(Read More...)
LAB
1. 啟動sendmail 並修改設定 [iptables開放Port: 25)
2. 啟動dovecot並修改設定 [iptables開放Ports: 110, 143, 993, 995], create "dovecot.pem"
[root@server1 ~]# cd /etc/pki/tls/certs
[root@server1 certs]# make dovecot.pem
umask 77 ; \
PEM1=`/bin/mktemp /tmp/openssl.XXXXXX` ; \
(Read More...)
2. Mail Relays
%允許intranet: 192.168.0.0/24使用MTA(sendmail)寄信
#vi /etc/access
# by default we allow relaying from localhost...
Connect:localhost.localdomain RELAY
Connect:localhost RELAY
Connect:127.0.0.1 RELAY
Connect:192.168.0.0/24 RELAY
(Read More...)
Hits Today: 11
Total Hits: 21158