TLS alerts and statusmails in napp-it (ex Googlemail)

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

gea

Well-Known Member
Dec 31, 2010
3,163
1,195
113
DE
Mailer like Googlemail are only accessable via encrypted TLS email.
Napp-it supports TLS but only if you install the needed apps, modules and libraries manually.

If you want to avoid this manual installation, you can use a free mailforwarder like kostenlose eMail Weiterleitung ohne Anmeldung
where you can setup a mailforwarder like alert123@mailfish.de to your real emailadress


Within napp-it settings, you send your alerts to this forwarder with the following settings

mailserver: mx.mailfish.de
mailto: (example) alert123@mailfish.de
name,pass: not needed
 

yu130960

Member
Sep 4, 2013
127
10
18
Canada
I set up an account with mx.mailfish.de (tested it by sending an email to XXXXX@mailfish.de and it worked) and entered the settings under Settings as set out in the above post, however when I hover over jobs and hit smtp test I get:

"could not connect smtp-server mx.mailfish.de"

Am I running the wrong test? I haven't receive any emails from napp-it.

auto-15 error:

info: could not connect smtp-server mx.mailfish.de error
 
Last edited:

gea

Well-Known Member
Dec 31, 2010
3,163
1,195
113
DE
I set up an account with mx.mailfish.de (tested it by sending an email to XXXXX@mailfish.de and it worked) and entered the settings under Settings as set out in the above post, however when I hover over jobs and hit smtp test I get:

"could not connect smtp-server mx.mailfish.de"

Am I running the wrong test? I haven't receive any emails from napp-it.

auto-15 error:

info: could not connect smtp-server mx.mailfish.de error
I tried it some days ago and it worked.
Can you ping to the mailserver or use the ip 78.46.74.82
Are you using regular mail on port 25?
 

yu130960

Member
Sep 4, 2013
127
10
18
Canada
I tried it some days ago and it worked.
Can you ping to the mailserver or use the ip 78.46.74.82
Are you using regular mail on port 25?
Here is the ping results from the OmniOS (via putty)

root@OmniOS:~# ping 78.46.74.82
78.46.74.82 is alive
root@OmniOS:~# ping mx.mailfish.de
mx.mailfish.de is alive

Where do I specify the port number?

Edit: I am starting to think my ISP is blocking port 25.

I have now confirmed that my ISP no longer allows port 25 and they are telling me that they won't even let me use their servers on port 25.

Is there a write up anywhere on getting hotmail.com or gmail.com email alerst working on OmniOS napp-it??

Greatly appreciated.

EDIT2 : I read this at the bottom of the readme in napp-it
# setup TLS in OmniOS
not yet running:
- Please share insights

#step 1: net-ssleay on OmniOS
pkg set-publisher -g http://pkg.omniti.com/omniti-perl perl.omniti.com
pkg install net-ssleay


Does this mean that gmail is not working yet under OmniOS?? I have tried everything and can't get a solution to getting email alerts.
 
Last edited:

gea

Well-Known Member
Dec 31, 2010
3,163
1,195
113
DE
Here is the ping results from the OmniOS (via putty)


Does this mean that gmail is not working yet under OmniOS?? I have tried everything and can't get a solution to getting email alerts.
TLS mail is not installed on a default napp-it setup and this is not a supported option.
But you can use TLS (gmail) after you manually install the needed modules and set job-email to TLS
(It is a little bit complicated to setup)

see napp-it // webbased ZFS NAS/SAN appliance for OmniOS, OpenIndiana and Solaris downloads (bottom of page)
 

yu130960

Member
Sep 4, 2013
127
10
18
Canada
I didn't find it that complicated, but the information was kind of scattered. Here is what I did:

1. Log into your OmniOS server via SSH and switch to root

2. Type
Code:
pkg publisher
to see which publishers you have.

3. Add some additional publishers (not sure the first one is required)

Code:
pkg set-publisher -g http://pkg.omniti.com/omniti-ms/ ms.omniti.com
Code:
pkg set-publisher -g http://pkg.omniti.com/omniti-perl/ perl.omniti.com

4. Install Net:SSLeay using
Code:
pkg install net-ssleay
5. Access CPAN using
Code:
perl -MCPAN -e shell
and answer yes when it asks if it should try to configure as much as possible by itself

6. At the CPAN prompt, enter
Code:
install Net::SMTP::TLS
and answer all questions with the default answer.

7. After step 6 finishes, type
Code:
install CPAN
and then
Code:
reload CPAN
8. Exit the CPAN prompt by typing
Code:
exit
9. Follow what Pat said to install older version of IO::Socket::SSL:

Code:
wget http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/IO-Socket-SSL-1.68.tar.gz
tar xzvf IO-Socket-SSL-1.68.tar.gz
cd IO-Socket-SSL-1.68
perl Makefile.PL
make
make install
10. In the napp-it web UI, hover over napp-it in the top menu and select Settings

11. Scroll down to Email Notifications and fill in the following settings:

SMTP Mailserver: smtp.gmail.com
SMTP User: your_email@gmail.com
SMTP Password: your_password
Mailto/Mail From is optional and is up to you to decide

13. Click Submit to save the changes and hover over Jobs in the top menu, TLS Email and click smtp-test to verify your mail settings.

14. After you have verified that test emails are being sent, alerts and logs can be configured under TLS Email with alert and status, respectively.

The above info came from the following sites:

Configuring napp-it to send email alerts through Gmail | loadingsysadmin

napp-it // webbased ZFS NAS/SAN appliance for OmniOS, OpenIndiana and Solaris downloads

Reviews by WebHostingZone - Nagios Exchange
 
Last edited:

gea

Well-Known Member
Dec 31, 2010
3,163
1,195
113
DE
I didn't find it that complicated, but the information was kind of scattered. Here is what I did...
Thank you,
very good sumary

I will link this page to the OmniOS download page and the TLS help page
 

cw823

Active Member
Jan 14, 2014
414
189
43
Napp-it gives me a long message that starts with Can't locate Net/SSLeay.PM in @INC....... when I follow the above steps
 

manxam

Active Member
Jul 25, 2015
234
50
28
Napp-it gives me a long message that starts with Can't locate Net/SSLeay.PM in @INC....... when I follow the above steps
@cw823: This is a 3 year old thread and I assume much has changed since then. Having recently setup TLS on my napp-it installation, I followed this:

napp-it // webbased ZFS NAS/SAN appliance for OmniOS, OpenIndiana, Solaris and Linux : Downloads

As a note, I find Napp-it really good at providing instructions for most things. Either internally or with URLs to resources. The above link is listed on the TLS setup screen in Napp-it as a pre-requisite.