Re: [Nagios-users] Sending as specific email address

2007-02-07 Thread Jason Little
I ended up using generics in sendmail since I didn't want the whole box
sending out like that just the nagios user.  Thanks for the help.

Jason

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy
Shellam (Mailing Lists)
Sent: Wednesday, February 07, 2007 11:37 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Sending as specific email address

Peter L. Berghold wrote:
> Unless totally misunderstand the issue this is more of a MTA 
> configuration issue than a Nagios issue.
>
>   

FYI

If you are using Exim as your MTA like me, you need to set your Nagios user
as a "trusted user" - then as long as you have a "From:" header in your
e-mail, Exim will send the e-mail out as if it came from that address.

If Nagios isn't a trusted user, the e-mail will look to have come from
"nagios@."


Regards,

Andy.



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Sending as specific email address

2007-02-07 Thread Andy Shellam (Mailing Lists)
Peter L. Berghold wrote:
> Unless totally misunderstand the issue this is more of a MTA
> configuration issue than a Nagios issue.
>
>   

FYI

If you are using Exim as your MTA like me, you need to set your Nagios 
user as a "trusted user" - then as long as you have a "From:" header in 
your e-mail, Exim will send the e-mail out as if it came from that address.

If Nagios isn't a trusted user, the e-mail will look to have come from 
"nagios@."


Regards,

Andy.



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Sending as specific email address

2007-02-07 Thread Josh Yost
Jason Little wrote:
> Yesterday the blackberry servers stopped accepting all my nagios alerts
> because nagios sends out as [EMAIL PROTECTED] and the blackberry
> servers complain that servername.domainname does not exist and gives me a
> data format error.  Is there a way to set it so that nagios sends out as a
> specific email address?
> 

You can set your hostname on the machine, so it's a valid FQDN.  Or you
can re-write the address as it goes out.  I don't know what you're
using, but it's pretty easy to do in Postfix:

http://www.postfix.org/ADDRESS_REWRITING_README.html

Good luck,
- Josh

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Sending as specific email address

2007-02-07 Thread Peter L. Berghold
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jason Little wrote:
>  Is there a way to set it so that nagios sends out as a
> specific email address?
> 
> 

Unless totally misunderstand the issue this is more of a MTA
configuration issue than a Nagios issue.

Assuming sendmail for a moment is the MTA on the machine that you are
sending the pages from there is a setting in the sendmail.cf file called
"Masquerading as" that you can set to a domain to masquerade all email
addresses to. So, in the case of your return email address that I note
above you would set the line that starts with

DM

in sendmail.cf to read

DMmintcommerce.com

and restart sendmail. This way any email that gets sent from that
machine gets its return address re-written to be [EMAIL PROTECTED]
which will silence the complaint from the blackberry server.

If you are using some other MTA then you have to follow suit with
whatever the configuration requirements are for that MTA.


- --

Peter L. Berghold [EMAIL PROTECTED]
"Those who fail to learn from history are condemned to repeat it."
AIM: redcowdawgYahoo IM: blue_cowdawg  ICQ: 11455958
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org

iD8DBQFFyfrFUM9/01RIhaARAqdLAJ9gT4Qpo4/2eB2+MYqKIkSOOZNvYACgu/rg
1IK+87nxzBrBRN1wmrrtyqI=
=RNsK
-END PGP SIGNATURE-
begin:vcard
fn:Peter  L. Berghold
n:Berghold;Peter 
org:IBM;GSD
email;internet:[EMAIL PROTECTED]
title:Unix Specialist
tel;work:(732) 918-1487
tel;fax:(732) 982-1632
x-mozilla-html:FALSE
url:http://www.berghold.net
version:2.1
end:vcard

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Sending as specific email address

2007-02-07 Thread Jason Little
Yesterday the blackberry servers stopped accepting all my nagios alerts
because nagios sends out as [EMAIL PROTECTED] and the blackberry
servers complain that servername.domainname does not exist and gives me a
data format error.  Is there a way to set it so that nagios sends out as a
specific email address?

Jason Little
Network Administrator
Mint Inc 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc Powell
Sent: Wednesday, February 07, 2007 9:58 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Mail throughput plugin



> -Original Message-
> From: mario [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 07, 2007 8:43 AM
> To: Marc Powell
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Mail throughput plugin
> 


> The check_email_loop.pl.rej and the patched check_email_loop script is 
> attached.
> 

No but it looks like there are other differences in the file than my
original other than changes my patch created. Attached is the full file I
have.

--

marc



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null