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

AIX and MS Exchange Not using DHCP. How to send emails?

Status
Not open for further replies.

baggetta

Technical User
Feb 27, 2003
116
US
Hi, I've looked at serveral docs pertaining to the setup of send emails through an AIX RS6000 and MS Exchange Server. I've looked at threads: Configure Sendmail, snemail to send/receive mails, and Setting up AIX to send emails to MS Echange server...Well, nothing seems to be working. I basically want to send emails through AIX to a MS Exchange email address.
Here's my setup: Testing on an IBM 260, with MS Exchange Server running Windows2000. Both servers have static IP addresses.
I've changed the sendmail.cf to include:
DwmyAIXservername
DSmyNTservername

I've also created the file called sendmail.cw to include:
myNTservername

The etc/hosts file has the following:
IPaddress myNTservername
IPaddress myUnixservername

When I try sending a mail using the command:
mail -s"testing123" myname@myemail.address.com
or
mail -s"testing123" myNTservername:myname@myemail.add.com

When it runs, I get error messages:
/etc/sendmail.cf: line 507: The rewrite line &quot;R@ @ <@>&quot; is invalid. (tab expected)
And many more, then the sendmail service stops.

So as you can see, nothing works. Can someone please help me out with this above configuration.
thanks
 
You need to use a fully qualified host name e.g
yourhostname.hello.com

if thats not poss try putting

yourhostname. --
| Mike Nixon
| Unix Admin
| ----------------------------
 
Where would I put the info. you are talking about? In the sendmail.cf file, /etc/hosts, or sendmail.cw. I can connect to my exchange server using port 25 for SMPT and my other server using POP3 on port 100. Based on the tests I doing, I'm working on the SMPT server which accepts connections on port 25.
 
ok I tried that, still doesn't work. When I try and send an email, it puts the sendmail resource inoperative, then I get a screen full of errors.

What is the correct way of sending out a test email? I've seen so many different ways like:
1) mail -sthis_is_a_test @NTMAILBOX:name@host.com </etc/motd
2) banner testing|mail -s &quot;test&quot; name@host.com
3) echo &quot;test&quot; |sendmail -v name@host.com

I can telnet to my host on port 25 and it return the ESMTP Server name in the form of &quot;nt-sever-01.an.address.com&quot; this is what I'm putting in the /etc/hosts file as well as in the sendmail.cf and .cw
Still doesn't work. Need more info.
 
hi,

if you firstly try telnet to port 25 and send a mail to yourself ? do you get the mail
i.e.

telnet your MS exchange server 25
Connected to Your MS Exchange server.
Escape character is '^]'.
220 server name ESMTP Server (Microsoft Exchange Internet Mail Service 5.5.2650.21) ready
(Then type in :- )
HELO dev
250 OK
MAIL from:root
250 OK - mail from <nodename>
RCPT TO: (type in your.email@address or one to send mail to)
250 OK - Recipient <will list email address>
DATA
354 Send data. End with CRLF.CRLF
test message
.
250 OK


If you receive the message then proceed otherwise , there is a problem with your exchange server not accepting requests or doesn't know where to forward the emails
otherwise

edit sendmail.cf

search for DS
DSsmtp:(Add MS exhange servername which is in hosts file)

Then refresh sendmail

refresh -s sendmail

then try sending a mail

mails -s &quot; test message &quot; (your email address)

if it still fails try running
/usr/lib/sendmail –bv (email address)

check for errors , the above will report/list any errors

HTH
 
DSMARWAY, how do I break out of this when I accidently typed in the wrong email address? Its says:
HELO dev
250 OK
MAIL from:root
250 OK - mail from <root>
RCPT TO: myemail@address.work.coi^H^[^H
553 malformed address: myemail@address.work.coi

How do I break out from this?
Also, what do you mean by end with CRLF.CRLF?
 
One more thing, shouldn't the 2 lines below:
MAIL from:root
250 OK - mail from <nodename>

return with:
250 OK - mail from <root> ???? This is what I get.
Should this be the local host name ie:myunixboxname, or should it be the name of my NTserver running MS Exchange?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top