# Email notification throughout Gmail

**URL:** <https://forum.mikrotik.com/t/email-notification-throughout-gmail/74390>\
**Category:** The Dude\
**Created:** [February 18, 2014, 11:15am UTC](https://forum.mikrotik.com/t/email-notification-throughout-gmail/74390 "2014-02-18T11:15:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![David1234](https://forum.mikrotik.com/letter_avatar/david1234/32/6_449c533f586939b6e5f246632a46421f.png) [@David1234](https://forum.mikrotik.com/u/David1234)\
**Post date:** [February 18, 2014, 11:15am UTC](https://forum.mikrotik.com/t/email-notification-throughout-gmail/74390/1 "2014-02-18T11:15:15Z")

</div>

Hello  
I’m trying to make this work, and to be able to send me mail when something wrong with my network  
I have try to do as said in the post “Email notification throughout Gmail on Windows machine” , but still not working

can someone that this work for him can explain ??

Thanks,

---

<div class="post-metadata">

**Author:** ![rickfrey](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/rickfrey/32/723_2.png) [@rickfrey](https://forum.mikrotik.com/u/rickfrey)\
**Post date:** [February 18, 2014, 9:47pm UTC](https://forum.mikrotik.com/t/email-notification-throughout-gmail/74390/2 "2014-02-18T21:47:28Z")

</div>

I’ve used that example many, many times. The key is to download the exact software in the example and to configure it exactly as it is in the example. If you use the newer versions of stunnel and blat, you will likely have problems.

---

<div class="post-metadata">

**Author:** ![David1234](https://forum.mikrotik.com/letter_avatar/david1234/32/6_449c533f586939b6e5f246632a46421f.png) [@David1234](https://forum.mikrotik.com/u/David1234)\
**Post date:** [February 19, 2014, 8:18am UTC](https://forum.mikrotik.com/t/email-notification-throughout-gmail/74390/3 "2014-02-19T08:18:52Z")

</div>

I have download from the links in the post and this is what I have config there -

this is the stunnel.conf

> ; Sample stunnel configuration file for Win32 by Michal Trojnara 2002-2012  
> ; Some options used here may be inadequate for your particular configuration  
> ; This sample file does _not_ represent stunnel.conf defaults  
> ; Please consult the manual for detailed description of available options
> 
> ; \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> ; \* Global options \*  
> ; \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> ; Debugging stuff (may useful for troubleshooting)  
> ;debug = 7  
> ;output = stunnel.log
> 
> ; Disable FIPS mode to allow non-approved protocols and algorithms  
> ;fips = no
> 
> ; \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> ; \* Service defaults may also be specified in individual service sections \*  
> ; \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> ; Certificate/key is needed in server mode and optional in client mode  
> cert = stunnel.pem  
> ;key = stunnel.pem
> 
> ; Authentication stuff needs to be configured to prevent MITM attacks  
> ; It is not enabled by default!  
> ;verify = 2  
> ; Don’t forget to c\_rehash CApath  
> ;CApath = certs  
> ; It’s often easier to use CAfile  
> ;CAfile = certs.pem  
> ; Don’t forget to c\_rehash CRLpath  
> ;CRLpath = crls  
> ; Alternatively CRLfile can be used  
> ;CRLfile = crls.pem
> 
> ; Disable support for insecure SSLv2 protocol  
> options = NO\_SSLv2  
> ; Workaround for Eudora bug  
> ;options = DONT\_INSERT\_EMPTY\_FRAGMENTS
> 
> ; These options provide additional security at some performance degradation  
> ;options = SINGLE\_ECDH\_USE  
> ;options = SINGLE\_DH\_USE
> 
> ; \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> ; \* Service definitions (at least one service has to be defined) \*  
> ; \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> ; Example SSL server mode services  
> socket = l:TCP\_NODELAY=1  
> socket = r:TCP\_NODELAY=1  
> debug = 7  
> output = stunnel.log
> 
> client = yes
> 
> [pop3s]  
> accept = 995  
> connect = [pop.gmail.com:995](http://pop.gmail.com:995)
> 
> [ssmtp]  
> accept = 465  
> connect = [smtp.gmail.com:465](http://smtp.gmail.com:465)

this is the emailblat.cmd

> set dir=C:\Program Files\Dude\blat  
> set smtpsender=\> [testing@gmail.com](mailto:testing@gmail.com)  
> set smtpserver=127.0.0.1  
> set smtpport=465  
> set smtpuser=testing  
> set smtppwd=1234567  
> set mailto=\> [testing@gmail.com](mailto:testing@gmail.com)
> 
> “%dir%\blat.exe” -to %mailto% -f %smtpsender% -server %smtpserver% -port %smtpport% -u %smtpuser% -pw %smtppwd% -subject %1 -body %2
> 
> IF NOT EXIST %logname% echo ====================== Start of file ====================== \> %logname%  
> echo. \>\> %logname%  
> echo ====================== %time% ====================== \>\> %logname%
> 
> C:  
> CD %dir%  
> echo CMD: blat.exe -to %mailto% -f %smtpsender% -server %smtpserver% -port %smtpport% -u %smtpuser% -pw %smtppwd% -subject %subject% -body %body% \>\> %logname%  
> blat.exe -to %mailto% -f %smtpsender% -server %smtpserver% -port %smtpport% -u %smtpuser% -pw %smtppwd% -subject %subject% -body %body% \>\> %logname%

my computer IP is - 10.0.0.167/24  
the DG is - 10.0.0.1 (IP of the router )

what am I missing? doing wrong?

Thanks ,

---

<div class="post-metadata">

**Author:** ![rickfrey](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/rickfrey/32/723_2.png) [@rickfrey](https://forum.mikrotik.com/u/rickfrey)\
**Post date:** [February 20, 2014, 7:16am UTC](https://forum.mikrotik.com/t/email-notification-throughout-gmail/74390/4 "2014-02-20T07:16:42Z")

</div>

I’ve trouble with it in the past, but I have always been able to get it working. Initially, I thought the problem was going to be with the newer versions of blat and stunnel, but I found some of my older versions and it still wasn’t working. I’m not an expert with blat or stunnel, so I’m going to have to read up on those two programs to figure what is going on. Has anyone else had recent success with this method?

---

<div class="post-metadata">

**Author:** ![David1234](https://forum.mikrotik.com/letter_avatar/david1234/32/6_449c533f586939b6e5f246632a46421f.png) [@David1234](https://forum.mikrotik.com/u/David1234)\
**Post date:** [February 20, 2014, 3:05pm UTC](https://forum.mikrotik.com/t/email-notification-throughout-gmail/74390/5 "2014-02-20T15:05:22Z")

</div>

someone from the forum call - **slech** has help me  
he found that the mistake was in the stunnel.conf

he have now post a new and fix "installation’ and how to post

Thanks to him it’s now working

Thanks again - **slech**

---

<div class="post-metadata">

**Author:** ![rickfrey](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/rickfrey/32/723_2.png) [@rickfrey](https://forum.mikrotik.com/u/rickfrey)\
**Post date:** [February 20, 2014, 3:16pm UTC](https://forum.mikrotik.com/t/email-notification-throughout-gmail/74390/6 "2014-02-20T15:16:09Z")

</div>

Great, would post a link to that discussion. I would like to what the fix was as well. Thank you 🙂

---

<div class="post-metadata">

**Author:** ![David1234](https://forum.mikrotik.com/letter_avatar/david1234/32/6_449c533f586939b6e5f246632a46421f.png) [@David1234](https://forum.mikrotik.com/u/David1234)\
**Post date:** [February 20, 2014, 10:26pm UTC](https://forum.mikrotik.com/t/email-notification-throughout-gmail/74390/7 "2014-02-20T22:26:02Z")

</div>

[http://forum.mikrotik.com/t/dude-email-notifications-through-gmail-on-windows-via-blat/28399/1](http://forum.mikrotik.com/t/dude-email-notifications-through-gmail-on-windows-via-blat/28399/1)

---

<div class="post-metadata">

**Author:** ![rickfrey](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/rickfrey/32/723_2.png) [@rickfrey](https://forum.mikrotik.com/u/rickfrey)\
**Post date:** [February 21, 2014, 2:49am UTC](https://forum.mikrotik.com/t/email-notification-throughout-gmail/74390/8 "2014-02-21T02:49:08Z")

</div>

Thanks
