Wiki

Clone wiki

upgrade_mailer.py / Home

Mailing List

The mailing list of upgrade_mailer.py can be found on librelist.com. If you have a question or you'd like to subscribe to the mailing list simply write a mail to upgrade.mailer@librelist.com.

Introduction

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.

Email Settings

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 = info@example.com, info2@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

Example

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 = your_gmail_account@gmail.com
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:

recipients =

XMPP Settings

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.

Example

# Here starts the XMPP part
recipients = info@jabber.ccc.de, info2@jabber.ccc.de

# Credentials for sending XMPP account
xmpp_jid = peterparker@jabber.ccc.de/upgr_mailer
xmpp_pass = secret

If you don't want upgrade_mailer.py to send notifications via XMPP just do this:

recipients =

Bugs

If you discover any bugs feel free to report or fix them.

Updated