You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
577 B

#!/bin/bash
##### MAIL CONFIGURATION #####
mailsuccessful="n"
read -p "For email delivery you must enter a Gmail SMTP account!
E-Mail adress: " email
read -p "Password: " password
sed -i s/YOURMAILADRESS/"$email"/g /etc/mail.rc
sed -i s/YOURPASSWORD/"$password"/g /etc/mail.rc
read -p "Enter your mail adress for testing: " email
echo "E-Mail successful delivered from $HOSTNAME! Good job :)" | mail -v -s "Test Mail" $email
echo "If you dont recived the message, you must configurate /etc/mail.rc!"
##### CLEAN UP #####
sudo rm -rf /etc/profile.d/post_script_centos.sh