What's new

Asus Merlin RT-AC87U: 384.13_10 and Email Notifications

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Louis James

Occasional Visitor
I'm curious if there is an email notification about status on certain areas of the router. For example, I just discovered the wonder of Split Tunneling on the OpenVPN Client. What a godsend!!! I have the client setup with ExpressVPN. Works Wonders. I do have the "kill switch" setup where if the tunnel goes done, it blocks traffic to that device. In my case, an ATA (Telephone Adapter).

I've been told (whether it's true or not is another story) that I can get an email telling me that the tunnel has gone down. I could imagine a simple SMS Email to MyCellPhone@CellPhoneCarrier.com. that would have a short SMS - theOpenVPN Client Settings#1 (Client Instance Name) is disconnect. And when it came back up, another SMS saying that it's back up with the Public IP address it got.

But can't find anywhere in the GUI any setting of that sort. Could it be possible?

Here's hoping. By the way, the ONLY device on that tunnel is the Telephone Adapter. So using a computer on that tunnel, I don't think is an option.

Thanks for hearing this out.

I use the script below to email me when needed. I call the script from other scripts as required with as "smail.sh text_body.txt subject_line"

You may be able to wan-event script to capture what you want to do. Call the mail script after you build the body.txt file with what ever you want to be mailed.

I use a gmail account to send me info. For it to work reliably, I had to set up a "App Password" in the gmail security section for the account. That gives you a fixed password that gmail recognizes as coming from an automated app and accepts it as is without the other security hoops to jump.

As far as the certificate is concerned, you can get a certificate here;


or with this;


wget -c -O $1 http://www.geotrust.com/resources/root_certificates/certificates/Equifax_Secure_Certificate_Authority.pem --no-check-certificate


# Send mail alert to administrator
# usage:
#    smail.sh text_body subject_line

if ! [ $# -eq 2 ]
    printf "Not enough Arguments\n\n"
    printf "Usage: smail.sh <email_body> <subject_line>\n\n"

if ! [ -e $1 ]
    printf "File %s does not exit\n\n" $1

FROMNAME="Your Router"

echo "Subject: "$2 >/tmp/mail.txt
echo "From: $FROMNAME <$FROM>" >>/tmp/mail.txt
echo "Date:  $(date -R)" >>/tmp/mail.txt

cat $1 >>/tmp/mail.txt

echo "" >>/tmp/mail.txt

cat /tmp/mail.txt | sendmail -H"exec openssl s_client -quiet \
-CAfile /jffs/gmail2.pem \
-connect smtp.gmail.com:587 -tls1 -starttls smtp" \
-f"$FROM" \
-au"$AUTH" -ap"$PASS" $TO

#rm /tmp/mail.txt

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!