postfix/client-install.sh

raw link view readme
1 yum install bind-utils nmap -y
2
3 cp /etc/sysconfig/network-scripts/ifcfg-eth0 ~
4 sed -i "s/PEERDNS=.*/PEERDNS=no/" /etc/sysconfig/network-scripts/ifcfg-eth0
5
6 cat > /etc/resolv.conf << EOF
7 nameserver 10.18.0.5
8 EOF
9
10 systemctl restart network
11
12 yum install mailx -y
13
14 cat > /root/send_mail_to_root_at_domain.sh << EOFF
15 #+ will show up in dbetz mailbox
16 mail root@lab.example.net <<\EOF
17 my subject
18 this is my message body
19 .
20 EOF
21 EOFF
22 chmod +x /root/send_mail_to_root_at_domain.sh
23