It is currently Fri Feb 28, 2020 11:07 pm

All times are UTC + 1 hour

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Using gmail server
PostPosted: Wed May 25, 2016 7:35 pm 
Offline user

Joined: Wed May 16, 2012 3:32 pm
Posts: 18
I recently moved internet providers and the new provider does not provide an SMTP server that can be accessed without SSL encryption. Can the BS1000 send e-mail using SSL?
My solution, if it can't, was to use a Raspberry Pi with stunnel on it. The BS1000 would send the e-mail to my Raspberry Pi using unencryted e-mail. The Raspberry Pi would then make an SSL connection to gmail to send the actual e-mail. Unfortunately I could not get the BS1000 to send an e-mail to my Raspberry Pi as the BS1000 would not accept a SMTP server address of (raspberry Pi address). Is it possible to enter a dotted quad as an SMTP server address on the BS1000? My router does know the Raspberry Pi as raspberrypi and I can ping raspberrypi from a windows PC but the BS1000 will not accept an SMTP address as raspberrypi

 Profile E-mail  
 Post subject: Re: Using gmail server
PostPosted: Mon Jun 27, 2016 9:03 pm 
Offline user

Joined: Wed May 16, 2012 3:32 pm
Posts: 18
I finally have a working solution. Here are my notes:

Encapsulate mail from BS1000 in SSH
After moving ISP it was no longer possible to send e-mail from the BS1000 without encryption; the new ISP does not have an SMTP server that supports unencrypted e-mail.
The solution is for the BS1000 to send the unencrypted e-mail to a Raspberry Pi and for the Raspberry Pi to encrypt the e-mail and pass that on to a Gmail server for delivery. The Raspberry Pi uses stunnel for this purpose. The Raspberry Pi must also act as a DNS server as the BS1000 will not accept an IP address for the SMTP server.

Installation of stunnel on Raspberry Pi.
Execute the following commands on the Raspberry Pi.

Sudo apt-get update
sudo apt-get upgrade
sudo apt-get install stunnel4

Next edit the stunnel configutation file in /etc/stunnel/stunnel.conf with a text editor (vi), and add or uncomment the following.

client = yes
accept = 25
connect =
verify = 2
CApath = /etc/ssl/certs

Ensure the stunnel service is started at boot:

sudo update-rc.d stunnel4 defaults

Installation of DNS Server on the Raspberry Pi
Install dnsmasq on the Raspberry Pi using the following commands

sudo apt-get install dnsutils
sudo apt-get install dnsmasq

Edit the /etc/dnsmasq.conf file as follows.

# won't forward requests for your intranet subdomain
# append the domain (below) to all hosts in the hosts file
# appended to DHCP hosts and, if above option specified, to hosts from static IPs

Edit the /etc/hosts file to add any hosts that you want dns to resolve locally

[IP of Raspberry Pi] smtp

Configuration of BS1000
Gmail is REALLY picky about the e-mail address. All e-mail addresses, including the ones in your messenger rules file, must follow the format <> or it will give a 555 error in the recent events log of the BS1000. Now update the BS1000 e-mail options as follows:

Mail server address:
From field: <>
Password: ********

Configure Gmail
In the “Less secure apps” section of your google account security turn on access for less secure apps. In your Gmail settings, under forwarding and POP/IMAP, select Enable POP for all mail and then save changes.

You should now be able to send e-mail alerts via GMail.

 Profile E-mail  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group