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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sendmail to an exchange server 1

Status
Not open for further replies.

aixinstall

Technical User
Oct 1, 2002
17
NL
hello,

Can somebody tell me how i can send an backuplog file, to an mailbox on a exchange server(WINNT) in the same network.

Thanks.
 
you must first make sure that your exchange server is setup as a smtp gateway listening on port 25 , and that the unix server can see the server . before you configure sendmail
you should be able to telnet to the server on port 25
i.e. telnet exchange server 25 , and send a message successfully. You must make sure the exchange server allows address to be received and forwarded to the relevant parties.

telnet (ip address / host file name of server) 25
Nb:- if you don't get a response check excvhange server is running and listening on port 25 on NT server. Check server can be pinged from UNIX box .
if successfull you'll get the following

Trying...
Connected to exchange_server.
Escape character is '^]'.
220 exchange_server ESMTP Server (Microsoft Exchange Internet Mail Service 5.5.2650.21) ready
(Then type in :- )
HELO test
250 OK
MAIL from:yourserver ( enter name in)
250 OK - mail from <name displayed>
RCPT TO:your ip address@comp.com
250 OK - Recipient <your ip address@comp.com>
DATA
354 Send data. End with CRLF.CRLF
test message
.
250 OK
quit
221 closing connection
Connection closed.

Then check if you received the mail
Once you can do that , then you can edit sendmail.cf file and where it has the entry DS add in the exchange server
i.e.

DSsmtp:exhan_srv


once complete then you can mail to other users

mailx -s &quot;test message&quot; your email address


Also search the forums for sendmail , mail , remote mail
there are quite a lot of entries
HTH
 
Use @<name_of_exchange_server>:<your_e-mail_address>@<your_domain_name>

E.g. mail -s subject @excsrv:address@comp.com < backuplog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top