capruro / sms2email

Home Page:https://www.capruro.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Forward SMS to email using a 3G USB Dongle

Configuration for:

usb_modeswitch used to switch the 3G usb dongle (ZTE Vodafone in my case) from storage mode to modem mode
smstools used for receive sms and forward it to mail
postfix MTA used to forward email using a 3rd mail account

Installation

Postfix setup

SMTP Server should be configured to receive notification via mail. You can follow this guide to set up a Gmail account with postfix:
https://github.com/capruro/sms2email/wiki/Postfix-setup

usb_modeswitch

apt install -y usb_modeswitch

root@ubuntu:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 19d2:0063 ZTE WCDMA Technologies MSM K3565-Z HSDPA
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

19d2:2000 Storage mode

19d2:0063 Modem mode

To switch put the file zte_vodafone in the config folder and run as root:
`usb_modeswitch -c /etc/usb_modeswitch.d/zte_vodafone`

once usb is in the correct state you can start smstools

Known issue: usb_modeswitch doesn't work after reboot so i applied some work around

smstools

apt install -y smstools

replace the smsd configuration and start the program

systemctl start smstools

About

https://www.capruro.com/


Languages

Language:Shell 100.0%