Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Two mail questions

Status
Not open for further replies.

bcre3306

MIS
May 7, 2002
45
US
The first one I know has a ton a posts but I still can't get it to work. I'm trying to get my AIX box to be able to send mail to my exchange 5.5 account. Here's the details.
I can ping my exchange box by name
I tried editing my sendmail.cf file according to previous post but no luck.
Let's call my exchange box "exch", my AIX box called "unix", and my exchange mail account "mailer@tester.com"


Second problem:

I am writing a shell script to do something but the only problem I'm having it having the script send me mail if something goes wrong in the mail. I entered in mail -s "problem" root but it just hangs at that. I can I make it finish the message and send it.

Any help would be appreciated.
Thanks
Brian
 
I think mail is waiting on input. Tried redirecting a file into it? I think it is something like `mail -s subject root < msgfile` but you can also use a pipe if I remember correctly: `ls | mail -s subject root`. Check Ye Olde Man Page.
 
That fixed the second problem! Thanks alot. Any idea on the first one?
Brian
 
Ah, no. The sheer size of the sendmail book scared me away. Sorry! If I had to guess, I'd say Exchange is wrong.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top