|
- #!/bin/sh
- sub_a() {
- while ip addr show | grep 192.168.0.104 && ip addr show | grep 172.31.118.104
- do
- sleep 1
- done
- sleep 1
- nmcli con up "ens33"
- nmcli con up "team0"
- nmcli con up "team0-port1"
- nmcli con up "team0-port2"
- }
- while true
- do
- sub_a
- done
复制代码
- #!/bin/sh
- sub_a() {
- while ip addr show | grep 192.168.0.105 && ip addr show | grep 172.31.118.105
- do
- sleep 1
- done
- sleep 1
- nmcli con up "ens33"
- nmcli con up "team0"
- nmcli con up "team0-port1"
- nmcli con up "team0-port2"
- }
- while true
- do
- sub_a
- done
复制代码
1. CLASSROOM.EXASMPLE.COM 上面配POSTFIX 完整功能
1.1 标准MTA的日志:
Mar 14 15:38:15 classroom postfix/smtpd[52515]: connect from desktop41.example.com[192.168.0.41]
Mar 14 15:38:15 classroom postfix/smtpd[52515]: DCFBF3119ADD: client=desktop41.example.com[192.168.0.41]
Mar 14 15:38:15 classroom postfix/cleanup[52518]: DCFBF3119ADD: message-id=<202003141538147044455@example.com>
Mar 14 15:38:15 classroom postfix/qmgr[49679]: DCFBF3119ADD: from=<zhang3@example.com>, size=37531, nrcpt=1 (queue active)
Mar 14 15:38:16 classroom postfix/smtp[52519]: DCFBF3119ADD: to=<18950350376@189.cn>, relay=mta-189.21cn.com[183.61.185.69]:25, delay=1, delays=0.09/0.22/0.35/0.38, dsn=2.0.0, status=sent (250 Ok: queued as 8135F10065C)
Mar 14 15:38:16 classroom postfix/qmgr[49679]: DCFBF3119ADD: removed
Mar 14 15:38:17 classroom postfix/smtpd[52515]: disconnect from desktop41.example.com[192.168.0.41] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
NULL CLIENT 转发的邮件,在classroom.example.com上面(/var/spool/mail/zhang3)表现成这样:
From thrump@whitehouse.gov Sat Mar 14 21:31:46 2020
Return-Path: <thrump@whitehouse.gov>
X-Original-To: zhang3@example.com
Delivered-To: zhang3@example.com
Received: from server4.example.com (server4.example.com [192.168.0.104])
by classroom.example.com (Postfix) with ESMTPS id D7C3336423DA
for <zhang3@example.com>; Sat, 14 Mar 2020 21:31:46 +0800 (CST)
Received: from desktop4.example.com (desktop4.example.com [192.168.0.4])
by server4.example.com (Postfix) with ESMTP id E2F9F53D3DE8
for <zhang3@example.com>; Sat, 14 Mar 2020 21:31:45 +0800 (CST)
To: zhang3@example.com
From: Thrump <thrump@whitehouse.gov>
Subject: 10000
Message-ID: <2de8f87f-49fc-8db8-8707-50c7e5b9ce0b@whitehouse.gov>
Date: Sat, 14 Mar 2020 21:31:45 +0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.5.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Language: en-US
2. iSCSI环境的准备(
104849407-4096-2048*11+1)/11
9529343.90909
(9529343*512)/(1024*1024)
4652.99951
|
|