mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Auto update
This commit is contained in:
parent
b7ff808f63
commit
2a0430c4ae
1 changed files with 10 additions and 0 deletions
10
faq.html
10
faq.html
|
|
@ -967,11 +967,13 @@ To securely send notifications through Gmail on Linux, follow these steps:
|
|||
<p>
|
||||
1. <strong>Create the file:</strong> Create a file named .netrc in the home directory of the user specified in notify_run_as_user.
|
||||
</p>
|
||||
<p>
|
||||
<pre>
|
||||
machine smtp.gmail.com
|
||||
login your_email@gmail.com
|
||||
password your-16-char-app-password
|
||||
</pre>
|
||||
</p>
|
||||
<p>
|
||||
Note: You must use a Google "App Password," not your primary account password.
|
||||
</p>
|
||||
|
|
@ -981,9 +983,11 @@ Note: You must use a Google "App Password," not your primary account password.
|
|||
<p>
|
||||
3. <strong>Configure the Command:</strong>
|
||||
</p>
|
||||
<p>
|
||||
<pre>
|
||||
notify_result = curl --netrc --url smtps://smtp.gmail.com:465 --ssl-reqd --mail-from your_email@gmail.com --mail-rcpt your_email@gmail.com --upload-file -
|
||||
</pre>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -1000,25 +1004,31 @@ To send notifications through Gmail from a Windows Service, you have two primary
|
|||
<br>
|
||||
Place a file named _netrc (note the underscore) in the System Profile directory: C:\Windows\System32\config\systemprofile\_netrc.
|
||||
</p>
|
||||
<p>
|
||||
<pre>
|
||||
machine smtp.gmail.com
|
||||
login your_email@gmail.com
|
||||
password your-16-char-app-password
|
||||
</pre>
|
||||
</p>
|
||||
<p>
|
||||
Ensure only SYSTEM and Administrators have NTFS read access to this file. Use the following configuration:
|
||||
</p>
|
||||
<p>
|
||||
<pre>
|
||||
notify_result = curl.exe --netrc --url "smtps://smtp.gmail.com:465" --ssl-reqd --mail-from "your_email@gmail.com" --mail-rcpt "your_email@gmail.com" --upload-file -
|
||||
</pre>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Option 2: Using Command Line Credentials</strong>
|
||||
<br>
|
||||
If you cannot use a file, you can pass your Gmail credentials directly via the --user flag. Note that this is less secure as the app password may be visible in process monitoring tools.
|
||||
</p>
|
||||
<p>
|
||||
<pre>
|
||||
notify_result = curl.exe --user "your_email@gmail.com:your-app-password" --url "smtps://smtp.gmail.com:465" --ssl-reqd --mail-from "your_email@gmail.com" --mail-rcpt "your_email@gmail.com" --upload-file -
|
||||
</pre>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue