mail notifications

Subhendu Ghosh sghosh at sghosh.org
Fri Aug 23 06:07:46 CEST 2002


Write a perl script that talks directly to your ISP's smtp server rather 
than relying on the local MTA/MUA interface.

Should be simple with Net::SMTP module.  See the sample app in pod.

-sg

On Thu, 22 Aug 2002 todd.jones at weirslurry.com wrote:

> I'm not sure I understand how sending my Email to my Internet gateway would
> be of any help.  My Internet gateway is not a device which can relay mail
> to the Internet.  Please let me know if I have misunderstood.
> 
> My plan is to use the nagios box as an smtp server.  If this box was on the
> Internet, I believe this would be moot.  However, it is not and cannot be
> on the Internet.
> 
> I'm trying to have the Email notifications going from the nagios box go out
> as being from 'nagios at tds.net'.  I know this will work out fine, if I can
> figure out how to do it as I've sent Email from an smtp client in this
> manner successfully.
> 
> Regards,
> 
> Todd Jones
> Network Administrator
> Weir Slurry
> 608.221.5805 phone
> ----- Forwarded by Todd E Jones/US/WAR/Weir on 08/22/2002 01:14 PM -----
>                                                                                                                  
>                     Memo From:                                                                                   
>                     Aleksey                                From loehmanns.com                                    
>                     Domorad              To:     "'todd.jones at weirslurry.com'" <todd.jones at weirslurry.com>       
>                     <Aleksey at loehm       cc:                                                                     
>                     anns.com>            Subject:     RE: [Nagios-users] mail notifications                      
>                                                                                                                  
>                     Sent:                                                                                        
>                     08/22/2002                                                                                   
>                     01:01 PM                                                                                     
>                                                                                                                  
>                                                                                                                  
> 
> 
> 
> 
> Does your corporate network has a Firewall or similar gateway to the
> internet. If you do have a FireWall then just route your Email to that
> Firewall and use your Nagios box as SMTP server
> 
> This is what I do at my place
> 
> -----Original Message-----
> From: todd.jones at weirslurry.com [mailto:todd.jones at weirslurry.com]
> Sent: Thursday, August 22, 2002 10:45 AM
> To: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] mail notifications
> 
> 
> This is not really a possibility due to my scenario.  The nagios box is not
> on the Internet, and therefore, does not have an Internet DNS MX record.  I
> cannot relay off my corporate Email.  This is also not desirable, as I
> would
> like to be able to monitor the corporate Email server and cannot receive
> notifications via my cell phone Email account to which I am sending if the
> Email server would be down.
> 
> What I can do is send an Email from a client on the nagios box to my isp's
> smtp server as nagios at tds.net (my isp is tds).  This Email is properly
> routed to my cell phone Email address.  I'm not sure of a better way to
> handle this at this point.
> 
> Regards,
> 
> Todd Jones
> Network Administrator
> Weir Slurry
> 608.221.5805 phone
> ----- Forwarded by Todd E Jones/US/WAR/Weir on 08/22/2002 09:41 AM -----
> 
> 
>                     Memo From:
> 
>                     Terry Simons                           From mac.com
> 
>                     <galimore at mac.       To:     Demetri Mouratis
> <dmourati at cm.math.uiuc.edu>
>                     com>                 cc:     todd.jones at weirslurry.com,
> nagios-users at lists.sourceforge.net
>                                          Subject:     Re: [Nagios-users]
> mail notifications
>                     Sent:
> 
>                     08/20/2002
> 
>                     08:31 PM
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Uh...
> 
> Try forcing your SMTP to send as "nagios at address"  Where address is your
> server's *real* IP address, or your server's DNS.
> 
> nagios at localhost is probably not a good idea.
> 
> localhost means "this computer" so maybe your ISP's mail server is thinking
> "This didn't come from me!!" and throwing it away.
> 
>   Just an idea.
> 
> - Terry
> 
> On Tuesday, August 20, 2002, at 06:28  PM, Demetri Mouratis wrote:
> 
> > What's the hostname on your Nagios box?  Is it in DNS?  Do you have a
> > smarthost setup or are you trying to send internet mail directly from
> > your Nagios box?
> >
> > I have a setup like this:
> >
> > Nagios box
> > Private IP
> > In Internal DNS
> > Smarhosts to corporate mail relay
> >
> > Corporate mail relay in external DNS
> > public IP
> >
> > Works just fine.
> >
> > On Tue, 20 Aug 2002 todd.jones at weirslurry.com wrote:
> >
> >> I am running nagios 1.05b on Redhat7.3.  I am having some issues
> >> getting nagios to send Email messages to an outside Email account.
> >>
> >> I've been working on the problem for some time and it has to do with
> >> the from field.  The from field shows up as nagios at localhost, and my
> >> isp's smtp
> >> server rejects this.  I've been working with Sendmail's masquerading
> >> feature to try to get it to work, but nothing seems to make it change.
> >>
> >> I do have a valid Email account of nagios with my isp.  Any
> >> experiences or help with this issue would be appreciated.
> >>
> >> Regards,
> >>
> >> Todd Jones
> >> Network Administrator
> >> Weir Slurry
> >> 608.221.5805 phone
> >>
> >>
> >>
> >> -------------------------------------------------------
> >> This sf.net email is sponsored by: OSDN - Tired of that same old cell
> >> phone?  Get a new here for FREE!
> >> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> >> _______________________________________________
> >> Nagios-users mailing list
> >> Nagios-users at lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/nagios-users
> >>
> >
> > ---------------------------------------------------------------------
> > Demetri Mouratis
> > dmourati at linfactory.com
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by: OSDN - Tired of that same old cell
> > phone?  Get a new here for FREE!
> > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> > _______________________________________________
> > Nagios-users mailing list
> > Nagios-users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-users
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old cell
> phone?
> Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> 

-- 




-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390




More information about the Users mailing list