Skip to main content

Mailrelay

An app for relaying Eve mails to Discord.

release python django CI/CD Pipeline codecov license pre-commit Code style: black chat

Contents

Overview

This app can automatically forwards eve mails to Discord channels. This can e.g. be useful to include people in all hands communications, who do not check their eve mails that often, but still can be reached via Discord.

You can choose to just forward corporation or alliance mails only or all mails that a character receives.

This app is an add-on to Member Audit and requires you to have Member Audit installed and running. You can choose to forward mails from any character that is registered on Member Audit.

Installation

Step 1 - Check preconditions

Please make sure you have the following applications installed and running before attempting to install the Mail Relay app:

Step 2 - Install app

Make sure you are in the virtual environment (venv) of your Alliance Auth installation. Then install the newest release from PyPI:

pip install aa-mailrelay

Step 3 - Configure settings

Configure your Auth settings (local.py) as follows:

  • Add 'mailrelay' to INSTALLED_APPS
  • Add below lines to your settings file:
CELERYBEAT_SCHEDULE['mailrelay_forward_new_mails'] = {
    'task': 'mailrelay.tasks.forward_new_mails',
    'schedule': crontab(minute='*/5'),
}
  • Optional: Add additional settings if you want to change any defaults. See Settings for the full list.

Step 4 - Finalize installation

Run migrations & copy static files

python manage.py migrate
python manage.py collectstatic

Restart your supervisor services for Auth

...

Step 5 - Setup mail relays

To setup your first mail relay go to the admin site / Mail Relay / RelayConfig.

Update the known Discord channels by clicking the button: "UPDATE DISCORD CHANNELS".

Click on "ADD RELAY CONFIG" to create your first mail relay configuration.

Settings

Here is a list of available settings for this app. They can be configured by adding them to your AA settings file (local.py).

Note that all settings are optional and the app will use the documented default settings if they are not used.

Name Description Default
DISCORDPROXY_HOST Port used to communicate with Discord Proxy. localhost
DISCORDPROXY_PORT Host used to communicate with Discord Proxy. 50051
MAILRELAY_DISCORDPROXY_TIMEOUT Timeout for sending request to DISCORDPROXY in seconds. 30
MAILRELAY_OLDEST_MAIL_HOURS Oldest mail to be forwarded in hours. Set to 0 to disable. 2
MAILRELAY_RELAY_GRACE_MINUTES Max time in minutes since last successful relay before service is reported as down. 30

Metadata

Release files for aa-mailrelay 2.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aa-mailrelay 2.1.1
File Size Uploaded
aa_mailrelay-2.1.1.tar.gz 61.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aa-mailrelay 2.1.1
File Interpreter ABI Platform
aa_mailrelay-2.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 89.8 kB

Release files / aa_mailrelay-2.1.1.tar.gz

Download URL aa_mailrelay-2.1.1.tar.gz
Size 61.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5a467aae2738a3e5ad7af24714ad949776657438493b860050a2d42847a7d7b5
BLAKE2b-256 checksum
How to use checksums
0628e5875a337a74c099a25d5bdd836a77cdb32ad0df92bf0dc968837a026d6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.34.2

Release files / aa_mailrelay-2.1.1-py3-none-any.whl

Download URL aa_mailrelay-2.1.1-py3-none-any.whl
Size 28.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe3cfe20e463ed62c0b6b7f3597454160da6bf76198fbf819e9bd1447fccaef7
BLAKE2b-256 checksum
How to use checksums
a97455e7eb4a151eecb024cae2084289b26c13dce9bca4fbde8e159f03b4e543
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.34.2

Release history Release notifications | RSS feed

This release

2.1.1 This release

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page