This commit is contained in:
Mateusz779 2023-04-28 13:29:02 +02:00
parent 17d33e70cb
commit 91cefdcd9e
4 changed files with 9 additions and 11 deletions

View File

@ -1,14 +1,14 @@
account notification account notification
host smtp.mkedziora.pl host smtp.domain.com
port 587 port 587
timeout 15 timeout 15
protocol smtp protocol smtp
domain mkedziora.pl domain domain.com
auth on auth on
user test user user
from test@mkedziora.pl from user@domain.com
password V8ufrLgiEwRF72dM password password
tls on tls on
syslog on syslog on
tls_starttls on tls_starttls on

View File

@ -13,8 +13,8 @@ ATTACHEMENT=/tmp/attachement_`date +'%Y:%m:5d_%H%M%S'`.tar.xz
cat /tmp/zalacznik.tar.xz >$ATTACHEMENT cat /tmp/zalacznik.tar.xz >$ATTACHEMENT
cat >$MAILFILE <<EOF cat >$MAILFILE <<EOF
From: test@mkedziora.pl From: user@domain.com
To: admin@mkedziora.pl To: admin@domain.com
Subject: Uruchomiono maszynę Subject: Uruchomiono maszynę
Date: $NOW Date: $NOW
MIME-Version: 1.0 MIME-Version: 1.0
@ -41,6 +41,6 @@ cat >>$MAILFILE <<EOF
--$BOUNDARY-- --$BOUNDARY--
EOF EOF
cat $MAILFILE |msmtp -C /etc/msmtprc -a notification admin@mkedziora.pl cat $MAILFILE |msmtp -C /etc/msmtprc -a notification admin@domain.com
rm -f $ATTACHEMENT $MAILFILE rm -f $ATTACHEMENT $MAILFILE

View File

@ -1,2 +0,0 @@
n=[bc9c87dc47d7d5ab794c2bf1e5903bf4cc123dc68494ff512174227a532e90cf05998ba28639319676550fc0be886051fdd37fe7bfe628fe3d2dba5d55ddb62828304c5b2741c571aa93bee20da613712605ffb03deaa343fd7343f236fc79fa71897d1184640397cb8846da2771809f28b72c64afa37302c71df5b7d070b5119f965f18b81d342676268a1fdc83425a195a7054da6335fb539251dede3a377315d481e782467c70eab3205c7340b720e9eb5143542187609b4f9785b73be4480005317925c5c5ef7a68bb85e93a86f201a222b02bb39040b2dc2c5113c5a5d8c8cb7e42cc3d394dadbca5129104c52614966625aa67a6764b30f3283aaf9cd4be4376b31c2368369c1f25695cd5ba534cce56ec931ca88a40782310243510a0c658f8ea59115480b5e98b682f3663ae48c2b129bd007878bd11610e15f48ca966cb51a8405253a4ef204f45a1cbe4a0c0da81f6f561ba53a80ecf2515326db00c5a6e9f30d347b7fccee9847681ea533a01a93481ae095dba5b8f85129c91692c4cd26bc5092f4d83c3c96fb38a160670bd5f93bbee397e7dde27db3b5ed2a663793bbc5164727432804662d617db61653e30bccd3c80ed5e7b0ce9082b5a71545aa0146b1d2b0a285c8999a9f0de2cf0427bc84b1adb1001687e9cc145f56236551db9be3249655910a4ea14a094818e6904e45ec1445c810e975aad5936d]
e=[1d060cd9adc6c61c224e7e8362d254ce08253788ca79ac3bffbe7e279e3cd38a2bab33db47628cb2c83cead0712e1e7dbc049f4439e9c23fc064afe537cfe584cb9c76fabcd9cc99aede807de588291c9c2eda0ab8d616c1c4e4b7be538ce6f919b1afbe20c4e6bb6810c11b80a27e203603d10239af74d2ab24ddfc987f4e129dd08aa9edf55daac92bb0b68877ef89c9474573fe6c70f5a70244d9886cc507f3176d8eb24f0e89c7fdf2131979375c4c7bd772f18a65812b3a8a473ddb2e419e6c73572261dd97fa932ae56d9d04d6c1a8612668e1d72cdf4d341fb528eecf790dfab8adeb20059e9e8374356d4013737cf1dacff7d9904fc5f1e7b66b44a2cddc11da908f22b917335a1788d5782ab9db1e97124216e59d386f9a357dea3495d430c68f30adeeb95e15c54006c055dcdf87000c04300dd2e8c19d229def22635e8d52100bdcb7c095a96487ac09327b71398c3cd13956b4b0e918b6650afeda78edc09963a57275216a69026cddda4704c251270ed0deb0fd06a47ca84ee15ca1af97a2994f01a15cb368117be4a9f3e270eb861e8dea96c6d06e3a9e36f499867f1c3bdd78bcef9bac5afbd41437a61bb93b711c8c314bf0a13ae6bfe9452d0cb992e19a9ab9a6ac3ba19f06279fb741d6db7bc072c936980d0561d02143fd5c35d4222a14727cb061021e21496848abfcad4fe533a3ffca76832129c218b2ea753eb4087dc04b8c92672ff8b55e98792d6bd1af63801f900347c35e37d49ad5176a57e72b441db414d98a04ec5ba30425a72a32162871a1149cdfc3852b8f827f43c976e033e010dd2c3dae441dad8a612c13d0baaeee132e08bea9ad0bc1a191eaee8d66855b24c76169bc870ba8c78c915aa61e7761bf08bb96493255e897f17f7192aceb91bd78abc0a8ceb2de411504387bd30deed45dd02326d88c500e02a81c1b319eabaf68128ffa10b4081972bf142bf101ef409526c0d17274537b6f7f7f95e0153c9eba03153a7bf4c1c3dd0a0efe2b732ce9b520b5e46106f4110502bdbd60c8056e825184b9c32e8961339166124f9391e5a85649c5ea99923615fbc32db72e196135d2338449d21c9f64144fe3c9825632dd4a2803e4182710ebdec80b1bc4b561ec7e4e6cbc8ae1c973a0c101add427b1348ad8dab0b4fec546d9645cc0492c0ec10e822e30659239b08c3ab08c5026643537570d6943544a5843f1ca05db00974e159bfc469dd6370e27bc3bf71364c99807742835e774e7932559e800e2195e2b3273e5a562c67d977f0ed8b0e1029b95d98571ccd760e8cb37238113b4934ce630e30210677b42cd75a39b047d2c34a6463179fc44b963e849d308e7dabf71b02b6c1b7cf587d0babd31d3789104affc87ee1416bb545ad03100b9efb058183457fd2f128b03050cb97c0327acf4614d5c725]

View File

@ -11,7 +11,7 @@ public_key = aaa.pub
output_auth_method = 5 output_auth_method = 5
[server] [server]
connect_addr = 192.168.1.31 connect_addr =
connect_port = 1194 connect_port = 1194
cipher = aes:mixed cipher = aes:mixed
checksum = sha256 checksum = sha256