rafaelwastaken/modemmanager-sms-email

By rafaelwastaken

Updated 8 months ago

ModemManager SMS to (SMTP) email relay

Image
0

600

rafaelwastaken/modemmanager-sms-email repository overview

modemmanager-sms-email

GitHub Workflow Status Docker Image Version (latest by date)

A ModemManager SMS to (SMTP) Email relay

Requirements

Python requirements are listed in requirements.txt.

blacklist.json

Used for blacklisting words/phrases and numbers using case-sensitive regex, useful for blocking annoying carrier advertising

The file should be in the same working directory as sms.py

Example:

{
    "words": ["meuplano\\.tim\\.com\\.br", "tim\\.com\\.br/primevideo"],
    "numbers": ["TIMInforma", "TIMVantagem"]
}

Environment Variables

Configuration is done via environment variables. Any values with "N/A" default are required.

NameDescriptionTypeDefaultExample
LOG_LEVELLogging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)strINFOINFO
MODEM_IDModem IDintN/A0
POLL_INTERVALInterval in seconds (>=0) between polling the modem for messagesint15
DELETE_SMSDelete SMS messages after emailing thembooltruefalse
IGNORE_EXISTING_SMSIgnore existing SMS messages from before script startbooltruefalse
SMTP_HOSTSMTP server addressstrN/Asmtp.gmail.com
SMTP_PORTSMTP server portint25587
SMTP_USERNAMESMTP usernamestrBlank[email protected]
SMTP_PASSWORDSMTP passwordstrBlankhunter2
SMTP_TLSUse SMTP TLSboolfalsetrue
SMTP_SENDERSMTP sender addressstrN/A[email protected]
SMTP_RECIPIENTSSMTP recipient address(es) separated by commasstrN/A[email protected],[email protected],[email protected]
SMTP_SUBJECTEmail subject ("%number%" will be replaced by the sender number)strBlankNew SMS from %number%

Tag summary

Content type

Image

Digest

sha256:842f32888

Size

33.4 MB

Last updated

8 months ago

docker pull rafaelwastaken/modemmanager-sms-email