Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
rishrapsody1612
Contributor

Steps to use sendmail in SmartTask Script

Can someone please guide me with the steps to setup sendmail(or internal_sendmail) and use bash script to trigger email with SmartTask event(Post-publish event)

The script should send the session json payload in the email body.

With sendmail - I am not able to find the place which records the source auth details.

0 Kudos
5 Replies
PhoneBoy
Admin
Admin

As I recall the built-in “sendmail” command is fairly simplistic with a few items specified as parameters.
One SK that might help: https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solut...

0 Kudos
rishrapsody1612
Contributor

Thanks.

Can 'From' mail-id be anything? No need to specify Authentication key?

Can I use google smtp server 'smtp.gmail.com' or does it have to be internal?

0 Kudos
rishrapsody1612
Contributor

[Expert@Mgmt:0]# $FWDIR/bin/sendmail -t smtp.gmail.com -m test
[Expert@Mgmt:0]# echo $FWDIR
/opt/CPsuite-R81.10/fw1
[Expert@Mgmt:0]# which sendmail
/sbin/sendmail
[Expert@Mgmt:0]# /sbin/sendmail -t smtp.gmail.com -m test

sendmail: account default not found: no configuration file available
[Expert@Mgmt:0]# which sendmail
/sbin/sendmail

 

[Expert@Mgmt:0]# cat test
root@checkpoint.com
validuser@gmail.com
Subject
Test Body

0 Kudos
G_W_Albrecht
Legend
Legend

As written above - gmail  can not work, you need an internal server (relay is much too ugly).

CCSE CCTE CCSM SMB Specialist
0 Kudos
Chris_Atkinson
Employee Employee
Employee

I don't think it will work if Gmail requires authentication.

Typical use case would point to an internal SMTP relay.

CCSM R77/R80/ELITE
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events