Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msmtprc #532

Open
jetom opened this issue May 2, 2016 · 2 comments
Open

msmtprc #532

jetom opened this issue May 2, 2016 · 2 comments

Comments

@jetom
Copy link

jetom commented May 2, 2016

Hello

I have a device :
WR1043ND
Gargoyle 1.9.0.3 (r49208)

It uses the application "msmtprc" for sending email:

  1. As the Gargoyle Router report end
  2. Be alert mail after connecting the port 1/2/3/4

To "2" point of entry needs to "msmtprc"
tls_starttls on
tls_certcheck off
because it receives information sendmail: account default from /etc/msmtprc: tls requires either tls_trust_file (highly recommended) or tls_fingerprint or a disabled tls_certcheck

as Append to "msmtprc" is tls_starttls on end tls_certcheck off after the Gargoyle Router report, these two entries to remove

someone will like this set up?

Be alert mail after connecting the port 1/2/3/4

/bin/sh

touch /tmp/wynik1
O1=$(swconfig dev switch0 port 1 get link)
O2=$(cat /tmp/wynik1)
if [ "$O1" = "$O2" ]; then
echo "to samo co było"
else
echo "$O1" > /tmp/wynik1
if grep -q "link:up" /tmp/wynik1; then
cat /mnt/LAN1.txt | sendmail -t
fi
fi

@jetom
Copy link
Author

jetom commented May 2, 2016

modeled on email.sh did so

#/bin/sh

receiver=$(uci get email.@email[0].recipient)
data=$(uci get email.@email[0].data)
tlscert="/etc/ssl/certs/ca-certificates.crt"
tls=$(uci get email.@email[0].tls)
count=$(uci get email.@email[0].count)

touch /tmp/wynik1
O1=$(swconfig dev switch0 port 1 get link)
O2=$(cat /tmp/wynik1)
if [ "$O1" = "$O2" ]; then
echo "to samo co było"
else
echo "$O1" > /tmp/wynik1
if grep -q "link:up" /tmp/wynik1; then
cat /mnt/LAN1.txt | sendmail --tls-trust-file $tlscert $receiver
fi
fi
fi

And it works

@ghost
Copy link

ghost commented May 6, 2016

Write to obsy, it is his compilation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant