Gmail via Entware ng - davygravy/AirPrint-on-Entware GitHub Wiki

Uses and Limitations: For informational emails, warnings, etc.

  • low or empty ink levels on printers
  • SMART status of any attached drive
  • low space on drive

Required Packages:

  • msmtp
  • ca-bundle (ca-certs bundle, installed automatically as a dependency of msmtp)

Gmail-specific setup: Perhaps you have to disable 2-factor authentication? Not sure anymore. If that is the case, be careful with security. Perhaps have an email account --just-- for notifications.

Configuration file: /opt/etc/msmtprc

 account default
 host smtp.gmail.com
 port 587
 auth on
 user [email protected]
 password MyPassword123
 auto_from on
 from [email protected]
 tls on
 tls_starttls on
 tls_trust_file /opt/etc/ssl/certs/ca-certificates.crt
 # It can work without CA certificates but I recommend to use them (you can copy from Debian, apt-get install ca-certificates, /etc/ssl/certs/ca-certificates.crt).
 # Use "tls_certcheck off" if you don't have ca-certificates.crt file.
 # Log to a separate file; use with no options to disable this feature
 logfile /opt/var/log/msmtp.log
 # Uncomment if you want to log to syslog facility, which is disabled by default
 #syslog LOG_MAIL

Easy test invocation: (email sent to [email protected])

 echo "Hello this is sending email using msmtp" | msmtp  [email protected]