Re: hwo to send notifcition to Exchange server
- From: bcao@xxxxxxxxxxxxx
- Date: 10 Apr 2007 01:38:45 -0700
"Mark Hansen 写道:
"
On 04/09/07 11:07, bcao@xxxxxxxxxxxxx wrote:
We have a linux box which have some applications running on the
server, also we had an Exchange server to handle the emails.
Now, we wanna this linux box can send warnning emails to the Exchange
server and then end users will get the alert when the applications on
the linux box went wrong.
My linux box is Redhat enterprise version ES 4.0. In this box, I had
find the sendmail in the /usr/sbin/ directory. also, in the ps -ef|
grep mail, it says the sendmail is listenning to connection.
but I cannot telnet to the 25 port.
This is because sendmail comes configured to accept connections
from the local interface only. If you run a shell on the linux
machine, and telnet from there, as in:
telnet localhost 25
it will probably accept the connection.
You can change the sendmail configuration so that it will accept
connections from it's external interface as well, but I don't think
that's what you want.
so I run /usr/sbin/sendmail -bd -
q10m, and cannot telnet to that 25 port still.
That should have failed with an error that it was not able to bind
to port 25 (because the sendmail daemon is allready running on that
port).
is that means the
sendmail is not up or not installed in this box by default
installation of Linux? if not installed, why comes up /usr/sbin/
sendmail?
I think what you want to do is create an e-mail alias on your exchange
server box that represents all the people that should get the e-mail
message. Then, on the linux box, you can just use /usr/lib/sendmail to
send the e-mail message. See the man page for sendmail. For example:
/usr/lib/sendmail -t <<EOF
To: recipient e-mail address list
Subject: This is the mail subject
Cc: carbon-copy e-mail list
This is the e-mail body.
EOF
that's pretty good!, it worked in my linux box today with your way.
but it only worked with root user, other users, even with root
permission, cannot send emails to the exchange server. each time when
those users sent emails out, it will say there's a dead.letter to his
mail box.
The above uses a shell 'here' document to send the text of the mail
message to 'sendmail', using it as a client.
also, I tried the 'mail' command, it said nothing wrong. but I did not
get the mail from my Exchange mail box.
Well, this is a different issue. If you want the e-mail stored on your
exchange server to be delivered to your Linux machine, you'll need to
use some type of delivery agent, like fetchmail. Fetchmail can be
configured to get the e-mail from a remote server, and deliver it to
your local machine.
Nope, I just wanna Liunx box to send emails out to the Exchange server
(in the same LAN), and then Exchange clients can receive these
emails.
thanks
Bruce
.
- References:
- hwo to send notifcition to Exchange server
- From: bcao
- Re: hwo to send notifcition to Exchange server
- From: Mark Hansen
- hwo to send notifcition to Exchange server
- Prev by Date: Re: max message size.
- Next by Date: Resend mails after "Service unavailable"
- Previous by thread: Re: hwo to send notifcition to Exchange server
- Next by thread: max message size.
- Index(es):
Relevant Pages
|