Send mail with ssmtp over SSL GMail on OpenWRT (updated)

Install (thx Mike, for upd):

opkg install msmtp 
opkg install ca-certificates

Edit /etc/msmtprc:

tls on
tls_starttls on
tls_trust_file /etc/ssl/certs/GeoTrust_Global_CA.crt
account default
port 587
auth on
password your_password
logfile /var/log/msmtp.log


echo -e "Subject: Test Mail\r\n\r\nThis is a test mail" |msmtp --from=default -t

If problem, add “–debug” to msmtp params.

Ubuntu Linux lost password, change root password from boot

  1. Reboot your computer
  2. Press SHIFT or ESC at the grub prompt (as earlier)
  3. Select your image, and highlight the line that begins kernel and press ‘e’ to edit
  4. Go to the very end of the line, change the ro to rw and add init=/bin/bash press enter, then press b to boot your system. Your system will boot up to a passwordless root shell
  5. Type in passwd username