postfix/client-install.sh

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