You can copy upgrade_mailer.py to /usr/bin and upgrade_mailer_py.ini to /etc. The script should be executed periodically. It would be best to create a cron job for this task. If there is no upgrade available right now, the script will stay silent and won't bother you with any spam.
In contrast to previous versions of upgrade_mailer.py all the settings can now be found in the upgrade_mailer_py.ini. The two most important settings are the recipients and SMTP server.
recipients = firstname.lastname@example.org, email@example.com smtp_server = localhost
Few more options can, but must not be set. If you need to authenticate to your SMTP just enter username and password here:
smtp_user = pparker smtp_pass = secret
If your STMP server expects you to use TLS/SSL set this to True:
smtp_tls = true
To send mails via Google Mail SMTP you would have to choose the following settings:
# Server and (optional) credentials used to send the mails smtp_server = smtp.gmail.com smtp_user = firstname.lastname@example.org smtp_pass = secret # Set to True if SMTP server uses TLS/SSL smtp_tls = true
If you don't want upgrade_mailer.py to send emails at all:
This part should be pretty much self explanatory. upgrade_mailer.py also allows to send the notifications to a list of Jabber IDs (recipients). xmpp_jid and xmpp_pass are your jid and password from where you'd like to send the notifications.
# Here starts the XMPP part recipients = email@example.com, firstname.lastname@example.org # Credentials for sending XMPP account xmpp_jid = email@example.com/upgr_mailer xmpp_pass = secret
If you don't want upgrade_mailer.py to send notifications via XMPP just do this:
If you discover any bugs feel free to report or fix them.