Sign inSign up

drmaxnix/michaelsoft-autluk-redirect

By drmaxnix

Updated 6 months ago

Redirect Michaelsoft Autluk Mails to your Own Mail Server

Image
Databases & storage
0

3.0K

drmaxnix/michaelsoft-autluk-redirect repository overview

Source Code: git.tjdev.de/DrMaxNix/michaelsoft-autluk-redirect

Michaelsoft Autluk Redirect

Redirect Michaelsoft Autluk Mails to your Own Mail Server

Your organization (e.g. University) is using Michaelsoft Autluk for all those important mails, but doesn't allow you to redirect them to your own mail system? – That sucks!

This project provides a pretty hacky way to do it nonetheless. At the core, this container runs the latest version of Thunderbird Beta, which has experimental support for EWS (Michaelsoft's proprietary OAuth thing). With a few (manual) tweaks, you can configure this Thunderbird instance to fetch new mails and move them to your own mailbox. Let's get started!

MICHAELSOFT BINBOWS

Setup Instructions

Docker Compose:

services:
  michaelsoft-autluk-redirect:
    image: drmaxnix/michaelsoft-autluk-redirect
    restart: unless-stopped
    environment:
      THUNDERBIRD_RESTART_INTERVAL: 1800
    volumes:
      - ./data:/root/.thunderbird
    ports:
      - 6080:6080
$ docker compose up -d

Tip

Thunderbird data will be stored in the `./data` directory. Feel free to change this to your needs.

Important

The buggy EWS implementation in Thunderbird Beta only checks for new mail when the app is started. As a hacky workaround, _Michaelsoft Autluk Redirect_ will close and reopen Thunderbird in regular intervals. However, this workaround will make the redirect rather slow, so don't worry if you don't receive your redirected mails instantly. The interval duration can be configured using the `THUNDERBIRD_RESTART_INTERVAL` environment variable. The default duration is **30 minutes** (1800s).

Caution

As the VNC password only provides negligible security, you should close the exposed VNC port (`6080`) when you are done configuring Thunderbird.

Configure Thunderbird

Caution

All steps listed here are **required** for _Michaelsoft Autluk Redirect_ to work; this is not optional!
1. Access the VNC Session
  1. Start the container (if not done so already)

  2. Access the container logs: docker compose logs -f

  3. Find the VNC password; the relevant lines look like this:

    {30-vncserver} ----------------------
    {30-vncserver} VNC Password: s95xYQGo
    {30-vncserver} ----------------------
    
  4. Copy the password

  5. Access your machine on port 6080 via http (e.g. http://127.0.0.1:6080)

  6. Click on Connect

  7. Paste the password you copied from the docker log

  8. Click on Send credentials

  9. You should now see the Thunderbird UI

2. Tweak Thunderbird Settings
  1. Close all Thunderbird tabs to get to the start page

  2. Click on the settings icon (bottom left):

  3. On the General settings page, scroll to the bottom and click on Config Editor:

  4. Search for experimental.mail.ews.enabled and set its value to true:

  5. Search for mail.server.default.periodicFilterRateMinutes and set its value to 1:

  6. Restart Thunderbird (click on the X button on the top right corner):

3. Add your Organization's Mailbox
  1. Close all Thunderbird tabs to get to the start page

  2. Click on the settings icon (bottom left):

  3. Click on Account Settings (bottom left):

  4. Click on New Account (top left):

  5. Enter the account details for your organization's mail account and click on Continue:

  6. A popup will open. Enter your Michaelsoft password and click on Sign in:

  7. Under Available configurations select Exchange Web Services and click on Done:

  8. Restart Thunderbird (click on the X button on the top right corner):

4. Add your Personal Mailbox
  1. Close all Thunderbird tabs to get to the start page

  2. Click on the settings icon (bottom left):

  3. Click on Account Settings (bottom left):

  4. Click on New Account (top left):

  5. Enter the account details for your personal mail account and click on Continue:

  6. Continue the account setup until your personal mailbox has been added

  7. Restart Thunderbird (click on the X button on the top right corner):

5. Set up Redirect Filter
  1. Close all Thunderbird tabs to get to the start page

  2. Right-click on your organization's mail account and select Message Filters:

  3. Select New (top right):

  4. Configure the new mail filter as shown below:

  5. Click on Done

  6. Restart Thunderbird (click on the X button on the top right corner):

6. Concluding Actions
  1. Make sure the inbox of your organization's mailbox is always selected when Thunderbird starts. First, select the inbox of your organization's mailbox:

  2. Restart Thunderbird (click on the X button on the top right corner):

  3. After Thunderbird starts, the inbox of your organization's mailbox should be selected by default.

  4. Now you can close the VNC session in your browser and test whether the redirect works (i.e. send a mail to your organization's mail address)

Tip

If you experience difficulties with Thunderbird's popup menus, you can either try to navigate them using your arrow keys, or double click the maximize (`□`) button on the top right corner.

Caution

If the inbox of your organization's mailbox is not selected automatically when Thunderbird starts, due to a bug, Thunderbird will not fetch new mails and thus the redirect will not work.

Tag summary

Content type

Image

Digest

sha256:fb7093252

Size

311.2 MB

Last updated

6 months ago

docker pull drmaxnix/michaelsoft-autluk-redirect