Dokuwiki on the Pine64
#4
====== Email Setup ======
The password for gmail will be readable by root, so the best thing to do is to turn on two-step verification in Gmail.

Install Mail (mpack is for mail attachments, which I didn't install):
Code:
sudo apt-get install ssmtp
sudo apt-get install mailutils
sudo apt-get install mpack

Configure Mail:
Edit and modify/add lines as necessary
Code:
sudo nano /etc/ssmtp/ssmtp.conf

Code:
mailhub=smtp.gmail.com:587
hostname=HOSTNAME
AuthUser=YOURADRRESS@gmail.com
AuthPass=PASSWORD
useSTARTTLS=YES

No need to restart the mail server.

Test Email:
Code:
echo "sample text" | mail -s "Subject" username@domain.com

(username@domain.com is the destination address)

If you want to have Crontab email after each activity, set Crontab to use a specific email address:
Code:
sudo crontab -e
   MAILTO=username@gmail.com


====== Source Information ======
http://www.sbprojects.com/projects/raspb.../exim4.php

https://rpi.tnet.com/project/faqs/smtp

[url= https://rpi.tnet.com/project/faqs/smtp][/url]


Messages In This Thread
Dokuwiki on the Pine64 - by JCMPine64 - 05-04-2016, 08:31 PM
RE: Dokuwiki on the Pine64 - by tllim - 05-05-2016, 12:50 AM
RE: Dokuwiki on the Pine64 - by JCMPine64 - 05-05-2016, 08:00 AM
RE: Dokuwiki on the Pine64 - by JCMPine64 - 05-07-2016, 11:41 AM
RE: Dokuwiki on the Pine64 - by Luke - 05-07-2016, 01:05 PM
RE: Dokuwiki on the Pine64 - by swinging - 01-06-2017, 01:51 AM
RE: Dokuwiki on the Pine64 - by dkryder - 01-06-2017, 05:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question External storage problem for pine64 Dani6102 4 2,413 08-22-2023, 08:36 AM
Last Post: gulshan212
  Pine64 as wireless audio device S265 3 3,876 04-07-2022, 10:39 PM
Last Post: S265
  Pine64(+) and manjaro dsychan 0 1,376 04-05-2022, 11:32 PM
Last Post: dsychan
Thumbs Down Pine64 was a Useless Project pushpendrak 18 31,200 11-21-2020, 10:17 PM
Last Post: tllim
  Pine64 LCD rstcologne 0 3,367 09-22-2020, 12:43 PM
Last Post: rstcologne
  Pine64+ power button PaddyChan 0 3,021 09-14-2020, 09:55 AM
Last Post: PaddyChan
  Pine64 OS dpcons 2 5,329 03-02-2020, 04:32 PM
Last Post: dpcons
  Jailhouse supports Pine64+ vj-kumar 0 3,059 02-17-2020, 11:39 PM
Last Post: vj-kumar
  PINE64 board not powering up loki21century 2 6,073 11-25-2019, 12:19 PM
Last Post: Partymack711
  Pine64 not powering up. skylab 5 7,986 05-03-2019, 02:48 PM
Last Post: Mendota

Forum Jump:


Users browsing this thread: 1 Guest(s)