Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Latest commit

 

History

History
executable file
·
49 lines (39 loc) · 1.59 KB

SMTP.md

File metadata and controls

executable file
·
49 lines (39 loc) · 1.59 KB

Important

⚠ This is a public archive and the active project has been renamed to NetAlertX and moved: jokob.sk/NetAlertX

  • To differentiate from the upstream stale project
  • To differentiate from other active forks
  • To indicate this is not a Raspberry Pi-specific tool anymore

📧 SMTP guides

Using the GMX SMTP server

  1. Go to your GMX account https://account.gmx.com
  2. Under Security Options enable 2FA (Two-factor authentication)
  3. Under Security Options generate an Application-specific password
  4. Home -> Email Settings -> POP3 & IMAP -> Enable access to this account via POP3 and IMAP
  5. In PiAlert specify these settings:
    SMTP_RUN='on_notification'
    SMTP_SERVER='mail.gmx.com'
    SMTP_PORT=465
    SMTP_USER='gmx_email@gmx.com'
    SMTP_PASS='<your Application-specific password>'
    SMTP_SKIP_TLS=True
    SMTP_FORCE_SSL=True
    SMTP_SKIP_LOGIN=False
    SMTP_REPORT_FROM='gmx_email@gmx.com' # this has to be the same email as in SMTP_USER
    SMTP_REPORT_TO='some_target_email@gmail.com'

Using the Gmail SMTP server

  1. Create an app password by following the instructions from Google, you need to Enable 2FA for this to work. https://support.google.com/accounts/answer/185833

  2. Specify the following settings:

    SMTP_RUN='on_notification'
    SMTP_SKIP_TLS=True
    SMTP_FORCE_SSL=True 
    SMTP_PORT=465
    SMTP_SERVER='smtp.gmail.com'
    SMTP_PASS='16-digit passcode from google'
    SMTP_REPORT_TO='some_target_email@gmail.com'