-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impossible to send email notification #71
Comments
le output log : Exception: socket.error - (97, 'Address family not supported by protocol') |
Hi, Romu... Did you look at the README file as to an example of how and where to define the SMPT mail server? What have you put in? Is that mail server even reachable from your XenServer host (you can try to telnet to port 25 of it as a test)? |
Does this help you? |
Hello guys, it seems that i can't use SSL with the version of my python pythonPython 2.4.3 (#1, Sep 21 2011, 20:06:00) i have to update the python's version . Do you have any other idea ? Also, Albundy, i have an error when i'm trying to send with your link : python testmailromu.py |
There should be a much newer version on your XenServer -- 2.7.5 on XS 7.X which runs the Linux kernel 4.4.0. What version of XenServer is this? Before early version of XS 6.X, this script is not going to work as it requires a reasonable new version of python to run, so your suspicion is probably correct. |
Look Romu007, I am not a Python programmer. I extracted the test script from the existing Now, it is your task to play around and sort everything out. The script works and when you get errors you have to comment/uncomment/edit the 4 lines until you receive an email. Sorry, I can't do more for you. |
There is a section in the code that explains how to do the modifications for making it possible to do TLS connections. Note that Exchange is a beast when it comes to using it to relay email and that -- as Peter says above -- is well beyond the scope of the forum and applies to any utility that needs to be customized to connect to an email server, no matter what kind of email server it is. This is a local configuration issue. It took me a long time, for example, just to figure out how to get the Thunderbird email client to work with exchange, and this is really no different. --Tobias |
I am closing this thread. |
Hello all,
i recently downloaded your script to backup my VMs and thanks a lot for your work.
But when I'm trying to configure the mail notification, i have this error at the end of the script :
Exception: socket.error - (97, 'Address family not supported by protocol')
Do you have any idea please ?
Thanks a lot for your help
Romu
The text was updated successfully, but these errors were encountered: