Re: hwo to send notifcition to Exchange server




"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


.



Relevant Pages

  • smarttab questions and usage #13539
    ... about 10 individuals subscribed to getting these 4000+ emails. ... I want to intercept (using sendmail) all the messages ... folder on our exchange server, then the attys won't get the emails, ... public folder address on the exchange server is ecfpaed@xxxxxxxxx ...
    (comp.mail.sendmail)
  • Re: How to SMTP (Email) Server Fedora 6?
    ... email server to receive emails like microsoft exchange does. ... also like to forward emails from an Exchange 2003 server to this linux ... Fedora ships an intentionally broken sendmail configuration that won't accept mail from anything but the local box. ...
    (Fedora)
  • Re: hwo to send notifcition to Exchange server
    ... server, also we had an Exchange server to handle the emails. ... we wanna this linux box can send warnning emails to the Exchange ... it says the sendmail is listenning to connection. ...
    (comp.mail.sendmail)
  • Re: Infinite loop of deferred/failure messages
    ... We have a linux server running sendmail, ... control messagefest if the exchange server is down. ...
    (comp.mail.sendmail)
  • Infinite loop of deferred/failure messages
    ... We have a linux server running sendmail, ... control messagefest if the exchange server is down. ...
    (comp.mail.sendmail)