torquemonster
MIS
Hi all,
I'm trying to use the 'mail' program to notify me (& a couple other admins) of the output of a cron job, but I've not found out how to specify the IP address of the server that we use to route mail internally. The command I'm using is:
[tt]echo <foo> | mail -s "Output from <bar>" admin(a)domain.com[/tt]
where 'foo' is the output from the 'bar' script.
Oddly enough, mail goes out just fine to external addresses, but appears to go straight to /dev/null when I try to specify an address internal to the company... There's no indication that anything's wrong when I attempt to send to internal addresses, in fact, the command returns '0' when I check it's output (echo $?)...
I've tried reading the 'mail' man page (which references the "Mail Reference Manual", but didn't see how to check/specify the mail gateway, and I've not had much luck finding the "Mail Reference Manual"... The mail.rc file provided no clues, nor did I find a .mailrc file in any user's home directory... Anyone?
Thanks in advance,
T.
I'm trying to use the 'mail' program to notify me (& a couple other admins) of the output of a cron job, but I've not found out how to specify the IP address of the server that we use to route mail internally. The command I'm using is:
[tt]echo <foo> | mail -s "Output from <bar>" admin(a)domain.com[/tt]
where 'foo' is the output from the 'bar' script.
Oddly enough, mail goes out just fine to external addresses, but appears to go straight to /dev/null when I try to specify an address internal to the company... There's no indication that anything's wrong when I attempt to send to internal addresses, in fact, the command returns '0' when I check it's output (echo $?)...
I've tried reading the 'mail' man page (which references the "Mail Reference Manual", but didn't see how to check/specify the mail gateway, and I've not had much luck finding the "Mail Reference Manual"... The mail.rc file provided no clues, nor did I find a .mailrc file in any user's home directory... Anyone?
Thanks in advance,
T.