Matty9191 / ssl-cert-check

Send notifications when SSL certificates are about to expire.
GNU General Public License v2.0
719 stars 285 forks source link

Send single email #85

Open somecallmemike opened 4 years ago

somecallmemike commented 4 years ago

Is it possible for this script to send a single email as opposed to an individual email per warning?

Glandos commented 4 years ago

Duplicates of #35

somecallmemike commented 4 years ago

Can this be added as a feature request? We're trying to reduce alert emails in our organization and would like to use your tool as it functions excellently, but really only need a single email per day that summarizes all the warnings and expiries.

moerkey commented 4 years ago

+1 please

dileepbg commented 4 years ago

Emails are not getting trigerred for me. Using below command. ./ssl-cert-check -a -f ssldomains -x 70 -E dileepbg7@gmail.com -e dileepbg7@gmail.com

Can anyone help me if I have to make any other changes to receive email.

voice1 commented 3 years ago

@dileepbg Before you go any further you should verify that you are able to send email from your host.

mailx -s "Test mail" your@email.net < ssldomains

Where your@email.net is your email, and ssldomains is the ssldomains file. or any file you are safe sending.

The mailx program will not be enough to send email you will need to have configured your email services (postifx, exim4, etc) to send email. (probably easiest to send it to a smarthost and authenticate) A google search for smarthost and your installed MTA will turn up several pages of howto's.

Another option would be to use a mailer service such as mailgun.

Hope that helps

moerkey commented 3 years ago

Emails are not getting trigerred for me. Using below command. ./ssl-cert-check -a -f ssldomains -x 70 -E dileepbg7@gmail.com -e dileepbg7@gmail.com

Can anyone help me if I have to make any other changes to receive email.

Off topic.

moerkey commented 3 years ago

@dileepbg Before you go any further you should verify that you are able to send email from your host.

mailx -s "Test mail" your@email.net < ssldomains

Where your@email.net is your email, and ssldomains is the ssldomains file. or any file you are safe sending.

The mailx program will not be enough to send email you will need to have configured your email services (postifx, exim4, etc) to send email. (probably easiest to send it to a smarthost and authenticate) A google search for smarthost and your installed MTA will turn up several pages of howto's.

Another option would be to use a mailer service such as mailgun.

Hope that helps

Off topic.