Skip to content

AshCorr/discord-mail-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-mail-webhook

Automatically scan SMTP mailboxes and post emails to a Discord webhook image

Mark all emails as Read before using this bot. Currently there is nothing stopping this bot from flying way past the discord rate limit.

Usage

Docker

Use ghcr.io/ashcorr/discord-mail-webhook:latest

Config

Config is managed through environment variables.

Required Variables

Variable Name Description
IMAP_HOST IMAP hostname for mailbox eg mail.google.com
IMAP_USERNAMES Comma delimited usernames, eg [email protected],[email protected]
IMAP_PASSWORDS Comma delimited usernames, eg password1,password2
DISCORD_WH_URL Discord webhook url

Optional Variables

Name Description Default
IMAP_PORT IMAP hostname for mailbox eg mail.google.com 143
IMAP_TLS Check for valid TLS true
IMAP_MARK_SEEN Mark emails as seen true
LOG_LEVEL Log level info