Cấu hình tự động bcc người gửi
Bước 1:
Bước 2:
|
|
Vi /etc/sysconfig/network
|
|
NETWORKING=yes
HOSTNAME=mailbox.zimbra.com.vn
GATEWAY=192.168.0.1
NETWORKING_IPV6=no
IPV6INIT=no
|
|
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
|
|
DEVICE="eth0"
BOOTPROTO="static"
DNS1="8.8.8.8"
DNS2="4.4.4.4"
GATEWAY="192.168.0.1"
HOSTNAME="mailbox.zimbra.com.vn"
HWADDR="00:19:99:A4:46:AB"
IPADDR="192.68.0.100"
NETMASK="255.255.255.0"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="8105c095-799b-4f5a-a445-c6d7c3681f07"
|
|
# vi /etc/resolv.conf
|
|
nameserver 8.8.8.8 # Replace with your
nameserver ip
nameserver 4.4.4.4 # Replace with your
nameserver ip
|
|
# /etc/init.d/network restart [On SysVinit]
# systemctl restart network [On SystemD]
|
|
# nano /etc/network/interfaces
|
|
auto eth0
iface eth0 inet dhcp
|
|
auto eth0
iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 4.4.4.4
dns-nameservers 8.8.8.8
|
|
nameserver 8.8.8.8 # Replace with your
nameserver ip
nameserver 4.4.4.4 # Replace with your
nameserver ip
|
|
# /etc/init.d/network restart [On SysVinit]
# systemctl restart network [On SystemD]
|
# top

# vmstat procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu----- r b swpd free inact active si so bi bo in cs us sy id wa st 1 0 0 810420 97380 70628 0 0 115 4 89 79 1 6 90 3 0
# lsof COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME init 1 root cwd DIR 104,2 4096 2 / init 1 root rtd DIR 104,2 4096 2 / init 1 root txt REG 104,2 38652 17710339 /sbin/init init 1 root mem REG 104,2 129900 196453 /lib/ld-2.5.so init 1 root mem REG 104,2 1693812 196454 /lib/libc-2.5.so init 1 root mem REG 104,2 20668 196479 /lib/libdl-2.5.so init 1 root mem REG 104,2 245376 196419 /lib/libsepol.so.1 init 1 root mem REG 104,2 93508 196431 /lib/libselinux.so.1 init 1 root 10u FIFO 0,17 953 /dev/initctl
# tcpdump -i eth0 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes 22:08:59.617628 IP tecmint.com.ssh > 115.113.134.3.static-mumbai.vsnl.net.in.28472: P 2532133365:2532133481(116) ack 3561562349 win 9648 22:09:07.653466 IP tecmint.com.ssh > 115.113.134.3.static-mumbai.vsnl.net.in.28472: P 116:232(116) ack 1 win 9648 22:08:59.617916 IP 115.113.134.3.static-mumbai.vsnl.net.in.28472 > tecmint.com.ssh: . ack 116 win 64347
# netstat -a | more Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 *:mysql *:* LISTEN tcp 0 0 *:sunrpc *:* LISTEN tcp 0 0 *:realm-rusd *:* LISTEN tcp 0 0 *:ftp *:* LISTEN tcp 0 0 localhost.localdomain:ipp *:* LISTEN tcp 0 0 localhost.localdomain:smtp *:* LISTEN tcp 0 0 localhost.localdomain:smtp localhost.localdomain:42709 TIME_WAIT tcp 0 0 localhost.localdomain:smtp localhost.localdomain:42710 TIME_WAIT tcp 0 0 *:http *:* LISTEN tcp 0 0 *:ssh *:* LISTEN tcp 0 0 *:https *:* LISTEN
# htop
# iotop
# iostat
Linux 2.6.18-238.9.1.el5 (tecmint.com) 09/13/2012
avg-cpu: %user %nice %system %iowait %steal %idle
2.60 3.65 1.04 4.29 0.00 88.42
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
cciss/c0d0 17.79 545.80 256.52 855159769 401914750
cciss/c0d0p1 0.00 0.00 0.00 5459 3518
cciss/c0d0p2 16.45 533.97 245.18 836631746 384153384
cciss/c0d0p3 0.63 5.58 3.97 8737650 6215544
cciss/c0d0p4 0.00 0.00 0.00 8 0
cciss/c0d0p5 0.63 3.79 5.03 5936778 7882528
cciss/c0d0p6 0.08 2.46 2.34 3847771 3659776

zmlocalconfig smtp_destination
zmlocalconfig -e smtp_destination=user@domain.com
[zimbra@zimbra
~]$ zmprov gcf zimbraMilterServerEnabled
zimbraMilterServerEnabled:
FALSE
[zimbra@zimbra
~]$
|
[zimbra@zimbra
~]$ zmprov modifyConfig zimbraMilterServerEnabled TRUE
[zimbra@zimbra
~]$
|
zmprov
modifyServer zimbra.com.vn zimbraMilterServerEnabled TRUE
|
[zimbra@zimbra
~]$ zmmilterctl start
Starting
milter server...done.
[zimbra@zimbra
~]$
|
zmprov grr dl
distributionlist@zimbra.lab usr user@zimbra.lab sendToDistList
|
zmprov grr dl
distributionlist@zimbra.lab grp groupdl@zimbra.lab sendToDistList
|
zmprov grr dl
distributionlist@zimbra.lab all sendToDistList
|
zmprov grr dl
distributionlist@zimbra.lab dom zimbra.lab sendToDistList
|
zmprov grr dl
distributionlist@zimbra.lab pub sendToDistList
|
zmmtactl reload
|