[arm-allstar] Email on connection?
David McGough
kb4fxc at inttek.net
Sun May 6 11:56:24 EST 2018
Hi Russell,
Glad to hear it's working!
73, David KB4FXC
On Sun, 6 May 2018, Russell Thomas wrote:
> chmod was the missing link!!
>
> Thank you David!
>
> Now, I might also like it to play a connection sound like when I link
> to a node. any tips on that? :)
>
> On Sun, May 6, 2018 at 10:38 AM, David McGough <kb4fxc at inttek.net> wrote:
> >
> > No
> >
> >
> > On Sun, 6 May 2018, Russell Thomas wrote:
> >
> >> Do I need an ".sh" extension?
> >>
> >> On Sun, May 6, 2018, 10:32 AM Russell Thomas <russell at kv4s.com> wrote:
> >>
> >> > No, didn't know about that
> >> >
> >> > On Sun, May 6, 2018, 10:27 AM David McGough <kb4fxc at inttek.net> wrote:
> >> >
> >> >>
> >> >>
> >> >> Did you make the connect script executable?? Like:
> >> >>
> >> >> chmod 755 /path/to/the/script
> >> >>
> >> >>
> >> >>
> >> >> On Sun, 6 May 2018, Russell Thomas wrote:
> >> >>
> >> >> > Yes I'll be using Gmail.
> >> >> >
> >> >> > Since setting up ssmtp I started getting an email in the morning for
> >> >> one of
> >> >> > the Cron task. So, the email works at least.....
> >> >> >
> >> >> > On Sun, May 6, 2018, 10:02 AM David McGough <kb4fxc at inttek.net> wrote:
> >> >> >
> >> >> > >
> >> >> > > Russell,
> >> >> > >
> >> >> > > Logging which goes to syslog can be seen using the journalctl command.
> >> >> > >
> >> >> > > So, open a couple ssh sessions and try something like this:
> >> >> > >
> >> >> > > ..........In the first ssh session:
> >> >> > >
> >> >> > > [root at hamvoip-kb4fxc ~]# echo "this is a test e-mail" | mail -s "Test
> >> >> > > from RPi3" kb4fxc at inttek.net
> >> >> > > [root at hamvoip-kb4fxc ~]#
> >> >> > >
> >> >> > >
> >> >> > > .........And, in the second ssh session:
> >> >> > >
> >> >> > > [root at hamvoip-kb4fxc ~]# journalctl -f
> >> >> > > -- Logs begin at Mon 2016-02-22 09:40:14 EST. --
> >> >> > > May 06 07:01:01 hamvoip-kb4fxc.inttek.net CROND[19380]: (root) CMD
> >> >> > > (run-parts /etc/cron.hourly)
> >> >> > > May 06 07:26:42 hamvoip-kb4fxc.inttek.net wpa_supplicant[290]: wlan0:
> >> >> > > WPA: Group rekeying completed with 78:8a:23:1d:38:19 [GTK=CCMP]
> >> >> > > May 06 08:01:01 hamvoip-kb4fxc.inttek.net CROND[19406]: (root) CMD
> >> >> > > (run-parts /etc/cron.hourly)
> >> >> > > May 06 08:26:42 hamvoip-kb4fxc.inttek.net wpa_supplicant[290]: wlan0:
> >> >> > > WPA: Group rekeying completed with 78:8a:23:1d:38:19 [GTK=CCMP]
> >> >> > > May 06 09:01:01 hamvoip-kb4fxc.inttek.net CROND[19428]: (root) CMD
> >> >> > > (run-parts /etc/cron.hourly)
> >> >> > > May 06 09:26:42 hamvoip-kb4fxc.inttek.net wpa_supplicant[290]: wlan0:
> >> >> > > WPA: Group rekeying completed with 78:8a:23:1d:38:19 [GTK=CCMP]
> >> >> > > May 06 10:01:01 hamvoip-kb4fxc.inttek.net CROND[19451]: (root) CMD
> >> >> > > (run-parts /etc/cron.hourly)
> >> >> > > May 06 10:26:42 hamvoip-kb4fxc.inttek.net wpa_supplicant[290]: wlan0:
> >> >> > > WPA: Group rekeying completed with 78:8a:23:1d:38:19 [GTK=CCMP]
> >> >> > > May 06 10:52:34 hamvoip-kb4fxc.inttek.net sSMTP[19536]: Sent mail for
> >> >> > > root at devrpi4.inttek.net (221 2.0.0 Bye) uid=0 username=root
> >> >> outbytes=373
> >> >> > >
> >> >> > >
> >> >> > > .........Note the last line of the log, which indicates successful
> >> >> > > transmission of the e-mail message. And, I got it my inbox. I'm able
> >> >> to
> >> >> > > send this message to myself since I control the mail server(s) at
> >> >> this end
> >> >> > > and I've allowed local access without authentication. For most
> >> >> scenarios,
> >> >> > > you'll need to authenticate yourself to the Internet e-mail server
> >> >> before
> >> >> > > it'll allow you to send messages. Here is my example
> >> >> /etc/ssmtp/ssmtp.conf
> >> >> > > file:
> >> >> > >
> >> >> > > #
> >> >> > > # /etc/ssmtp.conf -- a config file for sSMTP sendmail.
> >> >> > > #
> >> >> > > # The person who gets all mail for userids < 1000
> >> >> > > # Make this empty to disable rewriting.
> >> >> > > root=postmaster
> >> >> > > # The place where the mail goes. The actual machine name is required
> >> >> > > # no MX records are consulted. Commonly mailhosts are named
> >> >> > > mail.domain.com
> >> >> > > # The example will fit if you are in domain.com and you mailhub is so
> >> >> > > named.
> >> >> > > mailhub=mail
> >> >> > > # Where will the mail seem to come from?
> >> >> > > #rewriteDomain=y
> >> >> > > # The full hostname
> >> >> > > hostname=devrpi4.inttek.net
> >> >> > >
> >> >> > >
> >> >> > > Are you going to use gmail to send you messages?
> >> >> > >
> >> >> > > 73, David KB4FXC
More information about the arm-allstar
mailing list