CPUG

The Check Point User Group

A Resource For The Check Point Community.  Fast.  Useful.  Independent.

1. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting 12/8, (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3.
2. Join Us On LinkedIn - We now have a CPUG group.


Go Back   CPUG: The Check Point User Group > Check Point Firewall-1/VPN-1 And Related Products > SmartDashboard
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2007-12-17
Junior Member
 
Join Date: 2006-11-30
Posts: 29
Rep Power: 0
kidem has an average reputation (10+)
Default Alerts: Via SMTP

Im trying to get the smtp alert to work and cant seem to get it, in global properties i have under logs and alerts >SMTP > sendmail -s Alert user@domain.com i test it and its not working any ideas?

Last edited by kidem; 2007-12-17 at 06:41.
Reply With Quote
  #2 (permalink)  
Old 2007-12-17
Member
 
Join Date: 2006-10-27
Location: MA, USA
Posts: 44
Rep Power: 0
cpcpc has an average reputation (10+)
Default Re: Alerts: Via SMTP

Take a look at the help info. Your syntax looks incorrect. You need to know your mailserver...

internal_sendmail [-s subject] -t mailserver [-f sender_email] recipient_email [recipient_email ...]
Reply With Quote
  #3 (permalink)  
Old 2007-12-17
Junior Member
 
Join Date: 2006-11-30
Posts: 29
Rep Power: 0
kidem has an average reputation (10+)
Default Re: Alerts: Via SMTP

OK i did look at the help and yes it was wrong, but i changed it and still nothing, i SSH to the smartcenter box and go to expert mode and try sendmail that way, it gives a 0 at the end then go back to command prompt any idea? Would this be a problem since the fwsrv isnt part of our domain:?
Reply With Quote
  #4 (permalink)  
Old 2007-12-17
Member
 
Join Date: 2006-10-27
Location: MA, USA
Posts: 44
Rep Power: 0
cpcpc has an average reputation (10+)
Default Re: Alerts: Via SMTP

Quote:
Originally Posted by kidem View Post
OK i did look at the help and yes it was wrong, but i changed it and still nothing, i SSH to the smartcenter box and go to expert mode and try sendmail that way, it gives a 0 at the end then go back to command prompt any idea? Would this be a problem since the fwsrv isnt part of our domain:?
it works perfectly for me:

internal_sendmail -s MailAlert -t a.b.c.d <me@company.com>

Can you ping your mailserver from your fw environment?
Reply With Quote
  #5 (permalink)  
Old 2007-12-18
Junior Member
 
Join Date: 2006-11-30
Posts: 29
Rep Power: 0
kidem has an average reputation (10+)
Default Re: Alerts: Via SMTP

Yes i can ping it, but still nothing... Did you enable anything on your mail server for this and is the smartcenter box a member of your domain?
Reply With Quote
  #6 (permalink)  
Old 2007-12-18
Member
 
Join Date: 2006-10-27
Location: MA, USA
Posts: 44
Rep Power: 0
cpcpc has an average reputation (10+)
Default Re: Alerts: Via SMTP

Quote:
Originally Posted by kidem View Post
Yes i can ping it, but still nothing... Did you enable anything on your mail server for this and is the smartcenter box a member of your domain?
Nope, mail server is company's mail server, I cannot do anything about it.

And nope, I didn't even set domain on my management server.
Reply With Quote
  #7 (permalink)  
Old 2007-12-21
Senior Member
 
Join Date: 2006-04-30
Location: Europe, Germany
Posts: 151
Rep Power: 3
dsb.nepo has an average reputation (10+)
Default Re: Alerts: Via SMTP

test if you can send a mail via command line/telnet, and you will see the reason.
red: the part you have to type
blue: possible answer from the server

Quote:
# telnet your.mail.gate 25
Trying your.mail.gate...
Connected to your.mail.gate.
Escape character is '^]'.
220 your.mail.gate ESMTP
EHLO my.fw.mgmt
250-your.mail.gate
[...]

mail from: <you@your.domain>
250 2.1.0 Ok
rcpt to: <you@your.domain>
554 5.7.1 <you@your.domain>: Relay access denied
quit
221 2.0.0 Bye
Connection closed by foreign host.
if you found the error/valid addresses/parameters test with this command
Quote:
echo hello | sendmail -s 'test from command line' -t your.mail.gate -f splat@accepted.mail.address you@accepted.mail.address
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -7. The time now is 13:44.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0