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
Use an alert script instead...there was a question earlier today that pointed to a page on The Shire...
=G=
-----Original Message----- From: Bill Arlofski [mailto:waa-hobbitml at revpol.com] Sent: Tuesday, March 25, 2008 4:15 PM To: hobbit at hswn.dk 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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
That is funny cuz I use nullmailer too and I have this in my hobbitserver.cfg file
MAIL="mailx -r hobbit at server.com -s"
And I do get subjects
On Tue, Mar 25, 2008 at 4:14 PM, Bill Arlofski <waa-hobbitml at revpol.com> 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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
Asif Iqbal wrote:
That is funny cuz I use nullmailer too and I have this in my hobbitserver.cfg file
MAIL="mailx -r hobbit at server.com -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!
On Tue, Mar 25, 2008 at 4:14 PM, Bill Arlofski <waa-hobbitml at revpol.com> 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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
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.
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. :)
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
participants (4)
-
Galen.Johnson@sas.com
-
henrik@hswn.dk
-
vadud3@gmail.com
-
waa-hobbitml@revpol.com