configuring XenServer 7.x mail notifications through external mail server

Generally Small and Medium Business  doesn’t have a own  mail server in office. If we want to receive notifications we can configure Xenserver to use an existing email account to relay messages.

#1 Open a ssh session in desired Xenserver install


ssh root@<XenServer_IP>

#2 Edit your ssmtp file


vi /etc/ssmtp/ssmtp.conf

#3 Your ssmtp.conf file should have  these values


root=notification_email_adress@yourdomain.ext
mailhub=your.mailservername.ext:587
AuthUser=email_user_login
AuthPass=email_password
Hostname=a_desired_hostname_like_PeterSolutionsXenServer01
UseTLS=Yes
UseSTARTTLS=Yes
TLS_CA_File=/etc/pki/tls/certs/ca-bundle.crt

#4 Test your configuration


echo "Great it Works" | mail -s "Testing PeterXenServer01" your@desiredmail.ext

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.