Xymon Mailing List Archive search

hobbit email notifications with nullmailer

7 messages in this thread

list William Arlofski · Tue, 25 Mar 2008 16:10:22 -0400 ·
I have a system (Gentoo) running hobbit. I have installed the 4.20 with the all-in-one patch.

The system is using nullmailer as my preferred MTA. It is a very small, minimal qmail-like MTA run under daemontools.


/usr/sbin/sendmail is the 'wrapper' for email submissions, but it does not accept a subject on the command line (eg: -s "this is the subject") the way the sendmail does:

--[snip]--
# sendmail -h
sendmail: option -h requires a value.
usage: sendmail [flags] [recipients] <message
Nullmailer sendmail emulator
   -B          Ignored
   -b          Ignored
   -C          Ignored
   -d          Ignored
   -F          Set the full name of the sender
   -f          Set the envelope sender address
   -h          Ignored
   -i          Ignored
   -L          Ignored
   -m          Ignored
   -N          Ignored
   -n          Ignored
   -O          Ignored
   -o          Ignored
   -p          Ignored
   -q          Ignored
   -R          Ignored
   -r          An alternate and obsolete form of the -f flag
   -t          Read message for recipients
   -U          Ignored
   -V          Ignored
   -v          Ignored
   -X          Ignored

   -h, --help  Display this help and exit
--[snip]--

It requires that the email message being sent to (through?) it contains a "Subject:" line in the header.

Without me changing to another MTA, is there a way to tell hobbit that this is what I need? Changing would be OK if that was the only way forme to get hobbit to send me notifications.

Thanks!

--
Bill Arlofski
Reverse Polarity, LLC
list Bill Arlofski · Tue, 25 Mar 2008 16:14:30 -0400 ·
I have a system (Gentoo) running hobbit. I have installed the 4.20 with the all-in-one patch.

The system is using nullmailer as my preferred MTA. It is a very small, minimal qmail-like MTA run under daemontools.


/usr/sbin/sendmail is the 'wrapper' for email submissions, but it does not accept a subject on the command line (eg: -s "this is the subject") the way the sendmail does:

--[snip]--
# sendmail -h
sendmail: option -h requires a value.
usage: sendmail [flags] [recipients] <message
Nullmailer sendmail emulator
   -B          Ignored
   -b          Ignored
   -C          Ignored
   -d          Ignored
   -F          Set the full name of the sender
   -f          Set the envelope sender address
   -h          Ignored
   -i          Ignored
   -L          Ignored
   -m          Ignored
   -N          Ignored
   -n          Ignored
   -O          Ignored
   -o          Ignored
   -p          Ignored
   -q          Ignored
   -R          Ignored
   -r          An alternate and obsolete form of the -f flag
   -t          Read message for recipients
   -U          Ignored
   -V          Ignored
   -v          Ignored
   -X          Ignored

   -h, --help  Display this help and exit
--[snip]--

It requires that the email message being sent to (through?) it contains a "Subject:" line in the header.

Without me changing to another MTA, is there a way to tell hobbit that this is what I need? Changing would be OK if that was the only way forme to get hobbit to send me notifications.

Thanks!

-- 
Bill Arlofski
Reverse Polarity, LLC
list Galen Johnson · Tue, 25 Mar 2008 16:32:51 -0400 ·
Use an alert script instead...there was a question earlier today that pointed to a page on The Shire...

=G=
quoted from Bill Arlofski

-----Original Message-----
From: Bill Arlofski [mailto:user-0b8af203a56e@xymon.invalid]
Sent: Tuesday, March 25, 2008 4:15 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] hobbit email notifications with nullmailer


I have a system (Gentoo) running hobbit. I have installed the 4.20 with
the all-in-one patch.

The system is using nullmailer as my preferred MTA. It is a very small,
minimal qmail-like MTA run under daemontools.


/usr/sbin/sendmail is the 'wrapper' for email submissions, but it does
not accept a subject on the command line (eg: -s "this is the subject")
the way the sendmail does:

--[snip]--
# sendmail -h
sendmail: option -h requires a value.
usage: sendmail [flags] [recipients] <message
Nullmailer sendmail emulator
   -B          Ignored
   -b          Ignored
   -C          Ignored
   -d          Ignored
   -F          Set the full name of the sender
   -f          Set the envelope sender address
   -h          Ignored
   -i          Ignored
   -L          Ignored
   -m          Ignored
   -N          Ignored
   -n          Ignored
   -O          Ignored
   -o          Ignored
   -p          Ignored
   -q          Ignored
   -R          Ignored
   -r          An alternate and obsolete form of the -f flag
   -t          Read message for recipients
   -U          Ignored
   -V          Ignored
   -v          Ignored
   -X          Ignored

   -h, --help  Display this help and exit
--[snip]--

It requires that the email message being sent to (through?) it contains
a "Subject:" line in the header.

Without me changing to another MTA, is there a way to tell hobbit that
this is what I need? Changing would be OK if that was the only way forme
to get hobbit to send me notifications.

Thanks!

--
Bill Arlofski
Reverse Polarity, LLC
list Asif Iqbal · Tue, 25 Mar 2008 17:33:51 -0400 ·
That is funny cuz I use nullmailer too and I have this in my
hobbitserver.cfg file

MAIL="mailx -r user-31f70260d2a9@xymon.invalid -s"

And I do get subjects
quoted from Bill Arlofski


On Tue, Mar 25, 2008 at 4:14 PM, Bill Arlofski <user-0b8af203a56e@xymon.invalid> wrote:
 I have a system (Gentoo) running hobbit. I have installed the 4.20 with
 the all-in-one patch.

 The system is using nullmailer as my preferred MTA. It is a very small,
 minimal qmail-like MTA run under daemontools.


 /usr/sbin/sendmail is the 'wrapper' for email submissions, but it does
 not accept a subject on the command line (eg: -s "this is the subject")
 the way the sendmail does:

 --[snip]--
 # sendmail -h
 sendmail: option -h requires a value.
 usage: sendmail [flags] [recipients] <message
 Nullmailer sendmail emulator
   -B          Ignored
   -b          Ignored
   -C          Ignored
   -d          Ignored
   -F          Set the full name of the sender
   -f          Set the envelope sender address
   -h          Ignored
   -i          Ignored
   -L          Ignored
   -m          Ignored
   -N          Ignored
   -n          Ignored
   -O          Ignored
   -o          Ignored
   -p          Ignored
   -q          Ignored
   -R          Ignored
   -r          An alternate and obsolete form of the -f flag
   -t          Read message for recipients
   -U          Ignored
   -V          Ignored
   -v          Ignored
   -X          Ignored

   -h, --help  Display this help and exit
 --[snip]--

 It requires that the email message being sent to (through?) it contains
 a "Subject:" line in the header.

 Without me changing to another MTA, is there a way to tell hobbit that
 this is what I need? Changing would be OK if that was the only way forme
 to get hobbit to send me notifications.

 Thanks!

 --
 Bill Arlofski
 Reverse Polarity, LLC

 
-- 

Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Henrik Størner · Tue, 25 Mar 2008 22:34:46 +0100 ·
quoted from Bill Arlofski
On Tue, Mar 25, 2008 at 04:14:30PM -0400, Bill Arlofski wrote:
/usr/sbin/sendmail is the 'wrapper' for email submissions, but it does not 
accept a subject on the command line (eg: -s "this is the subject") the way 
the sendmail does:
Hobbit doesn't invoke sendmail directly, at least not with the default
configuration. Hobbit calls the command defined via the MAIL and MAILC
settings in hobbitserver.cfg to send e-mail, this is typically the
"mail" or "mailx" programs.

They in turn will probably invoke sendmail. However, if running the
standard "mail" utility fails, then IMNSHO you have more severe mail 
problems with your setup than just Hobbit.

You should probably look at writing a small wrapper around your mail
system that support sending e-mail with a subject on the command line,
and then point the MAIL and MAILC settings in Hobbit to that wrapper.


Regards,
Henrik
list Bill Arlofski · Tue, 25 Mar 2008 17:45:55 -0400 ·
quoted from Asif Iqbal
Asif Iqbal wrote:
That is funny cuz I use nullmailer too and I have this in my
hobbitserver.cfg file

MAIL="mailx -r user-31f70260d2a9@xymon.invalid -s"

And I do get subjects

Right, but mailx is not part of the gentoo nullmailer package. mailx is
part of the mail-client/mailx package. perhaps Just installing this
along with nullmailer I'd be A-OK.

Dang! Too bad my custom hobbit-email-notify.sh script is just getting
its finishing touches!  :(

If I am unhappy with my script results, then I'll try the mailx route.
Thanks!
quoted from Bill Arlofski

On Tue, Mar 25, 2008 at 4:14 PM, Bill Arlofski <user-0b8af203a56e@xymon.invalid> wrote:
 I have a system (Gentoo) running hobbit. I have installed the 4.20 with
 the all-in-one patch.

 The system is using nullmailer as my preferred MTA. It is a very small,
 minimal qmail-like MTA run under daemontools.


 /usr/sbin/sendmail is the 'wrapper' for email submissions, but it does
 not accept a subject on the command line (eg: -s "this is the subject")
 the way the sendmail does:

 --[snip]--
 # sendmail -h
 sendmail: option -h requires a value.
 usage: sendmail [flags] [recipients] <message
 Nullmailer sendmail emulator
   -B          Ignored
   -b          Ignored
   -C          Ignored
   -d          Ignored
   -F          Set the full name of the sender
   -f          Set the envelope sender address
   -h          Ignored
   -i          Ignored
   -L          Ignored
   -m          Ignored
   -N          Ignored
   -n          Ignored
   -O          Ignored
   -o          Ignored
   -p          Ignored
   -q          Ignored
   -R          Ignored
   -r          An alternate and obsolete form of the -f flag
   -t          Read message for recipients
   -U          Ignored
   -V          Ignored
   -v          Ignored
   -X          Ignored

   -h, --help  Display this help and exit
 --[snip]--

 It requires that the email message being sent to (through?) it contains
 a "Subject:" line in the header.

 Without me changing to another MTA, is there a way to tell hobbit that
 this is what I need? Changing would be OK if that was the only way forme
 to get hobbit to send me notifications.

 Thanks!

 --
 Bill Arlofski
 Reverse Polarity, LLC

 
list Bill Arlofski · Tue, 25 Mar 2008 17:49:22 -0400 ·
quoted from Henrik Størner
Henrik Stoerner wrote:
On Tue, Mar 25, 2008 at 04:14:30PM -0400, Bill Arlofski wrote:
/usr/sbin/sendmail is the 'wrapper' for email submissions, but it does not accept a subject on the command line (eg: -s "this is the subject") the way the sendmail does:
Hobbit doesn't invoke sendmail directly, at least not with the default
configuration. Hobbit calls the command defined via the MAIL and MAILC
settings in hobbitserver.cfg to send e-mail, this is typically the
"mail" or "mailx" programs.
Right. I should have mentioned that I had already edited that file.
Sorry for not being as complete as I normally try to be when describing
an issue.
quoted from Henrik Størner
They in turn will probably invoke sendmail. However, if running the
standard "mail" utility fails, then IMNSHO you have more severe mail problems with your setup than just Hobbit.
I hear you... But due to my lacking description of the problem, I may
have led you to think more is wrong than actually is. :)
quoted from Henrik Størner
You should probably look at writing a small wrapper around your mail
system that support sending e-mail with a subject on the command line,
and then point the MAIL and MAILC settings in Hobbit to that wrapper.
Yes, thank you. That was pointed out to me in a recent post, and I just
finished a custom script. Also, it looks like installing the mailx
package on top of the nullmailer package seems to also be an option from
a previous post.

Thanks again.
Regards,
Henrik